Module Merlin_sherlodoc.Type_parsedSource

A parsed type expression representation, where type variables are expressed as strings and must be normalized in a Type_expr.t.

Sourcetype t =
  1. | Arrow of t * t
  2. | Tycon of string * t list
  3. | Tuple of t list
  4. | Tyvar of string
  5. | Wildcard
  6. | Unhandled
Sourceval tuple : t list -> t

Create 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.