Skip to content

Instantly share code, notes, and snippets.

@Akii
Created November 16, 2018 09:56
Show Gist options
  • Select an option

  • Save Akii/3dee5cfdaa1f8a5fdf8e526c0fbe9822 to your computer and use it in GitHub Desktop.

Select an option

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