- 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 [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
------------ Graham Klyne For email: http://www.ninebynine.org/#Contact
_______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell