-
-
Save maxaf/0cf0398d16c219099ae0 to your computer and use it in GitHub Desktop.
there's something strange in the neighborhood
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
*.swp | |
target/ |
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
scalaVersion := "2.11.7" | |
val circeVersion = "0.3.0" | |
libraryDependencies ++= Seq( | |
"io.circe" %% "circe-core" % circeVersion, | |
"io.circe" %% "circe-generic" % circeVersion, | |
"io.circe" %% "circe-parser" % circeVersion | |
) | |
initialCommands := """ | |
import hangin._ | |
import io.circe._ | |
import io.circe.generic.auto._ | |
""" |
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 hangin | |
import io.circe._ | |
import io.circe.generic.auto._ | |
object Main { | |
def main(argv: Array[String]) { | |
implicitly[Decoder[Bar]] | |
} | |
} |
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 hangin | |
sealed trait Foo { | |
def foo: String | |
} | |
case class FooInstance(foo: String) extends Foo | |
case class Bar(baz: Option[Baz]) | |
case class Baz(quux: Quux) | |
case class Quux(foo: Option[Foo]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment