[GHC] #13087: AlternativeLayoutRule breaks LambdaCase
GHC
ghc-devs at haskell.org
Mon Jan 9 11:58:51 UTC 2017
#13087: AlternativeLayoutRule breaks LambdaCase
-------------------------------------+-------------------------------------
Reporter: ohhellojoe | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
(Parser) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by ohhellojoe):
I found the flag via --supported-extensions. I was looking for a layout-
related extension that would allow me to forgo indentation of a do block
that is the last statement of another do block. It did the trick. Maybe
there was a better, more commonly used extension that would have served.
{{{#!hs
foobar :: IO (Maybe ())
foobar = do putStrLn "doing stuff in IO monad"
return $ do
Just () -- not indented.
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13087#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list