package odoc

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

Source file or_error.ml

1
2
3
4
5
6
7
8
9
10
type ('a, 'e) result = ('a, 'e) Result.result =
  | Ok of 'a
  | Error of 'e

type msg = [ `Msg of string ]

let (>>=) r f =
  match r with
  | Ok v -> f v
  | Error _ as e -> e
OCaml

Innovation. Community. Security.