-
-
Save Rastrian/24ebabcbf26bb283ae161b1d6456e4a1 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
data (++) :: [a] -> [a] -> Exp [a] | |
type instance Eval ((++) '[] bs) = bs | |
type instance Eval ((++) (a ': as') bs) = a ': Eval ((++) as' bs) | |
data Mappend :: a -> a -> Exp a | |
type instance Eval (Mappend '() '()) = '() | |
type instance Eval (Mappend (a :: Constraint) (b :: Constraint)) = (a, b) | |
type instance Eval (Mappend (a :: [k]) (b :: [k])) = Eval (a ++ b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment