aboutsummaryrefslogtreecommitdiffstats
path: root/app/Data/List
diff options
context:
space:
mode:
Diffstat (limited to 'app/Data/List')
-rw-r--r--app/Data/List/Extra.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Data/List/Extra.hs b/app/Data/List/Extra.hs
new file mode 100644
index 0000000..d01beb9
--- /dev/null
+++ b/app/Data/List/Extra.hs
@@ -0,0 +1,5 @@
+module Data.List.Extra (list) where
+
+list :: b -> ([a] -> b) -> [a] -> b
+list y _ [] = y
+list _ f xs = f xs