shithub: MicroHs

Download patch

ref: 8dc29a90061b463dca17902cf51cb640eb481722
parent: 518e38f61bf4387621ee303fd215c5262a526e20
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Fri Nov 17 20:32:52 EST 2023

Better error message

--- a/lib/Data/Integer.hs
+++ b/lib/Data/Integer.hs
@@ -181,7 +181,7 @@
     lys = length ays
     cmp (x:xs) (y:ys) = x < y || x == y && cmp xs ys
     cmp []     []     = False
-    cmp _      _      = error "cmp"
+    cmp _      _      = error "ltW.cmp"
     
 mulI :: Integer -> Integer -> Integer
 mulI (I _ []) _ = I Plus []         -- 0 * x = 0
--