Opened 13 years ago

Closed 13 years ago

Last modified 48 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: None/Unknown 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 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by simonpj

Attachment: Boo.2.hs added

comment:1 Changed 13 years ago by simonmar

Summary: ghc --make import searching brokenBad error message for missing module in --make
Logged In: YES 

Partially fixed, (b) still to do.

comment:2 Changed 13 years ago by simonmar

Status: assignedclosed
Logged In: YES 

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