Skip to content

Commit

Permalink
a minor correction to inference.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xeno-by committed Jan 20, 2013
1 parent 37cf917 commit f9fc7a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion overviews/macros/inference.md
Expand Up @@ -40,7 +40,8 @@ defined isomorphisms, declare implicit parameters of type `Iso`, which then get
tp : (Int, String, Boolean)
tp == (23, "foo", true)

As we can see, the isomorphism between a case class and a tuple is trivial. The compiler already generates the necessary methods,
As we can see, the isomorphism between a case class and a tuple is trivial (actually, shapeless uses Iso's to convert between case
classes and HLists, but for simplicity let's use tuples). The compiler already generates the necessary methods,
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
you have manually define an implicit `Iso` instance.

Expand Down

0 comments on commit f9fc7a8

Please sign in to comment.