The generic-enum package

[Tags:library, mit, test]

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.


Dependencies array (==0.5.*), base (==4.9.*), bytestring (==0.10.*) [details]
License MIT
Copyright Clinton Mead (2017)
Author Clinton Mead
Bug tracker
Source repository head: git clone
Uploaded Fri Mar 10 02:14:27 UTC 2017 by clinton
Distributions NixOS:
Downloads 28 total (5 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees