
#8325: Pattern guards in anonymous functions -------------------------------------+------------------------------------- Reporter: mcollis | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 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 goldfire): `MultiWayIf` uses layout to fix this ambiguity, essentially requiring all the `|` to line up. I find this a bit annoying (but don't have a better idea), because I want to say {{{ if | blah -> blah | blah -> blah }}} which is disallowed. Instead, I need to indent the arrows. In any case, the layout approach should work for lambdas, I think. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8325#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler