summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/Simple1.hs
blob: d06cf52ecaee273d37822695572e5db751cb77bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# LANGUAGE TypeFamilies #-}

module ShouldCompile where

import Data.Kind (Type)

class C a where
  data Sd a :: Type
  data Sn a :: Type
  type St a :: Type

instance C Int where
  data    Sd Int = SdC Char
  newtype Sn Int = SnC Char
  type    St Int = Char