package soteria

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

Parameter Make_syntax2.Base

Basic interface for a monad with two type parameters (e.g. Result).

type ('a, 'b) t
val ok : 'a -> ('a, 'b) t
val bind : ('a -> ('c, 'b) t) -> ('a, 'b) t -> ('c, 'b) t
val map : ('a -> 'c) -> ('a, 'b) t -> ('c, 'b) t
val error : 'b -> ('a, 'b) t
val bind_error : ('b -> ('a, 'c) t) -> ('a, 'b) t -> ('a, 'c) t
val map_error : ('b -> 'c) -> ('a, 'b) t -> ('a, 'c) t