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.
| version | uploaded | uploader | changes | |
|---|---|---|---|---|
| 0.1.1.0 | 2017-03-10 02:14 UTC | clinton | +3/−3 lines, 2 files | |
| 0.1.0.0 | 2017-03-09 10:29 UTC | clinton | +642/−0 lines, 5 filesdep +arraydep +basedep +bytestringsetup-changed |
Dependencies of generic-enum-0.1.1.0
array >=0.5 && <0.6 0.5.7.0 → 0.5.8.0
| 2024-09-08 07:13 UTC | 0.5.8.0 | +204/−8 lines, 6 filesdep ~basePVP ok |
| 2024-04-12 14:38 UTC | 0.5.7.0 | +34/−17 lines, 9 filesdep ~basePVP: major bump suggested |
| 2023-07-10 15:24 UTC | 0.5.6.0 | +159/−39 lines, 8 filesdep ~basenew-uploaderPVP ok |
| 2023-02-13 16:01 UTC | 0.5.5.0 | +8/−4 lines, 3 filesdep ~basenew-uploaderPVP ok |
| 2019-09-01 06:48 UTC | 0.5.4.0 | +33/−8 lines, 5 filesdep ~basesetup-changedPVP: major bump suggested |
showing 5 of 18 versions
base >=4.9 && <4.10 4.9.1.0 → 4.22.1.0 newer than bounds
| 2026-12-01 12:38 UTC | 4.22.1.0 newer than bounds | +388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested |
| 2025-12-19 11:52 UTC | 4.22.0.0 newer than bounds | +886/−215 lines, 28 filesdep ~ghc-internalPVP ok |
| 2026-03-27 12:26 UTC | 4.21.2.0 newer than bounds | +10/−3 lines, 4 filesdep ~ghc-internalPVP ok |
| 2025-12-27 10:31 UTC | 4.21.1.0 newer than bounds | +17/−5 lines, 4 filesdep ~ghc-internalPVP ok |
| 2024-12-16 09:24 UTC | 4.21.0.0 newer than bounds | +1170/−396 lines, 39 filesdep ~ghc-internalPVP ok |
showing 5 of 61 versions
bytestring >=0.10 && <0.11 0.10.12.1 → 0.12.2.0 newer than bounds
| 2024-12-06 21:41 UTC | 0.12.2.0 newer than bounds | +538/−437 lines, 44 filesdep ~QuickCheckdep ~basePVP ok |
| 2024-02-16 03:27 UTC | 0.12.1.0 newer than bounds | +3398/−1642 lines, 37 filesdep +sybdep ~basePVP: major bump suggested |
| 2023-08-16 01:53 UTC | 0.12.0.2 newer than bounds | +16/−2 lines, 3 files |
| 2023-08-05 00:03 UTC | 0.12.0.1 newer than bounds | +47/−9 lines, 3 files |
| 2023-07-07 01:45 UTC | 0.12.0.0 newer than bounds | +1459/−520 lines, 21 filesdep +data-array-bytePVP ok |
showing 5 of 49 versions
hspec >=2.4 && <2.5 2.4.8 → 2.11.18 newer than bounds
| 2026-10-01 14:14 UTC | 2.11.18 newer than bounds | +7/−4 lines, 3 filesdep ~hspec-coredep ~hspec-discoverPVP ok |
| 2026-03-04 18:01 UTC | 2.11.17 newer than bounds | +11/−19 lines, 6 filesdep ~hspec-coredep ~hspec-discoverPVP ok |
| 2025-12-12 14:07 UTC | 2.11.16 newer than bounds | +25/−7 lines, 5 filesdep ~hspec-coredep ~hspec-discoverPVP: major bump suggested |
| 2025-12-08 03:04 UTC | 2.11.15 newer than bounds | +8/−5 lines, 3 filesdep ~hspec-coredep ~hspec-discoverPVP ok |
| 2025-09-30 14:32 UTC | 2.11.14 newer than bounds | +9/−7 lines, 4 filesdep ~hspec-coredep ~hspec-discoverPVP: major bump suggested |
showing 5 of 171 versions
Reverse dependencies
1 packages depend on generic-enum