view src/monad_class.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 df55c9df8aac
children
line wrap: on
line source

class Monad m where
    return :: a -> (m a)
    (>>=)  :: (m a) -> (a -> (m b)) -> (m b)