less than helpful GHC error message

Consider the terminal session at the bottom of this message. The extra "xc" in Test.hs was the result of me missing CTRL during an Emacs command (I'm guessing...). Unfortunately this took 30 minutes to find since I had far more than two modules and the error message doesn't point this out. Sure it's a silly mistake to make, but I'm guessing it's pretty common. I'm running GHC 6.6 on a PPC Mac. I know pragmas are wierd things, but could this error message be improved? Thanks, Nick $ head -n 10000 Main.hs Test.hs ==> Main.hs <== module Main where import Test main = test ==> Test.hs <== xc{-# OPTIONS -fglasgow-exts #-} module Test where test = putStrLn "weee" $ ghc --make Main <no location info>: file name does not match module name `Main'

On Wed, Dec 13, 2006 at 04:02:18PM -0600, Nicolas Frisby wrote:
$ ghc --make Main
<no location info>: file name does not match module name `Main'
Thanks for the report; the HEAD and 6.6 branch now say: Test.hs:1:0: file name does not match module name `Main' so this will be fixed in 6.6.1. Thanks Ian
participants (2)
-
Ian Lynagh
-
Nicolas Frisby