You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above will fail upon building with this error:
src/Main.hs:21:1: error:
Could not load module ‘A’
It is a member of the hidden package ‘a’.
You can run ‘:set -package a’ to expose it.
(Note: this unloads all the modules in the current scope.)
Use -v to see a list of the files searched for.
|
21 | import qualified A as A
where A.hs is a Haskell source file of the library ":a"
Everything works fine when ":lib" is added to the deps of the haskell binary.
Expected behavior
We shouldn't have to add ":lib" to the deps of the haskell binary since it's already re-exported by ":pipeline"
At a cursory look, fixing this will probably require tracking exports transitively here instead of just the direct exports. This should probably be done by using a depset instead of a list to track these.
Describe the bug
When there are at least two levels of re-exporting, the innermost modules do not get exported.
To Reproduce
Consider the following example:
The above will fail upon building with this error:
where
A.hs
is a Haskell source file of the library":a"
Everything works fine when
":lib"
is added to the deps of the haskell binary.Expected behavior
We shouldn't have to add
":lib"
to the deps of the haskell binary since it's already re-exported by":pipeline"
Environment
The text was updated successfully, but these errors were encountered: