Package Info

ghc-prelude-safeenum


A redefinition of the Prelude's Enum class in order to render it safe


Development/Libraries/Haskell

A redefinition of the Prelude's Enum class in order to render it safe. That is, the Haskell Language Report defines pred, succ, fromEnum, and toEnum to be partial functions when the type is Bounded, but this is unacceptable. We define a new type-class hierarchy for enumeration which is safe and also generalizes to cover types which can only be enumerated in one direction.


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/prelude-safeenum

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.1.1.2-bp150.2.4 info GA Release 2018-08-01 15
  • AArch64
  • ghc-prelude-safeenum
  • ghc-prelude-safeenum-devel
0.1.1.2-bp150.2.6 info GA Release 2018-07-30 15
  • ppc64le
  • x86-64
  • ghc-prelude-safeenum
  • ghc-prelude-safeenum-devel