From fb7c311711c8851d0de1e40231150ad999ae9c2b Mon Sep 17 00:00:00 2001 From: Simon Peyton Jones Date: Fri, 16 Jan 2015 14:17:14 +0000 Subject: 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? --- testsuite/tests/module/T9997.hs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 testsuite/tests/module/T9997.hs (limited to 'testsuite/tests/module/T9997.hs') 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 + -- cgit v1.2.1