···106106 body @ expand_eff ~forest rest
107107 | Alloc x ->
108108 let symbol = Symbol.named x in
109109- Sc.include_singleton x @@ (Term [Range.locate_opt node.loc (Syn.Sym symbol)], node.loc);
109109+ Sc.include_singleton x (Term [Range.locate_opt node.loc (Syn.Sym symbol)], node.loc);
110110 expand_eff ~forest rest
111111 | Put (k, v) ->
112112 let k = expand_ident node.loc k in
···147147 | Let (x, ys, def) ->
148148 let lam = expand_lambda ~forest node.loc (ys, def) in
149149 let@ () = Sc.section [] in
150150- Sc.import_singleton x @@ (Term [lam], node.loc);
150150+ Sc.import_singleton x (Term [lam], node.loc);
151151 expand_eff ~forest rest
152152 | Def (x, ys, def) ->
153153 let lam = expand_lambda ~forest node.loc (ys, def) in
154154- Sc.include_singleton x @@ (Term [lam], node.loc);
154154+ Sc.include_singleton x (Term [lam], node.loc);
155155 expand_eff ~forest rest
156156 | Decl_xmlns (prefix, xmlns) ->
157157 let path = ["xmlns"; prefix] in
158158- Sc.include_singleton path @@ (Xmlns {prefix; xmlns}, node.loc);
158158+ Sc.include_singleton path (Xmlns {prefix; xmlns}, node.loc);
159159 expand_eff ~forest rest
160160 | Object {self; methods} ->
161161 let methods =
···163163 begin
164164 let@ self = Option.iter @~ self in
165165 let var = Range.{value = Syn.Var self; loc = node.loc} in (* TODO: correct the location *)
166166- Sc.import_singleton [self] @@ (Term [var], node.loc) (* TODO: correct the location*)
166166+ Sc.import_singleton [self] (Term [var], node.loc) (* TODO: correct the location*)
167167 end;
168168 List.map (expand_method ~forest) methods
169169 in
···175175 begin
176176 let@ self = Option.iter @~ self in
177177 let self_var = Range.locate_opt None @@ Syn.Var self in
178178- Sc.import_singleton [self] @@ (Term [self_var], node.loc);
178178+ Sc.import_singleton [self] (Term [self_var], node.loc);
179179 let@ super = Option.iter @~ super in
180180 let super_var = Range.locate_opt None @@ Syn.Var super in
181181- Sc.import_singleton [super] @@ (Term [super_var], node.loc)
181181+ Sc.import_singleton [super] (Term [super_var], node.loc)
182182 end;
183183 List.map (expand_method ~forest) methods
184184 in
···268268 let xs =
269269 let@ strategy, x = List.map @~ xs in
270270 let var = Range.locate_opt None @@ Syn.Var x in
271271- Sc.import_singleton [x] @@ (Term [var], loc);
271271+ Sc.import_singleton [x] (Term [var], loc);
272272 strategy, x
273273 in
274274 Range.{value = Syn.Fun (xs, expand_eff ~forest body); loc}
+1-1
lib/compiler/test/Test_expansion.ml
···9696 let@ (path, _) = Option.map @~ Seq.find (fun (p, _) -> p = ["greet"]) result in
9797 path
9898 in
9999- Alcotest.(check @@ (option path))
9999+ Alcotest.(check (option path))
100100 "greet is visible"
101101 (Some (["greet"]))
102102 greet
+1-1
lib/frontend/Config_parser.ml
···9494 | Some path -> path
9595 in
9696 let route_locally =
9797- match get foreign_tbl @@ (key "route_locally" |-- bool) with
9797+ match get foreign_tbl (key "route_locally" |-- bool) with
9898 | None -> true
9999 | Some b -> b
100100 in