From 857d1d739019f02d8f53668c8d3893f046613309 Mon Sep 17 00:00:00 2001 From: peter-jerry-ye Date: Tue, 6 Jan 2026 18:08:10 +0800 Subject: [PATCH 1/3] chore: update .gitignore for MoonBit artifacts --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index b1283a7..4d40e16 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ target/ .mooncakes/ +_build/ +target From 09a2e31b2bbd4a07a5f476ebd4f99a4e1f7f5e3d Mon Sep 17 00:00:00 2001 From: peter-jerry-ye Date: Tue, 6 Jan 2026 18:09:23 +0800 Subject: [PATCH 2/3] Update gitignore for build outputs --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 4d40e16..9ae5a45 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ target/ .mooncakes/ _build/ target +_build From 56091ab7428b29e73f0df1e00a679c54e8ca017e Mon Sep 17 00:00:00 2001 From: peter-jerry-ye Date: Tue, 6 Jan 2026 18:11:46 +0800 Subject: [PATCH 3/3] Migrate iterator pretty impls --- combinator_test.mbt | 2 +- pkg.generated.mbti | 4 ++-- pretty.mbt | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/combinator_test.mbt b/combinator_test.mbt index cc82932..3c1558e 100644 --- a/combinator_test.mbt +++ b/combinator_test.mbt @@ -60,7 +60,7 @@ test "json" { "obj3": { "a": true, "b": true }, "obj4": { "a": true, "b": true }, }, - "key3": [true, false, Null], + "key3": [true, false, Json::null()], } inspect( @prettyprinter.render(json), diff --git a/pkg.generated.mbti b/pkg.generated.mbti index 5d32ec8..6ba53e0 100644 --- a/pkg.generated.mbti +++ b/pkg.generated.mbti @@ -122,8 +122,8 @@ pub impl Pretty for Bytes pub impl Pretty for @bigint.BigInt pub impl Pretty for @buffer.Buffer pub impl[A : Pretty] Pretty for Array[A] -pub impl[A : Pretty] Pretty for Iter[A] -pub impl[A : Pretty, B : Pretty] Pretty for Iter2[A, B] +pub impl[A : Pretty] Pretty for Iterator[A] +pub impl[A : Pretty, B : Pretty] Pretty for Iterator2[A, B] pub impl Pretty for Json pub impl[A : Pretty, B : Pretty] Pretty for Map[A, B] pub impl[A : Pretty] Pretty for @deque.Deque[A] diff --git a/pretty.mbt b/pretty.mbt index 8f54b82..65fb8d8 100644 --- a/pretty.mbt +++ b/pretty.mbt @@ -483,13 +483,13 @@ pub impl[A : Pretty] Pretty for @immut/array.T[A] with pretty(array) { } ///| -pub impl[A : Pretty] Pretty for Iter[A] with pretty(self) { +pub impl[A : Pretty] Pretty for Iterator[A] with pretty(self) { self.to_array() |> pretty() } ///| -pub impl[A : Pretty, B : Pretty] Pretty for Iter2[A, B] with pretty(self) { - self.to_array() |> pretty() +pub impl[A : Pretty, B : Pretty] Pretty for Iterator2[A, B] with pretty(self) { + self.iterator().to_array() |> pretty() } ///|