Preface_stdlib.TrySourceImplementation for Try.t.
Try.t is a biased version of Result with the error fixed as an exception.
module Functor : Preface_specs.FUNCTOR with type 'a t = 'a tmodule Alt : Preface_specs.ALT with type 'a t = 'a tTry.t implements Preface_specs.APPLICATIVE and introduces an interface to define Preface_specs.TRAVERSABLE using Try as an iterable structure.
Try.t implements Preface_specs.MONAD and introduces an interface to define Preface_specs.TRAVERSABLE using Try as an iterable structure.
module Foldable : Preface_specs.FOLDABLE with type 'a t = 'a tAdditional functions to facilitate practical work with Try.t.
capture f perform f and wrap the result into a t if the execution of f raise no exception, the result will be Ok result else, the catched exception if wrapped into Error exn.
case f g x apply f if x is Ok, g if x is Error.
Project a Try into a Validation.
Formatter for pretty-printing for Try.t.