Skip to content

error msg can be improved: <no location info>: file name does not match module name `Main'

Hi,

When compiling some files with --make, some of them were empty, so ghc complained:

<no location info>: file name does not match module name `Main'

But, since the offending file name is not provided, the problem was difficult to correct (I thought the problem was somewhere in Main.hs or maybe a compiler bug).

I tested this with 6.6 on Linux (that gives this error msg) and with 6.6.1 on Windows (that gives a good error msg, giving the file name). Can't switch to 6.6.1 on Linux due to dependency problems of wxhaskell.

Antonio Regidor García

Trac metadata
Trac field Value
Version 6.6
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information