[GHC] #1677: Abysmal error message from `ghc -M`

GHC trac at galois.com
Mon Sep 10 11:20:05 EDT 2007


#1677: Abysmal error message from `ghc -M`
-----------------------+----------------------------------------------------
  Reporter:  simonpj   |          Owner:         
      Type:  bug       |         Status:  new    
  Priority:  normal    |      Milestone:         
 Component:  Compiler  |        Version:  6.6.1  
  Severity:  normal    |       Keywords:         
Difficulty:  Unknown   |             Os:  Unknown
  Testcase:            |   Architecture:  Unknown
-----------------------+----------------------------------------------------
{{{
 ghc-6.6.1 -M -cpp Foo.hs Bar.hs
 /tmp/ghc9234_0/ghc9234_2.hscpp:1:0:
     file name does not match module name `Main'
 }}}
 What a terrible message!  The source code is this:

 `Foo.hs` (note the mis-typed `Module`)
 {{{
 Module Foo where
   f x = x
 }}}
 `Bar.hs`
 {{{
 module Bar where
   import Foo
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1677>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list