view src/monad_class.hs @ 50:37a832dff044

Add DeltaM example
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Sun, 15 Feb 2015 17:56:51 +0900 (2015-02-15)
parents df55c9df8aac
children
line wrap: on
line source
class Monad m where
    return :: a -> (m a)
    (>>=)  :: (m a) -> (a -> (m b)) -> (m b)