aboutsummaryrefslogtreecommitdiffstats
path: root/lib/protocols/Derived.mli
blob: b3dce96401bfd7ffc66c4eccd693a19f8027661a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
(** a relation computed from other relations. [within] gives the same
    relation read against another directory of relations, so a snapshot
    of the tree can hand out its derived relations as they were, or as
    they would be, at that moment. *)
type t

class type implementation = object
  method within : Handle.t -> (Handle.t, Concepts.Condition.condition) result
end

val make : #implementation -> Handle.protocol
val from : Handle.t -> t Handle.interface option
val within : t Handle.interface -> Handle.t -> (Handle.t, Concepts.Condition.condition) result