Module Option.Collection

Lifts collection interface into the monad.

This module provides two functors that take a basic collection interface and provide the Monad.Collection.S interface.

See Monad.Collection for more information.

module type S = Collection.S with type 'a m := 'a t
module Eager (T : Collection.Eager) : S with type 'a t := 'a T.t

Eager(C) derives Monad.Collection.S for container C

module Delay (T : Collection.Delay) : S with type 'a t := 'a T.t

Delay(C) derives Monad.Collection.S for container C