package monads

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

Derives a set monoind from the set S.

Parameters

Signature

include Base with type t := S.t
val zero : S.t

zero an element that is neutral to plus

val plus : S.t -> S.t -> S.t

plus x y an associative operation.

val concat : S.t list -> S.t

concat xs reduces xs to using plus

val (@@) : S.t -> S.t -> S.t

x @@ y is plus x y