summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/indexed-types/should_fail/SimpleFail3a.hs
blob: 87f68ab124e9cfe5a3e954bdf5761db354394e52 (plain)
1
2
3
4
5
6
7
8
9
10
{-# LANGUAGE TypeFamilies #-}

module ShouldFail where

class C1 a where
  data S1 a :: *

-- must fail: wrong category of type instance
instance C1 Int where
  type S1 Int = Bool