summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T6015a.hs
blob: cb6104f8d823b55b25809f0a51f38e6aa61080dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
{-# LANGUAGE PolyKinds, KindSignatures, FunctionalDependencies,  FlexibleInstances,
              UndecidableInstances, TypeOperators, DataKinds,  FlexibleContexts #-}

module T6015a where

import Prelude hiding ((++))

data T a = T

class ((a :: [k]) ++ (b :: [k])) (c :: [k]) | a b -> c  
instance ('[] ++ b) b  
instance (a ++ b) c => ((x ': a) ++ b) (x ': c)

test = T :: ('[True] ++ '[]) l => T l