summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/CustomTypeErrors04.hs
blob: 298668f213a7679a657a080e4f527655158440f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE DataKinds, TypeFamilies, UndecidableInstances #-}
{-# LANGUAGE UndecidableInstances #-}

-- The "bad case" in #11391
module CustomTypeErrors04 where

import Data.Kind
import GHC.TypeLits (TypeError, ErrorMessage(..))

type family Resolve (t :: Type -> Type) :: Type -> Type where
  Resolve _ = TypeError (Text "ERROR")

testNOTOK1 :: Resolve [] Int
testNOTOK1 = ()