master
branchmaster
branchOk and
Error)Using
type ('a, 'b) t = | Ok of 'a | Error of 'b
gives two annoying alternatives:
Result.t
, orType equality constraints do not work twice. I.e. one cannot write:
type ('a, 'b) result_core = ('a, 'b) Result.t = Ok of 'a | Error of 'b type ('a, 'b) result_err = ('a, 'b) Err.t = Ok of 'a | Error of 'b type ('a, 'b) result = ('a, 'b) result_err = ('a, 'b) result_core
or any combination like that.