package alba

  1. Overview
  2. Docs
Alba compiler

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.4.3.tar.gz
sha256=062f33c55ef39706c4290dff67d5a00bf009051fd757f9352be527f629ae21fc
md5=eb4edc4d6b7e15b83d6397bd34994153

doc/alba.fmlib/Fmlib/Result/Make/index.html

Module Result.Make

Result Monad, satisfying the complete monadic interface as described in Module_types.MONAD.

Parameters

Signature

type error = Error.t
type 'a t = ('a, error) 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
val throw : error -> 'a t
val catch : 'a t -> (error -> 'a t) -> 'a t
val continue : 'a t -> ('a -> 'r) -> (error -> 'r) -> 'r
OCaml

Innovation. Community. Security.