membrain: Type-safe memory units
membrain provides newtype wrapper for type-safe work with memory units
newtype Memory (mem :: Nat) = Memory
{ unMemory :: Natural
}
This data type stores memory unit value phantom type parameter which is represented as type-level natural number. The ideas behind this package are described in the following blog post:
[Skip to Readme]
Downloads
- membrain-0.0.0.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.0.0.0, 0.0.0.1, 0.0.0.2 |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4.10.1.0 && <4.14) [details] |
| Tested with | ghc ==8.2.2, ghc ==8.4.4, ghc ==8.6.5, ghc ==8.8.2 |
| License | MPL-2.0 |
| Copyright | 2018-2020 Kowainik |
| Author | Veronika Romashkina, Dmitrii Kovanikov |
| Maintainer | Kowainik <xrom.xkov@gmail.com> |
| Uploaded | by vrom911 at 2020-02-10T21:44:32Z |
| Category | Memory, Safe |
| Home page | https://github.com/kowainik/membrain |
| Bug tracker | https://github.com/kowainik/membrain/issues |
| Source repo | head: git clone https://github.com/kowainik/membrain.git |
| Downloads | 1173 total (13 in the last 30 days) |
| Rating | 2.25 (votes: 2) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user Build status unknown [no reports yet] |