package core
Source file or_error.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30open! Import include Base.Or_error type 'a t = ('a, Error.t) Result.t [@@deriving bin_io, diff ~extra_derive:[ sexp ]] module Expect_test_config = struct module IO = Base.Or_error let run f = ok_exn (f ()) let sanitize s = s let upon_unreleasable_issue = Expect_test_config.upon_unreleasable_issue end module Expect_test_config_with_unit_expect = Expect_test_config module Stable = struct module V1 = struct type 'a t = ('a, Error.Stable.V1.t) Result.Stable.V1.t [@@deriving bin_io, compare, sexp, stable_witness] let map x ~f = Result.Stable.V1.map x ~f1:f ~f2:Fn.id end module V2 = struct type 'a t = ('a, Error.Stable.V2.t) Result.Stable.V1.t [@@deriving bin_io, compare, equal, sexp, sexp_grammar, stable_witness, diff] let map x ~f = Result.Stable.V1.map x ~f1:f ~f2:Fn.id end end