flatMap with Shapeless yield FlatMapper not found
问题 I'm trying to define some structure like this case class Transformer[From, To]( name: String, get: PaymentEvent => From, to: From => To I want to filter elements with names that are part of a Set class filterName(names: Set[String]) extends lowPriority { implicit def get[From, To] = at[Transformer[From, To]]{ trans => if (names.contains(trans.name)) trans :: HNil else HNil } } This is the concrete value: type HTransformer = Transformer[String, String] :: Transformer[Long, Long] :: HNil When I