From 2db5993a642bc4d542806a5564265a349db3cc8e Mon Sep 17 00:00:00 2001 From: "Luke Boswell (Linux-Desktop)" Date: Wed, 22 Jul 2026 13:22:06 +1000 Subject: [PATCH 1/2] Add Path equality for new compiler --- package/Path.roc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/Path.roc b/package/Path.roc index 9f7f979..1e9eff4 100644 --- a/package/Path.roc +++ b/package/Path.roc @@ -132,6 +132,10 @@ Path :: [ UnixBytes(bytes) => Unix(bytes) WindowsU16s(u16s) => Windows(u16s) } + + ## Compare paths by their exact tagged representation. + is_eq : Path, Path -> Bool + is_eq = |left, right| to_raw(left) == to_raw(right) } str_from_valid_utf8 : List(U8) -> Str From 217345f4c162c35347d8a3cd96c35ddc6d6ea79f Mon Sep 17 00:00:00 2001 From: "Luke Boswell (Linux-Desktop)" Date: Wed, 22 Jul 2026 13:23:25 +1000 Subject: [PATCH 2/2] Use compiler-derived Path equality --- package/Path.roc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/Path.roc b/package/Path.roc index 1e9eff4..7428347 100644 --- a/package/Path.roc +++ b/package/Path.roc @@ -134,8 +134,7 @@ Path :: [ } ## Compare paths by their exact tagged representation. - is_eq : Path, Path -> Bool - is_eq = |left, right| to_raw(left) == to_raw(right) + is_eq : _ } str_from_valid_utf8 : List(U8) -> Str