Skip to content

Instantly share code, notes, and snippets.

@tomaszperek
Created October 19, 2015 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomaszperek/136404741c38c27b9986 to your computer and use it in GitHub Desktop.
Save tomaszperek/136404741c38c27b9986 to your computer and use it in GitHub Desktop.
implicit evidence for HNil
implicit def IsHNilHListOfM[M[_]](implicit m: Monad[M]) = new IsHListOfM[M, HNil, HNil] {
override def hsequence(l: HNil): M[HNil] = m.pure(HNil)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment