8000 a minor correction to inference.md · rssh/scala.github.com@f9fc7a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit f9fc7a8

Browse files
committed
a minor correction to inference.md
1 parent 37cf917 commit f9fc7a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

overviews/macros/inference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ defined isomorphisms, declare implicit parameters of type `Iso`, which then get
4040
tp : (Int, String, Boolean)
4141
tp == (23, "foo", true)
4242

43-
As we can see, the isomorphism between a case class and a tuple is trivial. The compiler already generates the necessary methods,
43+
As we can see, the isomorphism between a case class and a tuple is trivial (actually, shapeless uses Iso's to convert between case
44+
classes and HLists, but for simplicity let's use tuples). The compiler already generates the necessary methods,
4445
and we just have to make use of them. Unfortunately in Scala 2.10.0 it's impossible to simplify this even further - for every case class
4546
you have manually define an implicit `Iso` instance.
4647

0 commit comments

Comments
 (0)
0