Opened 11 years ago

Closed 11 years ago

Last modified 46 years ago

#274 closed bug (Fixed)

Bad error message for missing module in --make

Reported by: simonpj Owned by: simonmar
Priority: low Milestone:
Component: Compiler Version: 6.2.2
Keywords: Cc:
Operating System: Architecture:
Type of failure: Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


GHC --make uses getImports to find the imports of a 
module.  It has two bad flaws

a) it's a total hack, parsing the file character by 
character, which is really slow.   We though it stopped 
after the import statements but it doesn't; it chunters 
through the entire file

b) It does not record line numbers, so if the imported 
module does not exist, there is no decent error message

We have a plan; this bug report makes sure we don't 

Attachments (1)

Boo.2.hs (2.0 KB) - added by simonpj 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by simonpj

comment:1 Changed 11 years ago by simonmar

  • Summary changed from ghc --make import searching broken to Bad error message for missing module in --make
Logged In: YES 

Partially fixed, (b) still to do.

comment:2 Changed 11 years ago by simonmar

  • Status changed from assigned to closed
Logged In: YES 

Fixed.  We still don't report the line number, but it's good
Note: See TracTickets for help on using tickets.