Re: imports with --make?
"Simon Marlow" <[EMAIL PROTECTED]> 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. Regards, Malcolm ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RE: imports with --make?
> 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. Cheers, Simon ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
imports with --make?
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. Abe ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users