summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/drvfail011.hs
blob: 33e35c4d83be3692f8752d5a0ab5d7c2a7ba7824 (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE StandaloneDeriving #-}

module ShouldFail where

data T a = T1 a | T2

-- This fails as we need an (Eq a) context
deriving instance Eq (T a)