Derivation of nested case classes
anakos opened this issue · 3 comments
anakos commented
Hi-
At present, this library does not seem to support full derivation of nested case classes: i.e. - given the following set of case classes
final case class Both(left: Wibble, right: That)
final case class Wibble(value: Int)
final case class Wobble(value: List[String])
then simply calling derived[Both]
without explicitly defining implicit values for both derived[Wibble]
and derived[Wobble]
, will yield compilation errors indicating that a ConfigParser needs to be in scope for each component type x of Both.
Would you welcome a PR supporting the ability to fully auto-derive nested case classes?
Thanks
Alex
mpilquist commented
Hi Alex,
Yeah that would great! Note that before merging the PR, we need a CLA signed. There's more info in [CONTRIBUTING](
https://github.com/ccadllc/cedi-config/blob/master/CONTRIBUTING).
Happy New Year
… On Jan 1, 2017, at 1:52 PM, Alex Nakos ***@***.***> wrote:
Hi-
At present, this library does not seem to support full derivation of nested case classes: i.e. - given the following set of case classes
final case class Both(left: Wibble, right: That)
final case class Wibble(value: Int)
final case class Wobble(value: List[String])
then simply calling derived[Both] without explicitly defining implicit values for both derived[Wibble] and derived[Wobble], will yield compilation errors indicating that a ConfigParser needs to be in scope for each component type x of Both.
Would you welcome a PR supporting the ability to fully auto-derive nested case classes?
Thanks
Alex
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
anakos commented
Hi Michael-
Great, thanks. I have sent you a PM requesting the CLA - please let me know if you haven't received.
Thanks and happy new year to you as well!
Alex