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