Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#2136 closed merge (fixed)

Not warned about unused recursive bindings

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

Description

If we have this module:

module Q where

v :: a
v = let x = x in undefined

w :: a
w = let y = 'a' in undefined

then we get warned that y is unused, but not that x is:

q.hs:8:8: Warning: Defined but not used: `y'

Change History (6)

comment:1 Changed 12 years ago by igloo

Forgot to say:

Compiling with ghc -fforce-recomp -Wall -c q.hs.

Also affects the HEAD.

comment:2 Changed 12 years ago by simonpj

Owner: set to simonpj

I'm fixing this

comment:3 Changed 12 years ago by simonpj

Owner: changed from simonpj to igloo
Type: bugmerge

Fixed by

Thu Apr  3 04:02:50 PDT 2008  simonpj@microsoft.com
  * Fix Trac #2136: reporting of unused variables

Simon

comment:4 Changed 12 years ago by igloo

Resolution: fixed
Status: newclosed

This doesn't merge cleanly, and I (the reporter) don't think it's very important for 6.8.3, so I'm closing it as it's fixed in the HEAD.

comment:5 Changed 11 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:6 Changed 11 years ago by simonmar

Operating System: UnknownUnknown/Multiple
Note: See TracTickets for help on using tickets.