summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T19187.hs
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@richarde.dev>2021-01-14 21:36:43 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-01-27 17:41:44 -0500
commit189efc39e0cf111bcb6d2ad5d474fcd01a706eb8 (patch)
tree420e4ecfc6ddb644c3321a36b95f444933363943 /testsuite/tests/typecheck/should_fail/T19187.hs
parent2f689a8bdf0bb6342794e0d8243e86e6cc4f4962 (diff)
downloadhaskell-189efc39e0cf111bcb6d2ad5d474fcd01a706eb8.tar.gz
Remove some redundant validity checks.
This commit also consolidates documentation in the user manual around UndecidableSuperClasses, UndecidableInstances, and FlexibleContexts. Close #19186. Close #19187. Test case: typecheck/should_compile/T19186, typecheck/should_fail/T19187{,a}
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T19187.hs')
-rw-r--r--testsuite/tests/typecheck/should_fail/T19187.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T19187.hs b/testsuite/tests/typecheck/should_fail/T19187.hs
new file mode 100644
index 0000000000..52f0e11c69
--- /dev/null
+++ b/testsuite/tests/typecheck/should_fail/T19187.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE UndecidableInstances #-}
+
+module T19187 where
+
+data T
+
+instance Eq Int => Eq T