package decoders

  1. Overview
  2. Docs

Module Decoders_util.My_resultSource

Util module used for native builds (excluded in bs-config.json)

Sourcetype ('good, 'bad) t = ('good, 'bad) result =
  1. | Ok of 'good
  2. | Error of 'bad
Sourceval return : 'good -> ('good, 'bad) t
Sourceval map : ('a -> 'b) -> ('a, 'err) t -> ('b, 'err) t
Sourceval map_err : ('err1 -> 'err2) -> ('a, 'err1) t -> ('a, 'err2) t
Sourcemodule Infix : sig ... end