Module Utils.EitherMonadSource
Sourcetype ('a, 'b) t = | Left of 'a| Right of 'b
Sourceval return : 'a -> ('b, 'c) t Sourceval return_left : 'a -> ('b, 'c) t Sourceval bind : ('a, 'b) t -> ('c -> ('d, 'e) t) -> ('d, 'e) t Sourceval bind_left : ('a, 'b) t -> ('c -> ('d, 'e) t) -> ('d, 'e) t val (>>=) : ('a, 'b) t -> ('b -> ('a, 'c) t) -> ('a, 'c) tSourceval of_option : left:'a -> 'b option -> ('c, 'd) t