"no location info" when module name is omitted

Ian Lynagh igloo at earth.li
Wed Feb 28 06:23:10 EST 2007


On Tue, Feb 27, 2007 at 06:55:03PM +0000, Frederik Eaton wrote:
> 
> If I try to compile a program which depends on a file which omits the
> "module X where" line, then I get an error message from ghc:
> 
>   <no location info>: file name does not match module name `Main'
> 
> This is not very helpful, since it doesn't tell me which file the
> error is in, or what the error is.

This is already fixed in the 6.6 branch and the HEAD, and thus should
work in 6.6.1 and 6.8.


Thanks
Ian




More information about the Glasgow-haskell-bugs mailing list