[GHC] #10453: \case should trigger auto-multiline mode in ghci
GHC
ghc-devs at haskell.org
Wed May 27 19:30:31 UTC 2015
#10453: \case should trigger auto-multiline mode in ghci
-------------------------------------+-------------------------------------
Reporter: dmwit | Owner:
Type: feature | Status: new
request | Milestone:
Priority: normal | Version: 7.10.1
Component: Compiler | Operating System: Unknown/Multiple
Keywords: | Type of failure: None/Unknown
Architecture: | Blocked By:
Unknown/Multiple | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
In ghci, most block heralds trigger the multiline mode when :set +m is on.
However, \case does not (and should). Compare:
{{{
Prelude> ($True) (\case
Prelude| x -> x
Prelude| )
True
Prelude> ($True) $ \case
<interactive>:11:11:
Empty list of alternatives in case expression
Use EmptyCase to allow this
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10453>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list