Export lists in modules

Wolfgang Jeltsch wolfgang at jeltsch.net
Tue Feb 21 15:03:47 EST 2006


Am Dienstag, 21. Februar 2006 04:41 schrieb John Meacham:
> on this note, I thought it would be nice to do a 'mostly unqualified'
> import.
>
> import Foo qualified(foo,bar)
>
> which will have the effect of
>
> import Foo hiding(foo,bar)
> import qualified Foo(foo,bar)
>
> since usually you can import a whole module unqualified except for a few
> troublemakers.
>
>         John

On the other hand, sometimes it makes sense to have a "mostly qualified" 
import.  For example, if you import Data.Set or Data.Map you might want only 
the type constructors to be imported unqualified and the rest to be imported 
qualified.

Best wishes,
Wolfgang


More information about the Haskell-prime mailing list