preface

An opinionated library for function programming (à La Haskell)
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library preface.specs
type 'a t

The type held by the Monad.

include WITH_RETURN with type 'a t := 'a t
val return : 'a -> 'a t

Lift a value from 'a into a new 'a t.

include Bind.WITH_KLEISLI_COMPOSITION with type 'a t := 'a t
val compose_left_to_right : ( 'a -> 'b t ) -> ( 'b -> 'c t ) -> 'a -> 'c t

Composing monadic functions using Kleisli Arrow (from left to right).