[Haskell-cafe] Import hiding module

Alexey Shmalko rasen.dubi at gmail.com
Sat May 2 00:39:03 UTC 2015


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 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)
>
> ?
>
> Thanks
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150502/63c22400/attachment.html>


More information about the Haskell-Cafe mailing list