Skip to content

Instantly share code, notes, and snippets.

@serras
Created October 1, 2015 11:23
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 serras/6f1af3d7459ff6191a2f to your computer and use it in GitHub Desktop.
Save serras/6f1af3d7459ff6191a2f to your computer and use it in GitHub Desktop.
type family All (c :: k -> Constraint) (t :: [k]) :: Constraint where
All c '[] = ()
All c (x ': xs) = (c x, All c xs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment