Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,251
Issues
4,251
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
394
Merge Requests
394
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Wiki
type nats
type nats
· Edit Page
Title
Tip: You can move this page by adding the path to the beginning of the title.
More information
.
Format
Markdown
RDoc
AsciiDoc
Org
Content
Write
Preview
# Type Level Literals This page collects information on how to work with type-level literals, as implemented in the Haskell compiler GHC (ticket #4385). ## Status See the ~"type literals" label for tickets. ## User's Guide - [Type-Level Literal Basics](type-nats/basics) - [Type-Level Computation](type-nats/operations) - [Typed examinations of Sing values](type-nats/inductive-definitions) - [Matching on Type-Level Naturals (i.e., working with classes and type-families)](type-nats/matching-on-nats) ## Notes on Design - [Details about the implementation of singleton families.](type-nats/singletons-and-kinds) - [Alternative Design For Singletons](type-nats/alternative-singletons) - [Avoiding Partial Type Functions](type-nats/avoiding-partial-type-functions) - [Singletons and Existentials](type-nats/singletons-and-existentials) ## Notes on the Implementation - [Implementation of GHC.TypeLits](type-nats/implementation) - [The solver for type-level naturals](commentary/compiler/type-nat-solver) ## Source Code - [type-nats branch of GHC](http://darcs.haskell.org/cgi-bin/gitweb.cgi?p=ghc.git;a=shortlog;h=refs/heads/type-nats) - [type-nats branch of the base library](http://darcs.haskell.org/cgi-bin/gitweb.cgi?p=packages/base.git;a=shortlog;h=refs/heads/type-nats) - [type nats branch of template-haskell](http://darcs.haskell.org/cgi-bin/gitweb.cgi?p=packages/template-haskell.git;a=shortlog;h=refs/heads/type-nats) - Also, there is a type-nats branch for 'haddock'. ## XXX: Cleanup - [Natural Numbers: From Values to Types](type-nats/naturals) - More advanced example: [https://github.com/yav/memory-arrays/tree/master](https://github.com/yav/memory-arrays/tree/master) - [Examples](type-nats/examples) - [Axioms for type-level type operators](http://github.com/yav/tc-solver/blob/master/docs/axioms.md)
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
To link to a (new) page, simply type
[Link Title](page-slug)
. More examples are in the
documentation
.
Commit message
Cancel