Created
May 4, 2019 12:16
-
-
Save adamw/287ef0e7c394faf777ce9840b60f485d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tapir.Codec.PlainCodec | |
implicit val yearCodec: PlainCodec[Year] = | |
implicitly[PlainCodec[Int]].map(new Year(_))(_.year) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment