summaryrefslogtreecommitdiff
path: root/testsuite/tests/backpack/should_fail
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2016-12-29 21:39:27 -0800
committerEdward Z. Yang <ezyang@cs.stanford.edu>2017-01-11 06:53:56 -0800
commit0bbcf76a349ed2c1d03907f2f74e5436859d59b0 (patch)
tree499e28fe0f487053fadec9436c69e0e8b353d8d1 /testsuite/tests/backpack/should_fail
parent9f169bcd951c5d946698d5f33a0cdb625d725490 (diff)
downloadhaskell-0bbcf76a349ed2c1d03907f2f74e5436859d59b0.tar.gz
Warn if you explicitly export an identifier with warning attached.
Summary: This won't stop people from attempting to use this identifier (since it is still always going to be in the export list), but having an explicit reference to something people shouldn't use is a smell, so warn about it. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: validate Reviewers: simonpj, austin, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2907
Diffstat (limited to 'testsuite/tests/backpack/should_fail')
-rw-r--r--testsuite/tests/backpack/should_fail/bkpfail35.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/backpack/should_fail/bkpfail35.stderr b/testsuite/tests/backpack/should_fail/bkpfail35.stderr
index f90d0e2bc6..e37148862e 100644
--- a/testsuite/tests/backpack/should_fail/bkpfail35.stderr
+++ b/testsuite/tests/backpack/should_fail/bkpfail35.stderr
@@ -3,6 +3,10 @@
[2 of 2] Compiling B ( p/B.hs, nothing )
[2 of 4] Processing q
[1 of 1] Compiling A[sig] ( q/A.hsig, nothing )
+
+bkpfail35.bkp:8:18: warning:
+ Exported identifier ‘x’ will cause warnings if used.
+ (To suppress this warning, remove ‘x’ from the export list of this signature.)
[3 of 4] Processing aimpl
Instantiating aimpl
[1 of 1] Compiling A ( aimpl/A.hs, bkpfail35.out/aimpl/A.o )