Package0.1.4DataDependent TypesSingletonsMath
bin
Bin: binary natural numbers.
- Version0.1.4
- CategoryData, Dependent Types, Singletons, Math
- LicenceGPL-2.0-or-later
- AuthorOleg Grenrus <oleg.grenrus@iki.fi>
- MaintainerOleg.Grenrus <oleg.grenrus@iki.fi>
- Homepagegithub.com/phadej/vec
- Pinned byhackage bin 0.1.4
- Sourcehackage.haskell.org/package/bin-0.1.4
Modules
7 modules- Data.Bin26Binary natural numbers, Bin. This module is designed to be imported qualified.
- Data.Bin.Pos11
- Data.BinP17Positive binary natural numbers, BinP. This module is designed to be imported qualified.
- Data.BinP.PosP15
- Data.Type.Bin38Binary natural numbers. DataKinds stuff.
- Data.Type.BinP26Positive binary natural numbers. DataKinds stuff.
- Data.Wrd23Fixed-Wrdth (unsigned) integers.
Description
This package provides binary natural numbers (Data.Bin); also utilities to work on the type level with DataKinds (Data.Type.Bin).
data Bin = BZ -- ^ zero | BP BinP -- ^ non-zero data BinP = BE -- ^ one | B0 BinP -- ^ double | B1 BinP -- ^ double plus 1
There are ordinals in Data.Bin.Pos module, as well as fixed width integers in Data.Wrd.
Another implementation is at https://hackage.haskell.org/package/nat, this differs in naming, and provides promoted variant.
Depends on
8 packages- QuickCheck-2.15.0.1in this set
- base-4.20.2.0with GHC
- boring-0.2.2in this set
- dec-0.0.6in this set
- deepseq-1.5.0.0with GHC
- fin-0.3.2in this set
- hashable-1.4.7.0in this set
- some-1.0.6in this set
Used by in this set · 0
Nothing in this set depends on it.