summaryrefslogtreecommitdiff
path: root/compiler/PureUtils.ml
diff options
context:
space:
mode:
authorSon Ho2023-01-05 23:50:41 +0100
committerSon HO2023-02-03 11:21:46 +0100
commit23ceb23847f2a5cd568278a47015f4d220f138c5 (patch)
treeef94c4562f44842fad8ceb0293a7628b9f7de201 /compiler/PureUtils.ml
parentefba91b5cc65d83c3f4d8a0d282eeda520abe82a (diff)
Fix a minor issue in decompose_let_bindings
Diffstat (limited to '')
-rw-r--r--compiler/PureUtils.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/PureUtils.ml b/compiler/PureUtils.ml
index 4816f31f..a60bcd78 100644
--- a/compiler/PureUtils.ml
+++ b/compiler/PureUtils.ml
@@ -68,6 +68,11 @@ let mk_let (monadic : bool) (lv : typed_pattern) (re : texpression)
let ty = next_e.ty in
{ e; ty }
+let mk_tag (msg : string) (next_e : texpression) : texpression =
+ let e = Meta (Tag msg, next_e) in
+ let ty = next_e.ty in
+ { e; ty }
+
(** Type substitution *)
let ty_substitute (tsubst : TypeVarId.id -> ty) (ty : ty) : ty =
let obj =