The prelude-safeenum package

[Tags: bsd3, library]

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.


Properties

Versions0.1.0, 0.1.0.1, 0.1.1, 0.1.1.1
Dependenciesbase (<4) or
base (==4.*)
LicenseBSD3
CopyrightCopyright (c) 2012--2013 wren ng thornton
Authorwren ng thornton
Maintainerwren@community.haskell.org
Stabilityprovisional
CategoryPrelude
Home pagehttp://code.haskell.org/~wren/
Source repositoryhead: darcs get http://community.haskell.org/~wren/prelude-safeenum
Upload dateWed May 29 23:16:05 UTC 2013
Uploaded byWrenThornton
Downloads146 total (39 in last 30 days)

Modules

Flags

NameDescriptionDefault
base4base-4.0 emits "Prelude deprecated" messages in order to get people to be explicit about which version of base they use.Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees