It's possible to write e.g. module A (module A.B, x) where To reexport everything from A.B And we can import A hiding (x) Is there a way to also import A hiding (module A.B) ? Thanks
Hi, To be short, no, I believe there is no way. When module A.B is re-exported, in reality it's not module re-exported but rather all symbols in current scope that were imported from A.B are exported. Furthermore, there is no way to know whether module is defined in a given module or just re-exported; and no way to know module it was re-exported from. This is kind of abstraction that gives some freedom to alter library internals without altering external interface. Best regards, Alexey Shmalko On Sat, May 2, 2015 at 3:10 AM <amindfv@gmail.com> wrote:
It's possible to write e.g.
module A (module A.B, x) where
To reexport everything from A.B
And we can
import A hiding (x)
Is there a way to also
import A hiding (module A.B)
?
Thanks _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
participants (2)
-
Alexey Shmalko -
amindfv@gmail.com