preface.make
Via_bind.Req
preface
preface.core
preface.specs
preface.stdlib
type 'a t
The type held by the Monad.
Monad
include Preface_specs.Monad.WITH_RETURN with type 'a t := 'a t
val return : 'a -> 'a t
Lift a value from 'a into a new 'a t.
'a
'a t
include Preface_specs.Bind.WITH_BIND with type 'a t := 'a t
val bind : ('a -> 'b t) -> 'a t -> 'b t
bind f m passes the result of computation m to function f.
bind f m
m
f
val combine : 'a t -> 'a t -> 'a t
Combine two values of 'a t into one.
val neutral : 'a t
The neutral element of the Alternative.
Alternative