Created
August 13, 2014 18:07
-
-
Save djspiewak/f3553cd5eb5d79885c34 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
implicit class ListCodec[L <: HList](self: Codec[L]) { | |
def pmap[L2 <: HList](p: Poly)(implicit m: Mapper.Aux[p.type, L, L2], m2: Mapper.Aux[p.type, L2, L]): Codec[L2] = | |
self.xmap({ _ map p }, { _ map p }) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment