summaryrefslogtreecommitdiff
path: root/fp2/week2/camil/StdMonad.dcl
diff options
context:
space:
mode:
Diffstat (limited to 'fp2/week2/camil/StdMonad.dcl')
-rw-r--r--fp2/week2/camil/StdMonad.dcl8
1 files changed, 8 insertions, 0 deletions
diff --git a/fp2/week2/camil/StdMonad.dcl b/fp2/week2/camil/StdMonad.dcl
new file mode 100644
index 0000000..cd1c654
--- /dev/null
+++ b/fp2/week2/camil/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