{-# LANGUAGE TypeFamilies #-} module ShouldCompile where class C a where data Sd a :: * data Sn a :: * type St a :: * instance C Int where data Sd Int = SdC Char newtype Sn Int = SnC Char type St Int = Char