generic-enum: An Enum class that fixes some deficiences with Prelude's Enum
The default Enum class has a couple of issues that limit it's flexibility namely:
1) The "Enum" type must be always "Int", even when this loses information, such as in the case of "Integer" (due to overflow) and "Rational" (in the case of fractions).
2) "enumFromTo" etc like functions can only produce lists, instead of directly producing other list like data types. Aside from effeciency, using a list as an intermediary can lose information also.
The Enum class this package defines should be largely a drop in replacement for Prelude's Enum, with some minor exceptions detailed in the documentation.
Downloads
- generic-enum-0.1.1.0.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] | 0.1.0.0, 0.1.1.0 |
---|---|
Dependencies | array (>=0.5 && <0.6), base (>=4.9 && <4.10), bytestring (>=0.10 && <0.11) [details] |
Tested with | ghc ==8.0.2 |
License | MIT |
Copyright | Clinton Mead (2017) |
Author | Clinton Mead |
Maintainer | clintonmead@gmail.com |
Bug tracker | https://github.com/clintonmead/generic-enum/issues |
Source repo | head: git clone https://github.com/clintonmead/generic-enum.git |
Uploaded | by clinton at 2017-03-10T02:14:27Z |
Distributions | |
Reverse Dependencies | 1 direct, 1 indirect [details] |
Downloads | 1635 total (7 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |