Created
April 21, 2014 13:33
-
-
Save travisbrown/11142849 to your computer and use it in GitHub Desktop.
This file contains 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
package argonaut | |
import argonaut._, Argonaut._ | |
import scala.language.experimental.macros | |
import scalaz._, Scalaz._ | |
import shapeless._ | |
object AutoCodecJson { | |
implicit def deriveEncodeJson[T] = macro GenericMacros.deriveProductInstance[EncodeJson, T] | |
implicit def deriveDecodeJson[T] = macro GenericMacros.deriveProductInstance[DecodeJson, T] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment