A fork of the robust enum 0.4.4 package by Ben Finney