Ticket #1677 (closed bug: fixed)

Opened 6 years ago

Last modified 5 years ago

Abysmal error message from `ghc -M`

Reported by: simonpj Owned by: simonmar
Priority: normal Milestone:
Component: Compiler Version: 6.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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

Change History

Changed 6 years ago by simonmar

  • owner set to simonmar

I'm validating a fix

Changed 6 years ago by simonmar

  • status changed from new to closed
  • resolution set to fixed

Fixed:

Tue Sep 11 01:54:52 PDT 2007  Simon Marlow <simonmar@microsoft.com>
  * FIX #1677; poor error message for misspelled module declaration

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.