I would like to learn about polytypic concepts in Scala, I came across shapeless library what would be the best starting point for learning and applying shapeless.
-
How much scala do you know? It seems to me that shapeless is doing a lot of complicated things to work around some limitations of the scala language.– huynhjlJun 9, 2013 at 13:31
-
I am not a expert but I could write programs that uses higher order functions,currying and going through a bit about type level programming,– prasseeJun 9, 2013 at 13:39
-
I am interested in an answer to the same question. I followed the examples and looked at the unit tests to use a very small amount of shapeless. I am curious what path others have been following.– huynhjlJun 9, 2013 at 14:40
-
11I just wrote up a related blog post with a Shapeless example here.– Travis BrownJun 9, 2013 at 19:00
-
1feature overview is very cool– iuriisusukDec 4, 2015 at 13:04
1 Answer
I don't know if thats an answer you wan't, but the best push for me to start learning/using shapeless was a couple of Miles videos from different Scala conferences :
From flatmap
ScalaNE 2012
ScalaNE 2013
And as a big practise - i'm writing a lot using Spray toolkit, it uses shapeless inside. So try to write some web server or some client.
Also a github's wiki contains good intro for the library.
Great idea - try to rewrite some case classes into shapeless records with hlists, it's pretty cool to use it with some JSON converter =). Much of it is some generic kind of stuff wich is not very useful in real project, but if you want better understanding of type level programming, it's really great stuff
-
thanks for the reply ... I would start with this hope this would raise some questions which are more relevant !!!!!– prasseeJun 10, 2013 at 3:51