[GHC] #12672: Missing lambda in third monad law description

GHC ghc-devs at haskell.org
Sun Oct 9 23:48:04 UTC 2016


#12672: Missing lambda in third monad law description
-------------------------------------+-------------------------------------
        Reporter:  vaibhavsagar      |                Owner:  vaibhavsagar
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:  8.0.2
       Component:  Documentation     |              Version:  8.0.1
      Resolution:  fixed             |             Keywords:  documentation
                                     |  monad
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  D2583
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 Why not in terms of `>=>`

 {{{#!hs
   return >=> g
 = g
 }}}

 {{{#!hs
   g >=> return
 = g
 }}}

 {{{#!hs
   (f >=> g) >=> h
 = f >=> (g >=> h)
 }}}

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


More information about the ghc-tickets mailing list