Tuple to HList using productElements

后端 未结 1 579
日久生厌
日久生厌 2021-01-14 15:10

I am using Shapeless 2.2.5. I try to convert a tuple to HList using the code below.

 import shapeless._
import syntax.std.product._

(23, \"foo\", 2.0, true         


        
相关标签:
1条回答
  • 2021-01-14 15:44

    It should be import syntax.std.tuple._ rather than import syntax.std.product._.

    0 讨论(0)
提交回复
热议问题