Opened 10 years ago

Closed 10 years ago

Last modified 45 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 Revisions:

Description

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 
forget.

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by simonpj

comment:1 Changed 10 years ago by simonmar

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

Partially fixed, (b) still to do.

comment:2 Changed 10 years ago by simonmar

  • Status changed from assigned to closed
Logged In: YES 
user_id=48280

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