[commit: ghc] master: testsuite: Add comment clarifying intention of completesig04 (fa360ea)
git at git.haskell.org
git at git.haskell.org
Fri Mar 3 17:13:41 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/fa360eabe5a01815f27a09df4a245546ede9210a/ghc
>---------------------------------------------------------------
commit fa360eabe5a01815f27a09df4a245546ede9210a
Author: Ben Gamari <ben at smart-cactus.org>
Date: Fri Mar 3 11:33:24 2017 -0500
testsuite: Add comment clarifying intention of completesig04
>---------------------------------------------------------------
fa360eabe5a01815f27a09df4a245546ede9210a
testsuite/tests/pmcheck/complete_sigs/completesig04.hs | 1 +
testsuite/tests/pmcheck/complete_sigs/completesig04.stderr | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/testsuite/tests/pmcheck/complete_sigs/completesig04.hs b/testsuite/tests/pmcheck/complete_sigs/completesig04.hs
index 2c072db..dbe1110 100644
--- a/testsuite/tests/pmcheck/complete_sigs/completesig04.hs
+++ b/testsuite/tests/pmcheck/complete_sigs/completesig04.hs
@@ -1,3 +1,4 @@
+-- Test that a COMPLETE pragma over constructors of different types fails.
module TyMismatch where
data E = L | R
diff --git a/testsuite/tests/pmcheck/complete_sigs/completesig04.stderr b/testsuite/tests/pmcheck/complete_sigs/completesig04.stderr
index 72b3dde..21a6377 100644
--- a/testsuite/tests/pmcheck/complete_sigs/completesig04.stderr
+++ b/testsuite/tests/pmcheck/complete_sigs/completesig04.stderr
@@ -1,4 +1,4 @@
-completesig04.hs:5:1: error:
+completesig04.hs:6:1: error:
• Cannot form a group of complete patterns from patterns ‘Just’ and ‘L’ as they match different type constructors (‘Maybe’ resp. ‘E’)
• In {-# COMPLETE Just, L #-}
More information about the ghc-commits
mailing list