Scala typeclass explained: Implement the Haskell String.read function
smartjava.org