imports with --make?

Malcolm Wallace Malcolm.Wallace at
Wed Mar 24 10:54:41 EST 2004

"Simon Marlow" <simonmar at> writes:

> > Is there any way to use --make but provide paths to search for .hi files,
> > *not* .hs files?  For example, if a library doesn't use ghc's package
> > system, and is distributed in precompiled form, there doesn't seem to
> > currently be a way to point ghc at the import files when using --make - it
> > always complains that it can't find the modules, and -v shows 
> > that it is only looking for .hs files.
> No, there's no way to do this.  Packages are GHC's mechanism for
> supporting precompiled libraries with --make or GHCi.  We don't want to
> add another way, because things are complicated enough already.

However, I believe 'hmake' will do what you want.  Just use the
"-Idir" flag to indicate the directory for interface files, and 
"-Ldir -llib" for the precompiled library to be linked in.


More information about the Glasgow-haskell-users mailing list