summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/CustomTypeErrors01.hs
blob: c44da1d6b9e18e4731eb605072c9413033078c95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE DataKinds, UndecidableInstances #-}
module T1 where
import GHC.TypeLits


data MyType = MyType

instance
  TypeError (Text "Values of type 'MyType' cannot be compared for equality.")
    => Eq MyType where (==) = undefined

err x = x == MyType