package alba

  1. Overview
  2. Docs
type !'a t = ('a, problem) Stdlib.result
val return : 'a -> 'a t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val (>=>) : ('a -> 'b t) -> ('b -> 'c t) -> 'a -> 'c t
val map : ('a -> 'b) -> 'a t -> 'b t
val join : 'a t t -> 'a t
val (<*>) : ('a -> 'b) t -> 'a t -> 'b t
type error = problem
val throw : error -> 'a t
val catch : 'a t -> (error -> 'a t) -> 'a t
val continue : 'a t -> ('a -> 'z) -> (error -> 'z) -> 'z
OCaml

Innovation. Community. Security.