toEnum package:deriving-compat

Generates a lambda expression which behaves like toEnum (without requiring an Enum instance).