diff --git a/.gitignore b/.gitignore index b1283a7..9ae5a45 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ target/ .mooncakes/ +_build/ +target +_build 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() } ///|