... | ... | @@ -9,22 +9,27 @@ This page collects information on how to work with type-level literals, as imple |
|
|
Use Keyword = `TypeLits` to ensure that a ticket ends up on these lists.
|
|
|
|
|
|
|
|
|
|
|
|
Open Tickets:
|
|
|
|
|
|
<table><tr><th>[\#8422](https://gitlab.haskell.org//ghc/ghc/issues/8422)</th>
|
|
|
<table><tr><th><a href="https://gitlab.haskell.org//ghc/ghc/issues/8422">#8422</a></th>
|
|
|
<td>type nats solver is too weak!</td></tr></table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Closed Tickets:
|
|
|
|
|
|
<table><tr><th>[\#9036](https://gitlab.haskell.org//ghc/ghc/issues/9036)</th>
|
|
|
<td>ghc: panic! Binder's type (SingI Symbol \<a String\>) /= RHS type (String)</td></tr>
|
|
|
<tr><th>[\#10321](https://gitlab.haskell.org//ghc/ghc/issues/10321)</th>
|
|
|
<table><tr><th><a href="https://gitlab.haskell.org//ghc/ghc/issues/9036">#9036</a></th>
|
|
|
<td>ghc: panic! Binder's type (SingI Symbol <a String>) /= RHS type (String)</td></tr>
|
|
|
<tr><th><a href="https://gitlab.haskell.org//ghc/ghc/issues/10321">#10321</a></th>
|
|
|
<td>GHC.TypeLits.Nat types no longer fully simplified.</td></tr>
|
|
|
<tr><th>[\#10742](https://gitlab.haskell.org//ghc/ghc/issues/10742)</th>
|
|
|
<tr><th><a href="https://gitlab.haskell.org//ghc/ghc/issues/10742">#10742</a></th>
|
|
|
<td>GHC cannot deduce (irrelevant) reflexive type equality.</td></tr>
|
|
|
<tr><th>[\#10774](https://gitlab.haskell.org//ghc/ghc/issues/10774)</th>
|
|
|
<td>Use \`Natural\` rather than \`Integer\` in \`GHC.TypeLits\`</td></tr></table>
|
|
|
<tr><th><a href="https://gitlab.haskell.org//ghc/ghc/issues/10774">#10774</a></th>
|
|
|
<td>Use `Natural` rather than `Integer` in `GHC.TypeLits`</td></tr></table>
|
|
|
|
|
|
|
|
|
|
|
|
## User's Guide
|
|
|
|
... | ... | @@ -40,8 +45,13 @@ Closed Tickets: |
|
|
- [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)
|
|
|
|
... | ... | @@ -52,9 +62,14 @@ Closed Tickets: |
|
|
- [ 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) |
|
|
\ No newline at end of file |
|
|
- [ Axioms for type-level type operators](http://github.com/yav/tc-solver/blob/master/docs/axioms.md) |