47degrees / case-classy

configuration with less hassle
http://47deg.github.io/case-classy/
Apache License 2.0
68 stars 8 forks source link

Automatically deriving decoders for enums #65

Open BenFradet opened 7 years ago

BenFradet commented 7 years ago

I have the following hierarchy:

sealed trait SomeType
case object Type1 extends SomeType
case object Type2 extends SomeType

case class MyConfig(t: SomeType)

and the following config:

t: type1

I know it's possible with a manual decoder but I wonder if wouldn't be possible with automatically derived decoders?