Skip to content

Instantly share code, notes, and snippets.

@alexarchambault
Created January 2, 2015 00:47
Show Gist options
  • Save alexarchambault/1fd71d804f0661ad51c1 to your computer and use it in GitHub Desktop.
Save alexarchambault/1fd71d804f0661ad51c1 to your computer and use it in GitHub Desktop.
LabelledGeneric, scala 2.10
name := "lgen-2.10.x"
scalaVersion := "2.10.4"
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
libraryDependencies ++= Seq(
"com.chuusai" %% "shapeless" % "2.1.0-SNAPSHOT" cross CrossVersion.full
)
case class Foo0()
case class Foo1(i: Int)
object Lgen {
import shapeless._
LabelledGeneric[Foo0]
LabelledGeneric[Foo1]
}
> compile
[info] Compiling 1 Scala source to /home/alexandre/projects/lgen-2.10.x/target/scala-2.10/classes...
[error] /home/alexandre/projects/lgen-2.10.x/Lgen.scala:8: could not find implicit value for parameter lgen: shapeless.LabelledGeneric[Foo0]
[error] LabelledGeneric[Foo0]
[error] ^
[error] /home/alexandre/projects/lgen-2.10.x/Lgen.scala:9: could not find implicit value for parameter lgen: shapeless.LabelledGeneric[Foo1]
[error] LabelledGeneric[Foo1]
[error] ^
[error] two errors found
[error] (compile:compile) Compilation failed
[error] Total time: 2 s, completed 2 janv. 2015 01:43:08
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment