@hackage snumber0.3.0
Integer singletons with flexible representation
Categories
License
Apache-2.0
Maintainer
Andrew Pritchard <awpritchard@gmail.com>
Links
Versions
Installation
Dependencies (3)
- base >=4.12 && <4.17
- numeric-kinds >=0.1 && <0.3
- type-compare >=0.1.1 && <0.2 Show all…
Dependents (2)
@hackage/dependent-literals-plugin, @hackage/dependent-literals
This provides singletons-style witnesses for type-level integers, and some
limited arithmetic operations on them. Instead of working with (invisible,
implicitly-passed) KnownNat instances, you can work with (visible,
explicitly-mentioned) SNumber values, and can freely convert between the
two forms.
This primarily exists in support of dependent-literals-plugin.