fromEnum -package:Cabal

Convert to an Int. It is implementation-dependent what fromEnum returns when applied to a value that is too large to fit in an Int.
fromEnum, same as in the Enum class, except it returns an SInteger
fromEnum should return an integer that represents the position of the a value in the list of all enumeration items. In contrast to that, fromEnum must return the according bit pattern.
Convert to an Int.
Convert value to index
Generates a lambda expression which behaves like fromEnum (without requiring an Enum instance).