Skip to content

Commit 23b93bb

Browse files
committed
fix: define pp_print_result
only available since 4.08
1 parent 042567f commit 23b93bb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test-ezxmlm/test_ezxmlm_decode.ml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ let root : root decoder =
9595
>>= fun trees -> succeed { main; trees }
9696

9797

98+
let pp_print_result ~ok ~error fmt = function
99+
| Ok x ->
100+
ok fmt x
101+
| Error e ->
102+
error fmt e
103+
104+
98105
let () =
99106
printf
100107
"%a@."

0 commit comments

Comments
 (0)