GHC 5.02: --make and -i

Simon Marlow simonmar at microsoft.com
Mon Mar 4 06:51:38 EST 2002


> It seems to me that the -i command line argument is ignored when used
> together with --make. GHC reports that the modules can't be found.
> Is there any way to use a library (lib*.a + *.hi files) that 
> is not compiled
> as a package with ghc --make?

Not at the moment, no.  If you have a library (without source), it must
be a package.  However, making a package spec is fairly easy, and you
can use a local package.conf file rather than installing the package
globally.

We may revisit this at some point - at the time we didn't anticipate it
being a problem, but you're not the first person to run into this.  It
should be possible to convince GHC internally that all "pre-compiled"
code belongs to one pseudo-package.

Cheers,
	Simon



More information about the Glasgow-haskell-bugs mailing list