[GHC] #13876: Check 'pure' method of 'Applicative (WrappedMonad m)'

GHC ghc-devs at haskell.org
Mon Jun 26 19:39:31 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:                    |
-------------------------------------+-------------------------------------
Changes (by bgamari):

 * cc: hvr, ekmett, core-libraries-committee@… (added)


Comment:

 Perhaps. However, given that `pure` and `return` shouldn't differ, and
 that the "`Monad` of no `return`" was seriously considered, it's not clear
 to me whether it matters enough to change it. The moment `pure /= return`
 you have bigger problems.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13876#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list