Skip to content

Commit

Permalink
Fix compat with OCaml 4.04
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremie Dimino <[email protected]>
  • Loading branch information
jeremiedimino committed Mar 18, 2020
1 parent fb86294 commit 8419f8a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.0.1
-----

- Fix compat with OCaml 4.04

1.0.0
-----

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ reinstall: uninstall install
clean:
dune clean

all-supported-ocaml-versions:
dune runtest --workspace dune-workspace.dev

.PHONY: default install uninstall reinstall clean test
4 changes: 4 additions & 0 deletions dune-workspace.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(lang dune 1.0)

;; This file is used by `make all-supported-ocaml-versions`
(context (opam (switch 4.04.2)))
4 changes: 2 additions & 2 deletions src/pp.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module List = Stdlib.ListLabels
module String = Stdlib.StringLabels
module List = ListLabels
module String = StringLabels

type +'a t =
| Nop
Expand Down
6 changes: 4 additions & 2 deletions test/tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ let%expect_test _ =
++ Pp.cut
++ Pp.box (Pp.text "Here are a few things you can do:")
++ Pp.cut
++ Pp.enumerate ~f:Fun.id
++ Pp.enumerate
~f:(fun x -> x)
[ Pp.text
"read the documentation, double check the way you are using \
this software to make sure you are not doing something wrong, \
Expand All @@ -180,7 +181,8 @@ let%expect_test _ =
; "clear your head and try again"
]
] ));
[%expect {|
[%expect
{|
Error: something went wrong!
Here are a few things you can do:
- read the documentation, double check the way you are using this software to
Expand Down

0 comments on commit 8419f8a

Please sign in to comment.