package producer

  1. Overview
  2. Docs

Module type Producer.MONAD2Source

Monadic type, with two type parameters.

Sourcetype ('a, 'b) t
Sourceval return : 'a -> ('a, 'b) t

return a lifts the value a into the monadic context.

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

bind ma fn applies the monadic function fn to the monadic value ma.