aboutsummaryrefslogtreecommitdiffstats
path: root/lib/protocols/Program.mli
blob: a795f166ab803419ef4b2d7fb74e571a39bc7736 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
type t

class type implementation = object
  method entry_points : string BatFingerTree.t
  method invoke :
    entry:string ->
    bindings:Concepts.Tuple.t ->
    Context.t ->
    (Handle.t, Concepts.Condition.condition) result
end

val make : #implementation -> Handle.protocol
val from : Handle.t -> t Handle.interface option
val entry_points : t Handle.interface -> string BatFingerTree.t

val invoke :
  t Handle.interface ->
  entry:string ->
  bindings:Concepts.Tuple.t ->
  Context.t ->
  (Handle.t, Concepts.Condition.condition) result