title: Scala type parameterization, Shapeless - could not find implicit value for parameter Generic
body: <p>I'm unable to implement shapeless.Generic with scala type parameterized functions. In the following piece of code, I am getting error "could not find implicit value for parameter gen: shapeless.Generic[T]". </p>
  
  <pre><code>  def foo[T](instance: T) = {
      val gen = shapeless.Generic[T]  //getting error in this line!!!
      val values = gen.to(instance)
      println(values)
    }
    case class Bar(x:String, y:String)
    var bar = Bar("a","b")
    foo(bar) 
  </code></pre>
  
  <p>Is there anything I am missing? </p>