problem with implicit ambiguity between my method and conforms in Predef

后端 未结 2 370
情话喂你
情话喂你 2020-12-20 02:06

The following code, which is taken from Apocalisp\'s excellent blog series: Type level programming in scala , and modified for an implicit parsing scenario. However, this d

2条回答
  •  梦毁少年i
    2020-12-20 02:47

    You can just replace the function literal hParseNil to a normal function.

    implicit def hParseNil(a:HNil): HNil = HNil

    instead of

    implicit def hParseNil: HNil => HNil = _ => HNil

提交回复
热议问题