Ticket #1 (closed defect: fixed)
Haskell-indentation breaks on Unicode
| Reported by: | Roel van Dijk | Owned by: | Baughn |
|---|---|---|---|
| Priority: | minor | Component: | component1 |
| Version: | Keywords: | unicode | |
| Cc: |
Description
Consider the following program:
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UnicodeSyntax #-}
module Test where
foo ∷ ∀ α. Ord α ⇒ α → α → α
foo x y | x ≥ y = x
| otherwise = y
where
(≥) ∷ ∀ β. Ord β ⇒ β → β → Bool
(≥) = (>=)
If I position the point on the first line after the function foo and press tab I get a "Parse error" message. The problem seems to be in the parsing of the (≥) operator. The following snippet does not have the parsing problem:
bar ∷ ∀ α. Ord α ⇒ α → α → α
bar x y | x $>= y = x
| otherwise = y
where
($>=) ∷ ∀ β. Ord β ⇒ β → β → Bool
($>=) = (>=)
Change History
Note: See
TracTickets for help on using
tickets.
