Common forms of Type class pattern in Scala | Hacker News Reader