view src/monad_and_bind.hs @ 42:4cc65012412f

Add proofs of functor-laws on delta
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Fri, 13 Feb 2015 17:13:23 +0900
parents fc44782929a7
children
line wrap: on
line source

return x = eta x
x >>= f  = mu (fmap f x)

eta x = return x
mu  x = (>>= id)