I browsed pretty much all tutorials and have "The Type Astronauts" on my desk but I still can't figure out how to write snippet which can extract map of names to types using shapeless from case class. To be precise I'm after following interface:
case class Sample(id: String, date: LocalDate)
def sampleExpectedMetadata = expectedMetadata[Sample] // = ("id" -> "String", "date" -> "LocalDate")
def expectedMetadata[T]: Map[String, String] = ???
Help from anyone who can assist with writing correct implementation would be greatly appreciated.