[GHC] #14249: ApplicativeDo: Pattern matching on a bind forces a Monad constraint
GHC
ghc-devs at haskell.org
Tue Sep 19 15:38:22 UTC 2017
#14249: ApplicativeDo: Pattern matching on a bind forces a Monad constraint
-------------------------------+--------------------------------------
Reporter: mutantmell | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: invalid | Keywords: ApplicativeDo
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------+--------------------------------------
Comment (by bgamari):
So you would like something like,
{{{
ApplicativeDo is enabled yet Monad is required due to irrefutable pattern
match;
perhaps you want to make the match refutable by adding a ~?
}}}
Is this right?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14249#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list