bin: Bin: binary natural numbers.
[ data, dependent-types, gpl, library, math, singletons ]
[ Propose Tags ]
[ Report a vulnerability ]
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.
Modules
[Index] [Quick Jump]
Downloads
- bin-0.1.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4.7 && <4.16), dec (>=0.0.3 && <0.1), deepseq (>=1.3.0.2 && <1.5), fin (>=0.2 && <0.3), hashable (>=1.2.7.0 && <1.4), nats (>=1.1.2 && <1.2), QuickCheck (>=2.14.2 && <2.15) [details] |
Tested with | ghc ==7.8.4 || ==7.10.3 || ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1 |
License | GPL-2.0-or-later |
Copyright | (c) 2019-2021 Oleg Grenrus |
Author | Oleg Grenrus <oleg.grenrus@iki.fi> |
Maintainer | Oleg.Grenrus <oleg.grenrus@iki.fi> |
Category | Data, Dependent Types, Singletons, Math |
Home page | https://github.com/phadej/vec |
Bug tracker | https://github.com/phadej/vec/issues |
Source repo | head: git clone https://github.com/phadej/vec.git(bin) |
Uploaded | by phadej at 2021-02-28T10:35:20Z |
Distributions | Arch:0.1.3, LTSHaskell:0.1.4, NixOS:0.1.3, Stackage:0.1.4 |
Reverse Dependencies | 5 direct, 8066 indirect [details] |
Downloads | 9040 total (11 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2021-02-28 [all 1 reports] |