Skip to content

Commit 0c8b071

Browse files
committed
Bring back Expr.Bool.v
1 parent b4ac590 commit 0c8b071

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/expr.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,8 @@ module Bool = struct
519519

520520
let to_val b = if b then true_ else false_
521521

522+
let v b = to_val b [@@inline]
523+
522524
let not_ (b : t) =
523525
let bexpr = view b in
524526
match of_val bexpr with

lib/expr.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ module Bool : sig
135135

136136
val false_ : t
137137

138+
val v : bool -> t
139+
138140
val not_ : t -> t
139141

140142
val equal : t -> t -> t

0 commit comments

Comments
 (0)