Created
February 20, 2019 13:54
-
-
Save gregnwosu/7f374c1b6077ccc268d76698a4b05520 to your computer and use it in GitHub Desktop.
Hlist derivation
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
sealed trait HList | |
final case class ::[H, T <: HList]( | |
head: H, | |
tail: T | |
) extends HList | |
sealed trait HNil extends HList | |
case object HNil extends HNil | |
object Go { | |
val hlist = 10 :: "hello" :: true :: HNil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get.
"error cannot resolve symbol ::"
when trying to construct a the hlist value in the Go object