encyclopegia.org

Type constructor

In the area of mathematical logic and computer science known as type theory, a type constructor is a feature of a typed formal language that builds new types from old ones. Basic types are considered to be built using nullary type constructors. Some type constructors take another type as an argument, e.g., the constructors for product types, function types , power types and list types . New types can be defined by recursively composing type constructors. For example, simply typed lambda calculus can be seen as a language with a single non-basic type constructor—the function type constructor. Product types can generally be considered "built-in" in typed lambda calculi via currying. Abstractly, a type constructor is an n-ary type operator taking as argument zero or more types, and returning another type. Making use of currying, n-ary type operators can be (re)written as a sequence of applications of unary type operators. Therefore, we can view the type operators as a simply typed lambda calculus, which has only one basic type, usually denoted * , and pronounced "type", which is the type of all types in the underlying language, which are now called proper types in order to distinguish them from the types of the type operators in their own calculus, which are called kinds. Type operators may bind type variables.…

In the area of mathematical logic and computer science known as type theory, a type constructor is a feature of a typed formal language that builds new types from old ones. Basic types are considered to be built using nullary type constructors. Some type constructors take another type as an argument, e.g., the constructors for product types, function types , power types and list types . New types can be defined by recursively composing type constructors. For example, simply typed lambda calculus can be seen as a language with a single non-basic type constructor—the function type constructor. Product types can generally be considered "built-in" in typed lambda calculi via currying. Abstractly, a type constructor is an n-ary type operator taking as argument zero or more types, and returning another type. Making use of currying, n-ary type operators can be (re)written as a sequence of applications of unary type operators. Therefore, we can view the type operators as a simply typed lambda calculus, which has only one basic type, usually denoted * , and pronounced "type", which is the type of all types in the underlying language, which are now called proper types in order to distinguish them from the types of the type operators in their own calculus, which are called kinds. Type operators may bind type variables. For example, giving the structure of the simply-typed λ-calculus at the type level requires binding, or higher-order, type operators. These binding type operators correspond to the 2nd axis of the λ-cube, and type theories such as the simply-typed λ-calculus with type operators, λ ω . Combining type operators with the polymorphic λ-calculus (System F) yields System F ω . Some functional programming languages make explicit use of type constructors. A notable example is Haskell, in which all data type declarations are considered to declare type constructors, and basic types (or nullary type constructors) are called type constants. Type constructors may also be considered as parametric polymorphic data types. ==See also== Kind (type theory) Algebraic data type Recursive data type ==References== , chapter 29, "Type Operators and Kinding" P.T. Johnstone, Sketches of an Elephant, p. 940

References

No reference rows published for this article.

Cite this article

MLA

"Type constructor." encyclopegia.org, 2023, https://encyclopegia.org/wiki/type-constructor. Accessed 24 November 2026.

Chicago

"Type constructor." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/type-constructor.

APA

encyclopegia.org. (2023). Type constructor. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/type-constructor

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Al-Sanbariyya

enwiki · references available

Taytaba

enwiki · references available

Tulayl

enwiki · references available

Al-'Ulmaniyya

enwiki · references available

Al-'Urayfiyya

enwiki · references available

Al-Wayziyya

enwiki · references available

Al-Zuq al-Fawqani

enwiki · references available

Al-Dalhamiyya

enwiki · references available

Francis Marshall (United States Army officer)

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1170555323 · 0.5 · snapshot enwiki-001170555323

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.