package travesty

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

Generic monad extensions.

T_monad contains a signature and functor for adding various extensions to Core-style monads.

Extensions

module type Extensions = sig ... end

Extensions contains extensions for a Monad.S.

module Extend (M : Base.Monad.S) : Extensions with type 'a t := 'a M.t

Extend creates Extensions for a Monad.S.

Miscellaneous

module S2_to_S (M : Base.Monad.S2) (B : Base.T) : Base.Monad.S with type 'a t := ('a, B.t) M.t

Demotes an arity-2 monad M to an arity-1 one, fixing its second type to be B.t.

module To_mappable (M : Base.Monad.S) : Mappable.S1 with type 'a t := 'a M.t

Converts a monad to a mappable over M.map.

OCaml

Innovation. Community. Security.