Class Ast.CompositeType

  • Enclosing class:
    Ast

    public static class Ast.CompositeType
    extends Ast.Type
    Not really a type, just a way for the parser to represent the type arguments to a type constructor.

    For example, in datatype foo = Pair of (int, string) list, (int, string) is briefly represented as a composite type, then int and string becomes the two type parameters to the list Ast.NamedType.