hydrogen-version: Hydrogen Version Type
A sane replacement for Data.Version from the base package.
Hydrogen.Version is also exported by Hydrogen.Prelude where it comes with a few more instances (e.g. for Data.Serialize).
>>>Differences to Data.Version
SaneOrdinstance- Data.Version relies on
Ordfor lists, which will consider1.0to be less than1.0.0.Hydrogen.Versionconsiders these to be equal. SaneReadandShowinstances- With
Hydrogen.Versionyou can just doread "1.0.0" :: Version, whereas theReadandShowinstances for Data.Version do not give a concise representation:
show hydrogenVersion == "1.0.0" show dataVersion == "Version versionBranch = [1,0,0], versionTags = []"
Stricter API- In
Hydrogen.Versionyou can create aVersiononly viamkVersion, whereas in Data.Version the constructor is exported, thus you could so such nonsense asData.Version.Version [] [](which is not a proper version at all). No TagsHydrogen.Versiondoes not support tags. This is intentional, since there is no agreed upon definition forOrdin the presence of tags (consideralphavsbetavssnapshotvsgavs ...).
[Skip to Readme]
Downloads
- hydrogen-version-1.4.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 1.0, 1.0.1, 1.1, 1.2, 1.3, 1.4 (info) |
|---|---|
| Change log | CHANGELOG.md |
| Dependencies | base (>=4 && <5), ghc-prim [details] |
| License | MIT |
| Author | Julian Fleischer |
| Maintainer | julian@scravy.de |
| Category | Language |
| Home page | https://scravy.de/hydrogen-version/ |
| Source repo | head: git clone https://github.com/scravy/hydrogen-version |
| Uploaded | by JulianFleischer at 2015-03-26T06:26:52Z |
| Distributions | NixOS:1.4 |
| Reverse Dependencies | 2 direct, 6 indirect [details] |
| Downloads | 3585 total (12 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Last success reported on 2015-03-26 [all 1 reports] |