Module Merlin_sherlodoc.Type_parsed
A parsed type expression representation, where type variables are expressed as strings and must be normalized in a Type_expr.t.
type t = | Arrow of Merlin_sherlodoc.Type_parsed.t * Merlin_sherlodoc.Type_parsed.t| Tycon of string * Merlin_sherlodoc.Type_parsed.t list| Tuple of Merlin_sherlodoc.Type_parsed.t list| Tyvar of string| Wildcard| Unhandled
val tuple :
Merlin_sherlodoc.Type_parsed.t list ->
Merlin_sherlodoc.Type_parsed.tCreate a tuple using a rather naive heuristic:
- If the list is empty, it produces a type
unit - If the list contains only one element, that element is returned
- Otherwise, a tuple is constructed.