and helper functions.
Signed-off-by: Matthias Goergens <matthias.goergens@citrix.com>
STDEXT_OBJS = fun listext filenameext stringext arrayext hashtblext pervasiveext threadext ring \
qring fring opt bigbuffer unixext range vIO trie config date encodings fe fecomms \
- forkhelpers gzip sha1sum zerocheck base64 backtrace tar mapext os
+ forkhelpers gzip sha1sum zerocheck base64 backtrace tar mapext os either
INTF = $(foreach obj, $(STDEXT_OBJS),$(obj).cmi)
LIBS = stdext.cma stdext.cmxa
open Pervasiveext
-open Listext
type ('a,'b) t = Left of 'a | Right of 'b
| Right x -> Some x
| Left _ -> None
-let cat_right l = List.unbox_list ++ List.map to_option $ l
+let cat_right l = Opt.cat_some ++ List.map to_option $ l
let join = function
| Right (Right x) -> Right x