package producer

  1. Overview
  2. Docs

Module type Producer.MONADSource

Monadic type, used to control effects (usually asynchronous execution) in a producer graph.

Sourcetype 'a t
Sourceval return : 'a -> 'a t

return a lifts the value a into the monadic context.

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

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

OCaml

Innovation. Community. Security.