I'd like to do the following with Shapeless 2.0.0:
def freeze[T]( o:T ) = {
val gen = Generic[T]
gen.to(o)
}
This gives me an error saying that T is not a case class or trait. Is there any way to do this? (I can do val gen = Generic[Foo]. That's fine, but what if I need to be able to build a Generic from something not known at compile-time?)