#5330: GHC does not follow offside rule specified as in Haskell Standard
----------------------------------+-----------------------------------------
Reporter: seba | Owner: igloo
Type: bug | Status: new
Priority: high | Milestone: 7.2.1
Component: Compiler (Parser) | Version: 7.0.3
Keywords: layout, offside | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: GHC accepts invalid program
----------------------------------+-----------------------------------------
Changes (by igloo):
* owner: => igloo
* priority: normal => high
* milestone: => 7.2.1
Comment:
This is because GHC has `NondecreasingIndentation` on by default.
If you use `-XNoNondecreasingIndentation`, `{-# LANGUAGE
NoNondecreasingIndentation #-}`, `-XHaskell2010` or `{-# LANGUAGE
Haskell2010 #-}` then you will get the parse that you expect.
This doesn't seem to be documented as far as I can see, so we should
document it.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5330#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs