package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Implement the applicative and functor modules from only return and bind

Parameters

module M : MONAD_BARE

Signature

include MONAD_BARE with type 'a t = 'a M.t
type 'a t = 'a M.t
val return : 'a -> 'a t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
include APPLICATIVE with type 'a t := 'a t
include FUNCTOR with type 'a t := 'a t
val map : ('a -> 'b) -> 'a t -> 'b t
val pure : 'a -> 'a t
val (<*>) : ('a -> 'b) t -> 'a t -> 'b t
OCaml

Innovation. Community. Security.