Shapeless lenses in idea
问题 I try to use shapless lenses of version 2.0.0 for scala 2.10.3 I have the code similar to this one: import shapeless._ case class A(map: Map[String, String]) case class B(a: A) val mapLens = lens[B] >> 'a >> 'map the infered type in idea of mapLens is AnyRef with Lens[B, Nothing] {val gen: LabelledGeneric.Aux[Nothing, ::[record.FieldType[Witness.Lt[Symbol]#T, Nothing], Nothing]]} so if I want to change value of B instance mapLens.set(b)(b.a.map + ("foo" -> "bar")) I get a type mismatch error.