Skip to content

Instantly share code, notes, and snippets.

@tomaszperek
Created October 19, 2015 21:36
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/adc5dfbcc41026fe3818 to your computer and use it in GitHub Desktop.
Save tomaszperek/adc5dfbcc41026fe3818 to your computer and use it in GitHub Desktop.
Evidence trait to prove that HList consists of Monads
trait IsHListOfM[M[_], In <: HList, Out <: HList] extends ToMonadOps{
def hsequence(l: In): M[Out]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment