package anycache

  1. Overview
  2. Docs

Source file types.ml

1
2
3
4
5
6
7
8
module type Monad = sig
  type +'a t
  type ('a, 'b) result = Ok of 'a | Error of 'b
  val return : 'a -> 'a t
  val fail : exn -> 'a t
  val ( >>? ) : 'a t -> (('a, exn) result -> 'b t) -> 'b t
end