Error text contains solution:
import shapeless.ops.hlist.Mapper
def mapOverHlist[L <: HList](list: L)(implicit m: Mapper[id.type, L]): m.Out =
list.map(id)
Method map
accepts an implicit parameter and you should provide such parameter (by adding the same parameter to declaration of your method).