derive-2.4.1: A program and library to derive instances for data types
Data.Derive.Enum
makeEnum :: DerivationSource