Skip to content

Instantly share code, notes, and snippets.

@Akii
Created November 16, 2018 09:56
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 Akii/3dee5cfdaa1f8a5fdf8e526c0fbe9822 to your computer and use it in GitHub Desktop.
Save Akii/3dee5cfdaa1f8a5fdf8e526c0fbe9822 to your computer and use it in GitHub Desktop.
type family All (c :: Type -> Constraint)
(ts :: [Type]) :: 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