Skip to content

Commit

Permalink
Require Fmt 0.8.7
Browse files Browse the repository at this point in the history
This drops support for OCaml 4.03 and 4.04.

See discussion in mirage#242 (comment).
  • Loading branch information
craigfe committed May 22, 2020
1 parent 4aca254 commit 6fe6420
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion alcotest.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bug-reports: "https://github.com/mirage/alcotest/issues"
depends: [
"dune" {>= "2.0"}
"ocaml" {>= "4.03.0"}
"fmt" {>= "0.8.6"}
"fmt" {>= "0.8.7"}
"astring"
"cmdliner"
"uuidm"
Expand Down
11 changes: 0 additions & 11 deletions src/alcotest-engine/utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,3 @@ end
module Result = struct
let map f = function Ok x -> Ok (f x) | Error e -> Error e
end

module Fmt = struct
[@@@warning "-32"]

(* Re-implement [flush] for pre-0.8.6 compatibility *)
let flush ppf _ = Format.pp_print_flush ppf ()

[@@@warning "+32"]

include Fmt
end
6 changes: 0 additions & 6 deletions src/alcotest-engine/utils.mli
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,3 @@ end
module Result : sig
val map : ('a -> 'b) -> ('a, 'e) result -> ('b, 'e) result
end

module Fmt : sig
include module type of Fmt

val flush : 'a t
end

0 comments on commit 6fe6420

Please sign in to comment.