
18 Oct
2002
18 Oct
'02
5:36 a.m.
I've been playing around with the package mechanism in ghc which is great.
However it took me quite a while to realise that when I compile a module (say Foo.hs, for a package) with profiling, the .hi file must be named Foo.p_hi, and not Foo.hi, when it appears in the "import_dirs" directory.
When the interface was called Foo.hi and I tried to use the package the compiler complained:
ghc-5.04: can't find module `Foo' (while processing "Main.hs")
this is with ghc --make
Thanks, I've added a note to the docs. Cheers, Simon