[Haskell-cafe] import

Luke Palmer lrpalmer at gmail.com
Tue Dec 2 04:59:07 EST 2008

2008/12/2 Galchin, Vasili <vigalchin at gmail.com>:
> Hello,
>      I am a little uncertain about "import" semantics in a hierarchical
> package ... i.e. if I import the root of a package root do I get everything
> under the "root's" namespace, i.e. the namespace tree?

There is nothing at all magical about the . in a package name, other
than that it is replaced by a / when searching for modules in a
directory tree.  But you should treat it as any other identifier
character.  Any hierarchy is purely incidental :-)


More information about the Haskell-Cafe mailing list