Created
October 1, 2019 10:40
-
-
Save konn/d6e88cd21a41813544d89e5005f846de 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 PolyKinds, DataKinds, TypeFamilies, GADTs, DeriveDataTypeable, TypeApplications #-} | |
data Foo (a :: Maybe b) where { Any :: Foo a; Bang :: Foo (Just t) } | |
newtype F a (t :: Maybe s) (u :: Foo t) | |
= F { runF :: a} deriving (Show, Eq, Ord, Typeable) | |
main :: IO () | |
main = print $ typeRep $ Proxy @(F Int ('Just ()) Any) | |
-- ~> No instance for (Typeable (F2 Int ('Just ()))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment