Skip to content

Instantly share code, notes, and snippets.

@gregnwosu
Created February 20, 2019 13:54
Show Gist options
  • Save gregnwosu/7f374c1b6077ccc268d76698a4b05520 to your computer and use it in GitHub Desktop.
Save gregnwosu/7f374c1b6077ccc268d76698a4b05520 to your computer and use it in GitHub Desktop.
Hlist derivation
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
}
@gregnwosu
Copy link
Author

I get.
"error cannot resolve symbol ::"
when trying to construct a the hlist value in the Go object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment