https://github.com/mstksg/typelits-witnesses
Existential witnesses, singletons, and classes for operations on GHC TypeLits
https://github.com/mstksg/typelits-witnesses
Last synced: 3 months ago
JSON representation
Existential witnesses, singletons, and classes for operations on GHC TypeLits
- Host: GitHub
- URL: https://github.com/mstksg/typelits-witnesses
- Owner: mstksg
- License: mit
- Created: 2015-12-01T21:43:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-11-29T21:32:39.000Z (over 1 year ago)
- Last Synced: 2024-05-02T00:13:02.813Z (about 1 year ago)
- Language: Haskell
- Homepage: http://hackage.haskell.org/package/typelits-witnesses
- Size: 313 KB
- Stars: 10
- Watchers: 4
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
typelits-witnesses
==================[](https://hackage.haskell.org/package/typelits-witnesses)
[](http://stackage.org/lts/package/typelits-witnesses)
[](http://stackage.org/nightly/package/typelits-witnesses)
[](https://travis-ci.org/mstksg/typelits-witnesses)This library contains:
* A small specialized subset of the *[singletons][]* library as it pertains to
`Nat` and `Symbol`, for when you need some simple functionality without
wanting to invoke the entire *singletons* library.
* Operations for manipulating these singletons and `KnownNat` and
`KnownSymbol` instances, such as addition and multiplication of
singletons/`KnownNat` instances.
* Operations for the comparison of `Nat`s in a way that works well with
*GHC.TypeLits*'s different comparison systems. This is helpful for
bridging together libraries that use different systems; this functionality
is not yet provided by *singletons*.[singletons]: https://hackage.haskell.org/package/singletons