import modules from a different directory
Simon Marlow
simonmar at microsoft.com
Thu Dec 11 10:18:28 EST 2003
> 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?
GHC-specific questions are best asked on glasgow-haskell-users at haskell.org (where I've sent this followup).
You'll find the -i option to GHC will do what you want. Documentation is here:
http://www.haskell.org/ghc/docs/latest/html/users_guide/separate-compilation.html#OPTIONS-FINDING-IMPORTS
Cheers,
Simon
More information about the Glasgow-haskell-users
mailing list