You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and trying to map over an HList leads to following error:
valhlist=1::"foo"::1.5::HNil
hlist map testfun
[error] /Users/dario.rexin/projects/shapeless-foo/src/main/scala/Main.scala:15: could not find implicit value for parameter mapper: shapeless.ops.hlist.Mapper[main.scala.Test.testfun.type,shapeless.::[Int,shapeless.::[String,shapeless.::[Double,shapeless.HNil]]]]
[error] hlist map testfun
The text was updated successfully, but these errors were encountered:
Sorry it's taken me so long to get back to you on this. What you're seeing is the result of quite ordinary implicit ambiguity due to the overlap of the result types between your default case and the other two cases. The fix for this is the same as for any other case of implicit ambiguity of this sort: move the offending implicit definition to a low priority super-trait,
Hi,
writing a poly function like this:
and trying to map over an HList leads to following error:
The text was updated successfully, but these errors were encountered: