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
_______________________________________________
Haskell-prime mailing list
Haskell-prime@haskell.org
http://haskell.org/mailman/listinfo/haskell-prime

Reply via email to