package travesty
Traversable containers, monad extensions, and more
Install
Dune Dependency
Authors
Maintainers
Sources
travesty-0.7.2.tbz
sha256=49d43ea0e9cef32d493fcc1561fc7480c55d9a2490700e487f4d5c3aff562d61
sha512=1cd77071adfb4583d0fcd27469b97bc64b7278761949aaaf415768aec14f6a1243e14575155c75033a5141a0320b4f56687381dc2bc56432a5ea63ea8613d968
doc/travesty/Travesty/Monad_exts/index.html
Module Travesty.Monad_exts
Source
Generic monad extensions.
Monad_exts
contains a signature and functor for adding various extensions to Base
-style monads.
Signatures
For input and output module signatures for this module's functors, see Filter_mappable_types
.
Extension functors
Let
implements OCaml 4.08 let bindings for Base monads.
Extend
creates extensions for a Monad.S
.
Miscellaneous
Like Base.Applicative.Of_monad
, but retains the type.
Source
module S2_to_S
(M : Base.Monad.S2)
(B : Base.T) :
Base.Monad.S with type 'a t := ('a, B.t) M.t
Demotes an arity-2 monad M
to an arity-1 one, fixing its second type to be B.t
.
Converts a monad to a mappable over M.map
.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page