[GHC] #13087: AlternativeLayoutRule breaks LambdaCase
GHC
ghc-devs at haskell.org
Sun Jan 8 09:06:11 UTC 2017
#13087: AlternativeLayoutRule breaks LambdaCase
-------------------------------------+-------------------------------------
Reporter: ohhellojoe | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
(Parser) |
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
{{{#!hs
{-# LANGUAGE AlternativeLayoutRule #-}
{-# LANGUAGE LambdaCase #-}
isOne :: Int -> Bool
isOne = \case 1 -> True
_ -> False
main = return ()
}}}
{{{
$ ghc test-case
[1 of 1] Compiling Main ( test-case.hs, test-case.o )
test-case.hs:5:15: error: parse error on input ‘1’
}}}
It compiles fine without the AlternativeLayoutRule extension.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13087>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list