GHCi's search path

Bayley, Alistair Alistair.Bayley at
Wed May 13 04:43:52 EDT 2009

> From: glasgow-haskell-users-bounces at 
> [mailto:glasgow-haskell-users-bounces at] On Behalf 
> Of Peter Gammie
> parate-compilation.html#search-path
> GHCi is not overly keen to go looking for modules in directories  
> different to where the source resides.
> The semantics I want is:
>   - use the Cabal-built objects/hi files in dist/build if they're  
> fresh enough
>   - interpret the source otherwise.
> Is that possible?

I think the -odir and -hidir options will help
  e.g. -odir dist/build -hidir dist/build

Confidentiality Note: The information contained in this message,
and any attachments, may contain confidential and/or privileged
material. It is intended solely for the person(s) or entity to
which it is addressed. Any review, retransmission, dissemination,
or taking of any action in reliance upon this information by
persons or entities other than the intended recipient(s) is
prohibited. If you received this in error, please contact the
sender and delete the material from any computer.

More information about the Glasgow-haskell-users mailing list