Adding container types, such as Seq, List, Option, and Map, to a shapeless general transform

To fill out a series of questions that I asked about converting a case class to / from Map[String, Any] to 1 and 2 , I would like to know how to extend the above answers to work with container types, in particular:

  • Option
  • Seq
  • Set
  • Map
  • Tuple s

In both cases, the class case from and to Map[String, Any]

+5
scala shapeless
Jul 31 '15 at 0:42
source share

No one has answered this question yet.

See similar questions:

17
Converting a Map [String, Any] to a Case Class Using Shapeless
fifteen
Convert nested case classes to nested Maps using Shapeless

or similar:

339
Where does Scala look for implicits?
129
Are HLists nothing more than a tricky way to write tuples?
17
Converting a Map [String, Any] to a Case Class Using Shapeless
8
Map Shapeless hlist type F [T1] :: ... :: F [Tn] :: HNil to type T1 :: ... :: Tn :: HNil (type level sequencing)
3
Unable to convert Scrooge classes to maps using Shapeless
3
Implement path-dependent map types in Shapeless
2
How to create a list in Scala from an existing list with type conversion?
one
How to extract shortcut from Shapeless entry for generic type
0
Scala Best Practice for Matching Variant Collection of a Specific Type
0
Match type list to formless



All Articles