Opened 16 years ago

Closed 16 years ago

Last modified 48 years ago

#525 closed bug (Wont Fix)

parsing of infix decls broken

Reported by: lewie 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:


When an infix decl pattern matches with an infix
constructor, precedence isn't handled correctly.

infix 2 |-

ps  |-  q:qs = undefined


B.hs:6: Variable not in scope: `|-'

Parenthesis around (q:qs) makes the compiler happy. 
The precedence level chosen for `|-' doesn't matter.

This bug affects 4.08 as well as 5.0.

Change History (1)

comment:1 Changed 16 years ago by simonmar

Status: assignedclosed
Logged In: YES 

This is a known bug, which is documented in the 5.00 user's 
guide (see the section on GHC vs. Haskell 98).  It is one 
of a family of bugs related to the interaction of fixity 
resolution with parsing, which we don't intend to fix (in 
fact, it may not even be possible to do it right).

Note: See TracTickets for help on using tickets.