Skip to content

Instantly share code, notes, and snippets.

@skvithalani
Last active February 18, 2020 10:43
Show Gist options
  • Save skvithalani/1ce774e92833ca0a321f3e6fc6b13c0b to your computer and use it in GitHub Desktop.
Save skvithalani/1ce774e92833ca0a321f3e6fc6b13c0b to your computer and use it in GitHub Desktop.
import io.bullet.borer.Codec
import io.bullet.borer.derivation.MapBasedCodecs.{deriveAllCodecs, deriveCodec}
trait Codecs {
implicit lazy val animalCodec: Codec[Animal] = deriveAllCodecs
implicit lazy val zooCodec: Codec[Zoo] = deriveCodec
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment