package nbd

  1. Overview
  2. Docs
type ('ok, 'err) t = [
  1. | `Ok of 'ok
  2. | `Error of 'err
]
val return : 'a -> [> `Ok of 'a ]
val bind : [< `Error of 'a | `Ok of 'b ] -> ('b -> [> `Error of 'a ] as 'c) -> 'c
val (>>=) : [< `Error of 'a | `Ok of 'b ] -> ('b -> [> `Error of 'a ] as 'c) -> 'c
val fail : 'a -> [> `Error of 'a ]
OCaml

Innovation. Community. Security.