ghci finding include files exported from other packages?

Duncan Coutts duncan.coutts at
Sun Mar 15 17:34:47 EDT 2009

On Sun, 2009-03-15 at 09:13 -0700, Conal Elliott wrote:
> That did it.  I've added ":set -package applicative-numbers" to
> my .ghci and am back in business.  Thanks!
> IIUC, there's an inconsistency in ghci's treatment of modules vs
> include files, in that modules will be found without -package, but
> include files won't.  Room for improvement, perhaps.

But that's because of the circularity I described. GHC can chase Haskell
imports because it can parse Haskell, but chasing CPP #includes would
require us to re-implement cpp. Perhaps we could do it by modifying


More information about the Glasgow-haskell-users mailing list