Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
target/
.mooncakes/
_build/
target
_build
2 changes: 1 addition & 1 deletion combinator_test.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions pkg.generated.mbti
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions pretty.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

///|
Expand Down