Learning enumeratum
·
Part 3
Learning enumeratum, part 3: enums in and out of JSON with circe
CirceEnum and IntCirceEnum give every enum a JSON codec that follows entryName or value. Decoding is strict by default, and here's how the failures look and how to relax them on purpose.
16 Oct 2026
·
5 min read
·59 views
Learning enumeratum
·
Part 2
Learning enumeratum, part 2: custom names, fields and value enums
Overriding entryName for legacy strings, naming mixins, enum entries that carry data, and IntEnum/StringEnum, where duplicate codes fail to compile.
15 Oct 2026
·
5 min read
·63 views
Learning enumeratum
·
Part 1
Learning enumeratum, part 1: why not just use scala.Enumeration?
Three ways to model an enum in Scala 2.13 (Enumeration, sealed traits, and enumeratum), with runnable code, and why my team settled on enumeratum.
15 Oct 2026
·
4 min read
·79 views