mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-06 11:15:38 -05:00
feat fut: add infix, builds a INFIX as a 1st class module
This commit is contained in:
parent
7c853861d8
commit
d766b362f1
2 changed files with 10 additions and 0 deletions
|
|
@ -354,3 +354,9 @@ end) =
|
||||||
Infix_ (struct
|
Infix_ (struct
|
||||||
let pool = Some X.pool
|
let pool = Some X.pool
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
let[@inline] infix pool : (module INFIX) =
|
||||||
|
let module M = Infix (struct
|
||||||
|
let pool = pool
|
||||||
|
end) in
|
||||||
|
(module M)
|
||||||
|
|
|
||||||
|
|
@ -154,3 +154,7 @@ include INFIX
|
||||||
module Infix (_ : sig
|
module Infix (_ : sig
|
||||||
val pool : Pool.t
|
val pool : Pool.t
|
||||||
end) : INFIX
|
end) : INFIX
|
||||||
|
|
||||||
|
val infix : Pool.t -> (module INFIX)
|
||||||
|
(** [infix pool] makes a new infix module.
|
||||||
|
@since 0.2 *)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue