We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf895fd commit bf89deeCopy full SHA for bf89dee
src/value.ml
@@ -14,16 +14,6 @@ let sexp_of_t =
14
15
let string_of_path ~dir p = Path.reach ~from:dir p
16
17
-let compare x y =
18
- match x, y with
19
- | String x, String y -> String.compare x y
20
- | Path x, Path y -> Path.compare x y
21
- | _ , _ ->
22
- Exn.code_error "Value.compare"
23
- [ "x", sexp_of_t x
24
- ; "y", sexp_of_t y
25
- ]
26
-
27
let to_string t ~dir =
28
match t with
29
| String s -> s
src/value.mli
@@ -5,7 +5,7 @@ type t =
5
| Dir of Path.t
6
| Path of Path.t
7
8
-val compare : t -> t -> Ordering.t
+val sexp_of_t : t Sexp.To_sexp.t
9
10
val to_string : t -> dir:Path.t -> string
11
0 commit comments