summaryrefslogtreecommitdiff
path: root/src/Interpreter.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-10-22 22:02:18 +0200
committerTom Smeding <tom@tomsmeding.com>2024-10-22 22:02:18 +0200
commitd6d07f3bf20b4a3c0e51b4414fb0e4538176d294 (patch)
tree46b1a4e0775dfb812e62bec49c8bf63ef4bf22f6 /src/Interpreter.hs
parent79e072eddf0ec2a97ca455c27cb5ff6f2132bbab (diff)
Less warnings
Diffstat (limited to 'src/Interpreter.hs')
-rw-r--r--src/Interpreter.hs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Interpreter.hs b/src/Interpreter.hs
index b818eb0..7be1c4b 100644
--- a/src/Interpreter.hs
+++ b/src/Interpreter.hs
@@ -473,7 +473,3 @@ ixUncons (IxCons idx i) = (idx, i)
shUncons :: Shape (S n) -> (Shape n, Int)
shUncons (ShCons idx i) = (idx, i)
-
-foldl1M :: Monad m => (a -> a -> m a) -> [a] -> m a
-foldl1M _ [] = error "foldl1M: empty list"
-foldl1M f (tophead : toptail) = foldM f tophead toptail