This commit is contained in:
Louis Gesbert 2024-06-27 15:22:02 +02:00
parent 561788cbaf
commit 03e74b505d
2 changed files with 1 additions and 8 deletions

View File

@ -287,7 +287,7 @@ let print_box tcolor ppf title (pcontents : box -> unit) =
(fun ppf ->
Format.pp_print_tab ppf ();
Format.fprintf ppf "%t┃@}@," tcolor)
ppf ("%t@<1>%s@} " ^^ fmt) tcolor "");
ppf ("%t@<1>%s@} " ^^ fmt) tcolor "");
}
in
pcontents box;

View File

@ -35,13 +35,6 @@ type 'm ctxt = {
program_ctx : A.ctx;
}
let unthunk e =
match Mark.remove e with
| EAbs { binder; tys = [(TLit TUnit, _)] } ->
let _, e = Bindlib.unmbind binder in
e
| _ -> failwith "should not happen"
(* Expressions can spill out side effect, hence this function also returns a
list of statements to be prepended before the expression is evaluated *)