Frama-C API - S
module type of an RWS monad
Standard monad functions and types
include Frama_c_kernel.Monad.S
val flatten : 'a t t -> 'a t
val map : ('a -> 'b) -> 'a t -> 'b t
val bind : ('a -> 'b t) -> 'a t -> 'b t
module Bool : sig ... end
monadic convenience functions around booleans
applying monadic functions to the option type
module List : sig ... end
applying monadic functions to lists
execute state monad with initial environment env
and initial state state
Reader monad
val with_env : (env -> env) -> 'a t -> 'a t
run a sub-computation using a modified Reader value
Writer monad
val write : out -> unit t
send a value to the Writer side-channel
State monad
obtain the current value of the State variable
set a new value for the State variable
modify the current value of the State variable by applying a function