Cabal-Version: 2.2
-- Cabal >=2.2 is required for:
-- <https://cabal.readthedocs.io/en/latest/cabal-package.html#common-stanzas>
-- Since 2.1, the Cabal-Version must be the absolutely first thing
-- in the file, even before comments. Also, no longer uses ">=".
-- <https://github.com/haskell/cabal/issues/4899>
----------------------------------------------------------------
-- wren gayle romano <wren@cpan.org> ~ 2026-02-26
----------------------------------------------------------------
Name: prelude-safeenum
Version: 0.1.1.8
Build-Type: Simple
Stability: provisional
Homepage: https://wrengr.org/software/hackage.html
Bug-Reports: https://github.com/wrengr/prelude-safeenum/issues
Author: wren gayle romano
Maintainer: wren@cpan.org
Copyright: 2012–2025 wren romano
-- Cabal-2.2 requires us to say "BSD-3-Clause" not "BSD3"
License: BSD-3-Clause
License-File: LICENSE
Category: Prelude
Synopsis:
A redefinition of the Prelude's Enum class in order to render it safe.
Description:
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.
Extra-source-files:
AUTHORS, README.md, CHANGELOG
-- This should work as far back as GHC 6.12.1, but we don't verify that by CI.
-- <https://github.com/wrengr/prelude-safeenum/actions?query=workflow%3Aci>
Tested-With:
GHC ==8.0.2,
GHC ==8.2.2,
GHC ==8.4.4,
GHC ==8.6.5,
GHC ==8.8.4,
GHC ==8.10.3,
GHC ==9.0.1,
GHC ==9.2.4,
GHC ==9.4.8,
GHC ==9.6.5,
GHC ==9.8.2,
GHC ==9.10.1,
GHC ==9.12.1,
GHC ==9.14.1
----------------------------------------------------------------
Source-Repository head
Type: git
Location: https://github.com/wrengr/prelude-safeenum.git
----------------------------------------------------------------
Library
Default-Language: Haskell2010
Hs-Source-Dirs: src
Exposed-Modules: Prelude.SafeEnum
, Data.Number.CalkinWilf
Build-Depends: base >= 4 && < 5
----------------------------------------------------------------
----------------------------------------------------------- fin.