summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T16575.hs
blob: 08cd440d5c449eda438e86e77eac3a3de13bc13e (plain)
1
2
3
4
5
6
7
8
9
module Ghost where

data X = A | B
    deriving (Show)

instance Eq X where
    A == A = True
    B == B = True
    _ == _ = False