package accessor_base

  1. Overview
  2. Docs

Source file accessor_result.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
open! Base
open! Import

type ('ok, 'err) t = ('ok, 'err) Result.t =
  | Ok of 'ok
  | Error of 'err
[@@deriving accessors]

include Accessor.Of_monad2 (struct
  include Result

  let apply = `Define_using_bind
end)
OCaml

Innovation. Community. Security.