Created
January 2, 2015 00:47
-
-
Save alexarchambault/1fd71d804f0661ad51c1 to your computer and use it in GitHub Desktop.
LabelledGeneric, scala 2.10
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
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 | |
) |
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
case class Foo0() | |
case class Foo1(i: Int) | |
object Lgen { | |
import shapeless._ | |
LabelledGeneric[Foo0] | |
LabelledGeneric[Foo1] | |
} |
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
> 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