[Haskell-cafe] Import hiding module
rasen.dubi at gmail.com
Sat May 2 00:39:03 UTC 2015
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.
On Sat, May 2, 2015 at 3:10 AM <amindfv at 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)
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe