Opened 15 years ago

Closed 15 years ago

Last modified 46 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: 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 15 years ago by simonmar

  • Status changed from assigned to closed
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.