HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulederiving-compat-0.6.8Haskell2010

Data.Enum.Deriving

Exports functions to mechanically derive Enum instances.

Contents
  1. Enum
  2. deriveEnum limitations
Synopsis

deriveEnum limitations

Be aware of the following potential gotchas:

  • Type variables of kind * are assumed to have Enum constraints. If this is not desirable, use makeToEnum or one of its cousins.

  • Generated Enum instances for poly-kinded data family instances are likely to require the use of the TypeInType extension on GHC 8.0, 8.2, or 8.4.