I wanted to a convenience module where I export some other modules. For example assume I have something like this:
module Examples.Example (
answer
, Fruit (..)
) where
answer : Int
answer = 42
data Fruit = Apple | Banana | Cherry
Then I create the convenience module:
module Examples.All (
module Examples.Example
) where
import Examples.Example
This works in the project where I define these modules. Meaning if I do import Examples.All
the things defined in Example
are available.
This does not seem to work across DARs though. So assume I added the examples.dar
as a data-dependency to the examples-test
project. Now, even I have the import for the convenience module the things defined in Example
are not available.
Is this by design? Did I do something wrong or missed something?