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, 0.1.1.2
Change logCHANGELOG
Dependenciesbase (<5)
LicenseBSD3
CopyrightCopyright (c) 2012--2015 wren gayle romano
Authorwren gayle romano
Maintainerwren@community.haskell.org
Stabilityprovisional
CategoryPrelude
Home pagehttp://code.haskell.org/~wren/
Source repositoryhead: darcs get http://community.haskell.org/~wren/prelude-safeenum
UploadedSat May 30 05:57:10 UTC 2015 by WrenThornton
DistributionsNixOS:0.1.1.2
Downloads617 total (38 in last 30 days)
StatusDocs available [build log]
Last success reported on 2015-06-03 [all 1 reports]

Modules

[Index]

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