summaryrefslogtreecommitdiff
path: root/files/practicum/StdMaybeMonad.dcl
diff options
context:
space:
mode:
authorMart Lubbers2015-04-24 09:10:46 +0200
committerMart Lubbers2015-04-24 09:10:46 +0200
commitaebffcc1c786e8cea15fff6f324bf71fc37cbb37 (patch)
tree0879f685fc1a35361727a203b437c67bb486e981 /files/practicum/StdMaybeMonad.dcl
parentstarted with week2 (diff)
updated practicum files
Diffstat (limited to 'files/practicum/StdMaybeMonad.dcl')
-rw-r--r--files/practicum/StdMaybeMonad.dcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/files/practicum/StdMaybeMonad.dcl b/files/practicum/StdMaybeMonad.dcl
new file mode 100644
index 0000000..e9ebec1
--- /dev/null
+++ b/files/practicum/StdMaybeMonad.dcl
@@ -0,0 +1,9 @@
+definition module StdMaybeMonad
+
+import StdMonad
+
+:: Maybe a = Nothing | Just a
+
+instance return Maybe
+instance >>= Maybe
+instance fail Maybe