diff options
author | Daniel Winograd-Cort <dwc@cs.yale.edu> | 2011-08-25 17:30:41 +0100 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2011-09-21 01:14:32 +0100 |
commit | 0ce6b6c11c3df08edcc5a89190f56e5a4f2922e6 (patch) | |
tree | 918afcadddc6fba31a377cafa3af9f018e9126d0 /testsuite/tests/ghci/scripts/ghci044.stderr | |
parent | b4d342606fd0a1fc2300291036c52ca20de7c1ab (diff) | |
download | haskell-0ce6b6c11c3df08edcc5a89190f56e5a4f2922e6.tar.gz |
Test cases for GHCi data, class, etc.
Test cases for GHCi data, type, newtype, class, instance,
deriving, etc declarations.
Diffstat (limited to 'testsuite/tests/ghci/scripts/ghci044.stderr')
-rw-r--r-- | testsuite/tests/ghci/scripts/ghci044.stderr | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/ghci044.stderr b/testsuite/tests/ghci/scripts/ghci044.stderr new file mode 100644 index 0000000000..dfcbd10860 --- /dev/null +++ b/testsuite/tests/ghci/scripts/ghci044.stderr @@ -0,0 +1,13 @@ + +<interactive>:5:10: + Illegal instance declaration for `C [Int]' + (All instance types must be of the form (T a1 ... an) + where a1 ... an are *distinct type variables*, + and each type variable appears at most once in the instance head. + Use -XFlexibleInstances if you want to disable this.) + In the instance declaration for `C [Int]' + +<interactive>:8:10: + Overlapping instance declarations: + instance C a => C [a] -- Defined at <interactive>:8:10 + instance C [Int] -- Defined at <interactive>:7:10 |