Type Level Literals
This page collects information on how to work with type-level literals, as implemented in the Haskell compiler GHC (ticket #4385 (closed)).
Status
See the type literals label for tickets.
User's Guide
- Type-Level Literal Basics
- Type-Level Computation
- Typed examinations of Sing values
- Matching on Type-Level Naturals (i.e., working with classes and type-families)
Notes on Design
- Details about the implementation of singleton families.
- Alternative Design For Singletons
- Avoiding Partial Type Functions
- Singletons and Existentials
Notes on the Implementation
Source Code
- type-nats branch of GHC
- type-nats branch of the base library
- type nats branch of template-haskell
- Also, there is a type-nats branch for 'haddock'.