[nhc-bugs] Possible bug in include handling
Malcolm Wallace
Malcolm.Wallace@cs.york.ac.uk
Tue, 6 Nov 2001 10:22:20 +0000
> import "/home/PRG_DEV/SRC/SCRIPTS/HASKELL/MAKEFILE_GENERATOR/LdfsWrapper.hs"
>
> Fail: Can't find module
> "/home/PRG_DEV/SRC/SCRIPTS/HASKELL/MAKEFILE_GENERATOR/LdfsWrapper.hs" in
> .
> Or in standard libraries at
> /usr/local/include/nhc98
> Asked for by: makeMakefile.hs
> I'd have thought it would be allowable to use unix absolute paths
Sorry, using absolute paths is a Hugs-only extension to Haskell'98.
Although it works OK in an interpreter, the semantics are somewhat
unclear for a compiler. After all, the compiler is not interested in
the *source-file* of the import - it only wants to see the .hi file.
Regards,
Malcolm