diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2015-07-30 15:06:55 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2015-07-30 15:35:22 +0100 |
commit | 72d23c3e0244b1163d7806e40128ad51cc959f7f (patch) | |
tree | b9ac60715798fc6571e170d5c41b80854f148d3f /testsuite/tests/patsyn | |
parent | 2e33b9c87615d3cc26ad188d5ca565e8a981208e (diff) | |
download | haskell-72d23c3e0244b1163d7806e40128ad51cc959f7f.tar.gz |
Better treatment of signatures in cls/inst
The provoking cause for this patch is Trac #5001, comment:23. There
was an INLINE pragma in an instance decl, that shouldn't be there.
But there was no complaint, just a mysterious WARN later.
I ended up having to do some real refactoring but the result is,
I think, simpler and more robust.
Diffstat (limited to 'testsuite/tests/patsyn')
-rw-r--r-- | testsuite/tests/patsyn/should_fail/T9705-1.stderr | 8 | ||||
-rw-r--r-- | testsuite/tests/patsyn/should_fail/T9705-2.stderr | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/testsuite/tests/patsyn/should_fail/T9705-1.stderr b/testsuite/tests/patsyn/should_fail/T9705-1.stderr index abe4fe6ada..400ecaa81f 100644 --- a/testsuite/tests/patsyn/should_fail/T9705-1.stderr +++ b/testsuite/tests/patsyn/should_fail/T9705-1.stderr @@ -1,4 +1,4 @@ - -T9705-1.hs:3:5: - Pattern synonyms not allowed in class/instance declarations - pattern P = () +
+T9705-1.hs:3:5: error:
+ Pattern synonyms not allowed in class declaration:
+ pattern P = ()
diff --git a/testsuite/tests/patsyn/should_fail/T9705-2.stderr b/testsuite/tests/patsyn/should_fail/T9705-2.stderr index 23f85fa8b5..9a3309f080 100644 --- a/testsuite/tests/patsyn/should_fail/T9705-2.stderr +++ b/testsuite/tests/patsyn/should_fail/T9705-2.stderr @@ -1,4 +1,4 @@ - -T9705-2.hs:6:5: - Pattern synonyms not allowed in class/instance declarations - pattern P = () +
+T9705-2.hs:6:5: error:
+ Pattern synonyms not allowed in instance declaration:
+ pattern P = ()
|