packages and profiling
Simon Marlow
simonmar@microsoft.com
Fri, 18 Oct 2002 10:36:52 +0100
> I've been playing around with the package mechanism in ghc which
> is great.
>=20
> 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
>=20
> When the interface was called Foo.hi and I tried to use the package
> the compiler complained:
>=20
> ghc-5.04: can't find module `Foo' (while processing "Main.hs")
>=20
> this is with ghc --make
Thanks, I've added a note to the docs.
Cheers,
Simon