[commit: ghc] master: Update test results with new orphan instance warning (707bde5)
git at git.haskell.org
git at git.haskell.org
Mon Jun 9 19:04:39 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/707bde533dcb16bf8f5a30179d098b343e54fe7b/ghc
>---------------------------------------------------------------
commit 707bde533dcb16bf8f5a30179d098b343e54fe7b
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Mon Jun 9 21:03:32 2014 +0200
Update test results with new orphan instance warning
It seems that the patch in #9178 was not fully validated.
>---------------------------------------------------------------
707bde533dcb16bf8f5a30179d098b343e54fe7b
testsuite/tests/typecheck/should_compile/T4912.stderr | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/testsuite/tests/typecheck/should_compile/T4912.stderr b/testsuite/tests/typecheck/should_compile/T4912.stderr
index 50d2deb..0e0920f 100644
--- a/testsuite/tests/typecheck/should_compile/T4912.stderr
+++ b/testsuite/tests/typecheck/should_compile/T4912.stderr
@@ -1,4 +1,12 @@
-T4912.hs:10:10: Warning: Orphan instance: instance Foo TheirData
+T4912.hs:10:10: Warning:
+ Orphan instance: instance Foo TheirData
+ To avoid this
+ move the instance declaration to the module of the class or of the type, or
+ wrap the type with a newtype and declare the instance on the new type.
-T4912.hs:13:10: Warning: Orphan instance: instance Bar OurData
+T4912.hs:13:10: Warning:
+ Orphan instance: instance Bar OurData
+ To avoid this
+ move the instance declaration to the module of the class or of the type, or
+ wrap the type with a newtype and declare the instance on the new type.
More information about the ghc-commits
mailing list