Skip to content

Instantly share code, notes, and snippets.

@mrdziuban
Created November 27, 2023 14:14
Show Gist options
  • Save mrdziuban/4921b51180ba20dd0c8789861f20705b to your computer and use it in GitHub Desktop.
Save mrdziuban/4921b51180ba20dd0c8789861f20705b to your computer and use it in GitHub Desktop.
semiauto-case-class-option2.scala
case class Foo()
case class Bar(foo: Foo)
// succeeds and automatically derives a `Decoder[Foo]`
io.circe.Decoder.derived[Bar]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment