Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why names form a kind and not just a type?

Some time ago in one of Haskell extensions (can't find the link), and recently in Ur I've found that names (e.g., of record fields) form a Kind. Can somebody explain why Type abstraction is not enough for them?

like image 859
Fixpoint Avatar asked Apr 24 '12 11:04

Fixpoint


People also ask

What is meant by type of name?

A name type indicates the format of the name with which it is associated. ( See Names and OIDs for more on names and name types.)

How many types of names are there?

Names should be categorized by four (4) basic types—Literal, Synthesized, Metaphorical and Hybrids.

What is a descriptive name example?

Descriptive names: Descriptive names describe the product or service, literally. Examples: Paypal, The Body Shop, Whole Foods. Descriptive names can be useful for positioning a brand very clearly, and for B2B brands where purchasers want to know exactly what the brand is selling.


1 Answers

The answer is simple: because they can appear in types. Consequently, they have to live on the type level (otherwise you would need dependent types). And because they live on the type level, they are classified by a kind.

like image 169
Andreas Rossberg Avatar answered Sep 27 '22 23:09

Andreas Rossberg