typelits-witnesses: Existential witnesses, singletons, and classes for operations on GHC TypeLits
Provides witnesses for KnownNat
and KnownSymbol
instances for various operations on GHC TypeLits - in
particular, the arithmetic operations defined in
GHC.TypeLits, and also for type-level lists of
KnownNat
and KnownSymbol
instances.
This is useful for situations where you have
, and you want to prove to GHC
KnownNat
n
, or KnownNat
(n + 3)
.KnownNat
(2*n + 4)
It's also useful for when you want to work with type
level lists of KnownNat
or KnownSymbol
instances and
singletons for traversing them, and be able to apply
analogies of natVal
and symbolVal
to lists with
analogies for SomeNat
and SomeSymbol
.
See README for more information.
[Skip to Readme]
Downloads
- typelits-witnesses-0.2.2.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.2.0, 0.1.3.0, 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.2.3.0, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.3.0.3, 0.4.0.0, 0.4.0.1, 0.4.1.0 (info) |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.7 && <4.12), base-compat, constraints, reflection (>=2), transformers [details] |
License | MIT |
Copyright | (c) Justin Le 2016 |
Author | Justin Le |
Maintainer | justin@jle.im |
Revised | Revision 1 made by Bodigrim at 2022-06-05T22:23:15Z |
Category | Data |
Home page | https://github.com/mstksg/typelits-witnesses |
Source repo | head: git clone git://github.com/mstksg/typelits-witnesses.git |
Uploaded | by jle at 2016-05-22T23:23:06Z |
Distributions | LTSHaskell:0.4.1.0, Stackage:0.4.1.0 |
Reverse Dependencies | 7 direct, 34 indirect [details] |
Downloads | 10167 total (5 in the last 30 days) |
Rating | 2.25 (votes: 2) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2016-05-22 [all 1 reports] |