refactor Ord to be based on compare

This commit is contained in:
2024-12-29 16:16:49 -08:00
parent 413f95940f
commit 6397cac18a
11 changed files with 47 additions and 57 deletions

View File

@@ -28,7 +28,7 @@ instance Eq Dir where
a == b = show a == show b
instance Ord Dir where
a < b = show a < show b
compare a b = compare (show a) (show b)
Done : U
Done = SortedMap (Point × Dir) Unit