[Haskell-cafe] Design your modules for qualified import
Daniel Fischer
daniel.is.fischer at web.de
Sat Jun 7 14:46:34 EDT 2008
Am Samstag, 7. Juni 2008 17:31 schrieb Loup Vaillant:
> 2008/6/6 Andrew Coppin <andrewcoppin at btinternet.com>:
> > Until very recently, it was not at all clear to me that there is actually
> > a very simple solution to this problem:
> >
> > import Text.ParserCombinators.Parsec as P
> >
> > Now I only have to write "P.runPaser", which is much shorter.
>
> Err, I have a beginner question, then:
> Is there any difference between:
>
> import Very.Long.Module.Name as M
>
> and:
>
> import qualified Very.Long.Module.Name as M
The former lets you access functions from Very.Long.Module.Name also
unqualified.
>
> ?
> Loup
More information about the Haskell-Cafe
mailing list