id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
1051,Insufficient location information for parse errors before ''module'' keyword,nfrisby,igloo,"I've seen this error with GHC 6.6 on a PPC Mac (10.4.8), but I suspect it happens on multiple systems.

Consider ''Main.hs''
{{{
module Main where

import Test

main = test
}}}

and ''Test.hs''
{{{
mmmodule Test where

test = putStr ""stutter""
}}}

The error message for trying to load the Main module is
{{{
$ ghci Main
[snip]
Loading package base ... linking ... done.

<no location info>: file name does not match module name `Main'
Failed, modules loaded: none.
Prelude> 
}}}

This provides no information regarding the actual location of the error. In a program of a considerable number of modules, the offending module can be difficult to track down. Moreover, the error provides no direct indication that there's a source file without the module keyword in it.

The path of the offending file should be included in the error.",bug,closed,normal,6.6.1,Compiler (Parser),6.6,fixed,error message,,Unknown/Multiple,Unknown/Multiple,,Easy (less than 1 hour),,,,
