packages and profiling

Simon Marlow
Fri, 18 Oct 2002 10:36:52 +0100

> 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.   =20
> 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.