Frama-C:
Plug-ins:
Libraries:

Frama-C API - Result

include Frama_c_kernel.Monad.S
type 'a t
val return : 'a -> 'a t
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

module Option : sig ... end

applying monadic functions to the option type

module List : sig ... end

applying monadic functions to lists

module Operators : sig ... end
val ok : 'a -> 'a t
val warning : 'a -> ('r, Stdlib.Format.formatter, unit, 'a t) Stdlib.format4 -> 'r
val error : ('r, Stdlib.Format.formatter, unit, 'a t) Stdlib.format4 -> 'r
val log : error:'a -> 'a t -> 'a
val value : 'a t -> 'a