enum-fp

Functional enum type for javascript with simple pattern matching