Created
March 19, 2019 22:07
-
-
Save dmwit/47a3435d1c16a532e24c9f156da0dae6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE QuantifiedConstraints #-} | |
{-# LANGUAGE TypeFamilies #-} | |
import GHC.Exts | |
class (forall a. A t a => A t [a]) => B t where type A t a :: Constraint | |
instance B t => B [t] where type A [t] a = A t a |
Author
dmwit
commented
Mar 19, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment