summaryrefslogtreecommitdiff
path: root/monad/h1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'monad/h1.hs')
-rw-r--r--monad/h1.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/monad/h1.hs b/monad/h1.hs
new file mode 100644
index 0000000..a6cc093
--- /dev/null
+++ b/monad/h1.hs
@@ -0,0 +1,3 @@
+instance Monad [] where
+ return a = [a]
+ (>>=) as f = concatMap f as