
hello, I installed ok the rpm-packages on linux (Mandrake 8.1), but when I try to compile something the following message appears:
f2.hs:1: failed to load interface for `Prelude': Bad interface file: ./Prelude.hi does not exist Action: openFile Reason: No such file or directory File: ./Prelude.hi
ghc -c /home/user/file.hs
If I go to the directory /usr/bin (where the binary file ghc is) and I type then the compilation is done without problems. Does anyone know what I have to do for compiling without problems in any folder? (The directory /usr/bin is my PATH).
You probably have a file Prelude.hs in the current directory. The next release of GHC handles this case a little better, but to get going straight away you can just move Prelude.hs out of the way (and any other .hs files in the current directory which match the names of standard libraries). Cheers, Simon
participants (1)
-
Simon Marlow