Opened 17 years ago

Closed 17 years ago

Last modified 48 years ago

#515 closed bug (Wont Fix)

Incorrect source location on defaulting warnings.

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


Test program:
> module Test where
> a = 1
> b = 2

When compiled with -Wall gives the following warning messages with incorrect source locations:

Test.lhs:1: Warning: Defaulting `Num t' to type `Integer'
Test.lhs:1: Warning: Defaulting `Num t' to type `Integer'

The compiler appears to associate the source location of the module declartion with these warnings instead of the location of the actual defaulted expression.

Change History (1)

comment:1 Changed 17 years ago by simonpj

Status: assignedclosed
This is already fixed in GHCi 5.0, and it's not worth fixing in earlier versions.

Good point, though.
Note: See TracTickets for help on using tickets.