[Haskell-cafe] import qualified?

Daniel Fischer daniel.is.fischer at web.de
Sat May 23 05:34:25 EDT 2009


Am Samstag 23 Mai 2009 08:08:42 schrieb Vasili I. Galchin:
> Hi Paulo,
>
>     You are teasing me ;^) So what is the "semantics" of "import qualified
> Blah"?
>
> Regards,
>
> Vasili

The qualified names (Blah.foo, Blah.baz) are in scope, but not the unqualified names foo, 
baz.

If you 
import qualified Bing.Bong.Blah.Blub as Blub

the names of Blub are in scope in the fully qualified form

Bing.Bong.Blah.Blub.foo

and the shorter 

Blub.foo

without the 'as Blub', only the fully qualified form is in scope.


More information about the Haskell-Cafe mailing list