- Require OCaml >= 4.08. This drops the dependency on the
result
compatibility package. - Users are encouraged to move the
Stdlib.Result
module available in OCaml 4.08.
- Add
R.failwith_error_msg
.
R.[k]ignore_error
use a thunk for the~use
argument. This is an incompatible change. Simply wrap occurences of~use:e
with~use:(fun _ -> e)
.
- Build depend on topkg.
- Relicense from BSD3 to ISC.
R.pp
remove thepp_
prefix from the labels and do not print the constructors names, use to the newly introducedR.dump
for this. This follows the conventions ofFmt
.
- Use the type provided by the
Result
compatibility library. OpeningRresult
still gives you both unprefixed variant constructors and infix operators. - Remove the
R.{int,nativeint,int32,int64,float,bool}_of_string
functions. They do not belong here. R.map
, swap argument order. Thanks to Gabriel Radanne for suggesting.- Fix
R.bind
which had a more restrictive type than>>=
. Thanks to Hezekiah M. Carty for the patch.
- The
Rresult_infix
module no longer exists. Open directlyRresult
for using the library.
First release.