concept these method in category haskell

appears as: These methods, se methods
Haskell in Depth

This is an excerpt from Manning's book Haskell in Depth.

These methods allows to go from the a type to Int and back with the fromEnum and toEnum functions, respectively. This defines an enumeration, that can be then used to get successors, predecessors, and lists of values of the a type.

To construct a monad stack able to handle these methods, we use the ExceptT monad transformer and the runExceptT runner: