Re: [GHC] #7783: MultiWayIf should start a new layout

#7783: MultiWayIf should start a new layout --------------------------------------+------------------------------------ Reporter: exbb2 | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler (Parser) | Version: 7.6.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: #4359 --------------------------------------+------------------------------------ Changes (by simonpj): * cc: simonmar (added) * status: closed => new * resolution: fixed => Comment: Simon, would it be possible to document the design in the user manual? For example, is it now possible to explain it by saying that a multi-way 'if' is a layout herald, so that your example behaves thus? {{{ x = if { | False -> if { | False -> 1 ; | False -> 2 } ; | True -> 3 } }}} Am I allowed to put the braces and semicolons in myself? Does the close brace get put in just before the first token to the left of the initial "|"? Thanks Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/7783#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC