Frama-C:
Plug-ins:
Libraries:

Frama-C API - Make_based_on_bind_with_product

Extend a minimal monad based on bind with product.

  • since 31.0-Gallium

Parameters

Signature

type 'a t = 'a M.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
val product : 'a t -> 'b t -> ('a * 'b) t
module Operators : sig ... end