Commit 7d201c5d by POTTIER Francois

Use the package [result], for compatibility with OCaml 4.02.

parent f0430069
......@@ -20,5 +20,6 @@ depends: [
"ocamlbuild" {build}
"ppx_tools"
"ppx_deriving" {>= "4.0"}
"result"
]
available: [ ocaml-version >= "4.03" ]
open Result
open Longident
open Asttypes
open Parsetree
......
......@@ -12,6 +12,14 @@
(* -------------------------------------------------------------------------- *)
(* For compatibility with OCaml 4.02, we take the type [('a, 'b) result] from
the package [result]. This type appeared in the standard library in OCaml
4.03. *)
open Result
(* -------------------------------------------------------------------------- *)
(* [array_equal eq xs1 xs2] tests whether the arrays [xs1] and [xs2] have the
same components. The arrays must have the same length. The components are
compared using [eq]. *)
......
open Result
open VisitorsString
open List
let sprintf = Printf.sprintf
......
true: \
debug, \
safe_string, \
warn(A-4-44)
warn(A-4-44), \
package(result)
not <VisitorsRuntime.*>: \
package(compiler-libs.common), \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment