summaryrefslogtreecommitdiff
path: root/fp2/week2/mart/StdMonad.dcl
diff options
context:
space:
mode:
authorMart Lubbers2015-04-23 15:10:52 +0200
committerMart Lubbers2015-04-23 15:10:52 +0200
commitcaf697acd1ee77877b7cbe1c3895c47cd6c2df4c (patch)
treee7dc5d36cbe7bb6def2758d93ab3d8d39fdb405f /fp2/week2/mart/StdMonad.dcl
parentMerge branch 'master' of github.com:dopefishh/fp1415 (diff)
started with week2
Diffstat (limited to 'fp2/week2/mart/StdMonad.dcl')
-rw-r--r--fp2/week2/mart/StdMonad.dcl8
1 files changed, 8 insertions, 0 deletions
diff --git a/fp2/week2/mart/StdMonad.dcl b/fp2/week2/mart/StdMonad.dcl
new file mode 100644
index 0000000..cd1c654
--- /dev/null
+++ b/fp2/week2/mart/StdMonad.dcl
@@ -0,0 +1,8 @@
+definition module StdMonad
+
+class return c :: a -> c a
+class (>>=) infix 0 c :: (c a) (a -> c b) -> c b
+class fail c :: c a
+
+class Monad c | return, >>= c
+class MonadFail c | Monad, fail c