let rec tyOr_of_list = function | [] -> Ast.TyNil ghost | [ t ] -> t | t :: ts -> let _loc = loc_of_ctyp t in Ast.TyOr (_loc, t, (tyOr_of_list ts))