summaryrefslogtreecommitdiff
path: root/hask-io/mini.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hask-io/mini.hs')
-rw-r--r--hask-io/mini.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/hask-io/mini.hs b/hask-io/mini.hs
new file mode 100644
index 0000000..7d73bfe
--- /dev/null
+++ b/hask-io/mini.hs
@@ -0,0 +1,3 @@
+import qualified Data.ByteString.Lazy as B
+main = B.getContents>>=print.show.f
+ where f = B.foldl1' (+)