jon.recoil.org

Module Monad.Option

type 'a t = 'a option
include Misc.Stdlib.Monad.S2 with type ('a, _) t := 'a Misc.Stdlib.Monad.Option.t

>>= is a synonym for bind

val return : 'a -> 'a Misc.Stdlib.Monad.Option.t

return v returns the (trivial) computation that returns v.

join t is t >>= (fun t' -> t').

ignore_m t is map (fun _ -> ()) t.

Like all, but ensures that every monadic value in the list produces a unit value, all of which are discarded rather than being collected into a list.

module Syntax : sig ... end

As described at https://ocaml.org/manual/latest/bindingops.html