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!

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.
Use `Natural` rather than `Integer` in `GHC.TypeLits`

User's Guide

Notes on Design

Notes on the Implementation

Source Code

XXX: Cleanup

Last modified 4 years ago Last modified on Jan 25, 2016 12:01:31 PM