summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/T9997.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2015-01-16 14:17:14 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2015-01-16 14:17:14 +0000
commitfb7c311711c8851d0de1e40231150ad999ae9c2b (patch)
treee3000de44d43bcdce46165fce7bd3092f9be32d5 /testsuite/tests/module/T9997.hs
parentc71fb84b8c9ec9c1e279df8c75ceb8a537801aa1 (diff)
downloadhaskell-fb7c311711c8851d0de1e40231150ad999ae9c2b.tar.gz
Repsect the package name when checking for self-import
Fixes Trac #9997. In doing this I tripped across the specialness of "this" in PackageImports. The magic constant (fsLit "this") is scattered across the compiler and ought to be put in one place. But where?
Diffstat (limited to 'testsuite/tests/module/T9997.hs')
-rw-r--r--testsuite/tests/module/T9997.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/module/T9997.hs b/testsuite/tests/module/T9997.hs
new file mode 100644
index 0000000000..acc82da90b
--- /dev/null
+++ b/testsuite/tests/module/T9997.hs
@@ -0,0 +1,5 @@
+{-# LANGUAGE PackageImports #-}
+module Control.DeepSeq where
+
+import "deepseq" Control.DeepSeq
+