Skip to content

parsing of infix decls broken

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.
Trac metadata
Trac field Value
Version None
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedWon'tFix
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information