package sugar

  1. Overview
  2. Docs

Create a result monad for synchronous processing.

How to create a result monad:

module MyError = struct
  type t = A | B | C
end

module MyResult = Sugar.Result.Make (MyError)

The generated module will have the signature of Sugar.S.Result

A parametric module that implements the blocking interface.

OCaml

Innovation. Community. Security.