File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- open EffectHandlers
2- open EffectHandlers .Shallow
1+ open Effect
2+ open Effect .Shallow
33
44type 'a t = 'a Atomic .t * int
55
6- type _ eff + =
7- | Make : 'a -> 'a t eff
8- | Get : 'a t -> 'a eff
9- | Set : ('a t * 'a ) -> unit eff
10- | Exchange : ('a t * 'a ) -> 'a eff
11- | CompareAndSwap : ('a t * 'a * 'a ) -> bool eff
12- | FetchAndAdd : (int t * int ) -> int eff
6+ type _ Effect.t + =
7+ | Make : 'a -> 'a t Effect .t
8+ | Get : 'a t -> 'a Effect .t
9+ | Set : ('a t * 'a ) -> unit Effect .t
10+ | Exchange : ('a t * 'a ) -> 'a Effect .t
11+ | CompareAndSwap : ('a t * 'a * 'a ) -> bool Effect .t
12+ | FetchAndAdd : (int t * int ) -> int Effect .t
1313
1414module IntSet = Set. Make (
1515 struct
@@ -106,7 +106,7 @@ let handler current_process_id runner =
106106 runner () ));
107107 exnc = (fun s -> raise s);
108108 effc =
109- (fun (type a ) (e : a eff ) ->
109+ (fun (type a ) (e : a Effect.t ) ->
110110 match e with
111111 | Make v ->
112112 Some
You can’t perform that action at this time.
0 commit comments