Type Level Literals

This page collects information on how to work with type-level literals, as implemented in the Haskell compiler GHC (ticket #4385).


Use Keyword = TypeLits to ensure that a ticket ends up on these lists.

Open Tickets:

type nats solver is too weak!
Use `Natural` rather than `Integer` in `GHC.TypeLits`

Closed Tickets:

ghc: panic! Binder's type (SingI Symbol <a String>) /= RHS type (String)
GHC.TypeLits.Nat types no longer fully simplified.
GHC cannot deduce (irrelevant) reflexive type equality.

User's Guide

Notes on Design

Notes on the Implementation

Source Code

XXX: Cleanup

Last modified 6 months ago Last modified on Jan 25, 2016 12:01:31 PM