Module State_or_error.Make

Parameters

module State : sig ... end

Signature

include Core_kernel.Monad.S
type 'a t
val (>>=) : 'a t -> ( 'a -> 'b t ) -> 'b t
val (>>|) : 'a t -> ( 'a -> 'b ) -> 'b t
module Monad_infix : sig ... end
val bind : 'a t -> f:( 'a -> 'b t ) -> 'b t
val return : 'a -> 'a t
val map : 'a t -> f:( 'a -> 'b ) -> 'b t
val join : 'a t t -> 'a t
val ignore_m : 'a t -> unit t
val all : 'a t list -> 'a list t
val all_unit : unit t list -> unit t
module Let_syntax : sig ... end
type state
val run_state : 'a t -> state:state -> ('a * state) Core_kernel.Or_error.t
val get : state t
val put : state -> unit t
val error_if : bool -> message:string -> value:'a -> 'a t