This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object TestExplicitRecordType { | |
import shapeless._, record._, syntax.singleton._ | |
object testF extends Poly1 { | |
implicit def atFieldType[F, V](implicit wk: shapeless.Witness.Aux[F]) = at[FieldType[F, V]] { | |
f => wk.value.toString | |
} | |
} | |
// Is there more straighforward way to give an explicit type for a record? |