commit d673f52b32549c0ad3f4e094b9b5fabdd974caf1
parent d5377b6a24ba677861a8bac3ab88e0956473465f
Author: Jared Tobin <jared@jtobin.io>
Date: Fri, 19 Dec 2025 09:05:17 -0330
lib: ord instance for wider
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/Data/Word/Wider.hs b/lib/Data/Word/Wider.hs
@@ -105,6 +105,9 @@ instance Show Wider where
instance Eq Wider where
Wider a == Wider b = C.decide (eq# a b)
+instance Ord Wider where
+ compare = cmp
+
instance Num Wider where
(+) = add
(-) = sub