Skip to content

Instantly share code, notes, and snippets.

@maxaf

maxaf/.gitignore Secret

Last active February 17, 2016 18:05
Show Gist options
  • Save maxaf/0cf0398d16c219099ae0 to your computer and use it in GitHub Desktop.
Save maxaf/0cf0398d16c219099ae0 to your computer and use it in GitHub Desktop.
there's something strange in the neighborhood
*.swp
target/
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._
"""
package hangin
import io.circe._
import io.circe.generic.auto._
object Main {
def main(argv: Array[String]) {
implicitly[Decoder[Bar]]
}
}
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