summaryrefslogtreecommitdiff
path: root/src/diff.mli
blob: 1b021bd78582b80e12a8237e7ab06bfec0940046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
type change = Unchanged | Added | Subtracted | Updated of string list

exception Incommensurable
exception Empty_comparison

module type Place = sig
    type t
    val diff_func : ?descent:bool -> string list -> t -> change -> t
end

module Diff : functor (P: Place) -> sig
    val diff_calc : string list -> P.t -> Config_tree.t option * Config_tree.t option -> P.t
    val diff : P.t -> Config_tree.t -> Config_tree.t -> P.t
end