import modules from a different directory
Graham Klyne
GK at ninebynine.org
Thu Dec 11 17:15:34 EST 2003
I end up using a combination of two techniques:
- putting the directory concerned on the Haskell library include path (-i
in GHC IIRC, and a registry setting for Hugs, also accessible using the
:set command).
- import X.Y.Z
The hierarchical module naming structure is interpreted as
subdirectories from some starting point (e.g. as above). But I think this
may change with work-in-progress proposals for a new library structure.
#g
--
At 15:59 11/12/03 +0800, Wang Meng wrote:
>Hi All,
>
>Anybody has the experience of importing a module from a different
>directory?In my code, i need to import a module that is not in the current
>directory. How can I do that in GHC?
>
>
> -W-M-
> @ @
> |
> \_/
>
>_______________________________________________
>Haskell mailing list
>Haskell at haskell.org
>http://www.haskell.org/mailman/listinfo/haskell
------------
Graham Klyne
For email:
http://www.ninebynine.org/#Contact
More information about the Haskell
mailing list