1 2 3 4 5 6 7 8 9 10 11
{-# LANGUAGE TypeInType, GADTs #-} module PromotedClass where import Data.Proxy data X a where MkX :: Show a => a -> X a foo :: Proxy ('MkX 'True) foo = Proxy