Skip to content

v1.4.8 release

Compare
Choose a tag to compare
@lloydmeta lloydmeta released this 24 Jul 13:25
· 390 commits to master since this release

Adds Enum and ValueEnum companion-object finding-implicit-defs based on materialisation thanks to @rpiaggio in #52

This makes it possible to use the integrations (e.g Play-Json, Play, Circe, etc) even if you do not want to use inheritance when defining your enums. For example:

// Want to use our provided Play JSON serialisers without inheriting from PlayJsonEnum? No problem

import enumeration.EnumFormats
implicit def enumFormat[A <: EnumEntry : Enum]: Format[A] = EnumFormats.formats(implicitly[Enum[A]])