Mercurial > hg > Papers > 2015 > atton-thesis
annotate 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 |
rev | line source |
---|---|
8
c4da3e667aad
Add Delta definition in Haskell
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 class Monad m where |
34
df55c9df8aac
Adjust monad class definition
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
2 return :: a -> (m a) |
df55c9df8aac
Adjust monad class definition
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
8
diff
changeset
|
3 (>>=) :: (m a) -> (a -> (m b)) -> (m b) |