Opened 13 years ago

Closed 13 years ago

Last modified 45 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: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

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

infix 2 |-

ps  |-  q:qs = undefined

Yields:

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 13 years ago by simonmar

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

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.