I am very new to Scala and am looking at a formless package to provide HList-like operations for Scala tuples.
I run Scala 2.10.5, and I have successfully installed the package (version 2.2.0-RC6), as well as all the dependencies.
When I try to run the following example (from formless function overview ) in REPL,
scala> import shapeless._; import syntax.std.tuple._
scala > (23, "foo", true).head
The following error message appears:
<console>:17: error: could not find implicit value for parameter c: shapeless.ops.tuple.IsComposite[(Int, String, Boolean)]
(23, "foo", true).head
I bet it’s a stupid mistake on my part, and I delved into numerous forums about this.
What am I missing?
Thanks in advance for your help.
source
share