package middleware

  1. Overview
  2. Docs

Module type Middleware.MONADSource

Minimal monad definition required by a Middleware.

Sourcetype 'a t
Sourceval map : ('a -> 'b) -> 'a t -> 'b t

map fn a applies fn to a, producing a 'b t.

Sourceval bind : 'a t -> ('a -> 'b t) -> 'b t

bind fn a sequentially composes a with fn, passing the result of the first action to fn.

Sourceval return : 'a -> 'a t

return a injects the value a into the monadic type.

OCaml

Innovation. Community. Security.