Opened 5 years ago

Last modified 2 years ago

#10582 new bug

Tiny bug in lexer around lexing banana brackets

Reported by: goldfire Owned by: goldfire
Priority: low Milestone:
Component: Compiler Version: 7.10.1
Keywords: Arrows Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case: parser/should_compile/T10582
Blocked By: #10583 Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


If I say

{-# LANGUAGE Arrows #-}

(|:) :: Int -> Int -> Int
(|:) = (+)

I get

/Users/rae/temp/Bug.hs:3:3: parse error on input ‘:’

Trying this with other operators, like (|+), works fine.

The problem is that notFollowedBySymbol in Lexer.x is slightly wrong.

I will fix in ongoing (mostly unrelated) work.

Change History (7)

comment:1 Changed 5 years ago by Richard Eisenberg <eir@…>

comment:2 Changed 5 years ago by goldfire

Blocked By: 10583 added
Test Case: parser/should_compile/T10582

This should be fixed with #10583.

comment:3 Changed 4 years ago by bgamari


This won't be fixed in 7.10.3.

comment:4 Changed 4 years ago by bgamari


This bug won't be fixed in 8.0.1; bumping to 8.2.

comment:5 Changed 3 years ago by bgamari


Given that 8.2.1-rc1 is imminent, I'm bumping these off to the 8.4

comment:6 Changed 3 years ago by simonpj

Keywords: Arrows added

comment:7 Changed 2 years ago by bgamari

Milestone: 8.4.1

These tasks won't happen for 8.4 and have been sitting at low priority for quite some time. Consequently I am un-milestoning them. Don't let this stop you, the interested reader, from picking one up, however.

Note: See TracTickets for help on using tickets.