diff options
Diffstat (limited to 'testsuite/tests/ghci/scripts/T16575.hs')
-rw-r--r-- | testsuite/tests/ghci/scripts/T16575.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T16575.hs b/testsuite/tests/ghci/scripts/T16575.hs new file mode 100644 index 0000000000..08cd440d5c --- /dev/null +++ b/testsuite/tests/ghci/scripts/T16575.hs @@ -0,0 +1,9 @@ +module Ghost where + +data X = A | B + deriving (Show) + +instance Eq X where + A == A = True + B == B = True + _ == _ = False |