[GHC] #14421: LambdaCase should be suggested if it is used but not enabled
GHC
ghc-devs at haskell.org
Sat Nov 4 14:56:24 UTC 2017
#14421: LambdaCase should be suggested if it is used but not enabled
-------------------------------------+-------------------------------------
Reporter: tomjaguarpaw | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
If I try to make a multiparameter typeclass GHC (well, GHCi here) advises
me to turn on {{{MultiParamTypeClasses}}}
{{{
Prelude> class C a b where
...
(Use MultiParamTypeClasses to allow multi-parameter classes)
}}}
But if I try to use {{{\case}}} it doesn't give me a helpful suggestion
{{{
Prelude> :t \case (_,_) -> ()
<interactive>:1:2: error: parse error on input ‘case’
}}}
Could it?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14421>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list