[GHC] #13876: Check 'pure' method of 'Applicative (WrappedMonad m)'
GHC
ghc-devs at haskell.org
Mon Jul 3 05:38:09 UTC 2017
#13876: Check 'pure' method of 'Applicative (WrappedMonad m)'
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
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 RyanGlScott):
It's useful since you often want to define `(<*>)` in terms of `(>>=)`.
I'm putting this in a distinct category of retrofitted things from
defining `return` from `pure`, since the latter is completely trivial
(`return = pure`), whereas the former requires a tad more work.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13876#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list