summaryrefslogtreecommitdiff
path: root/testsuite/tests/dependent/should_fail/PromotedClass.hs
blob: 6c3f415e5d4970af464ffac8b7f72804ee952238 (plain)
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