fromEnum

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 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
create a Choice option out of an enumeration type. As long flags, the Show output is used. As short flags, the first character which does not conflict with a previous one is used.
Generates a lambda expression which behaves like fromEnum (without requiring an Enum instance).