aboutsummaryrefslogtreecommitdiffstats
path: root/app/Data/List
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-09 15:13:31 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-11-09 15:15:11 +0100
commit075afbe4d365d8056a610d6e05d699893337c064 (patch)
treee419a87350cae6faca1df70ca3702ce232706bf4 /app/Data/List
parentd7e9d7fc2e04fb65199a26ca021a218f42f68b9d (diff)
improve list output
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