summaryrefslogtreecommitdiff
path: root/testsuite/tests/module/T9061.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-05-02 12:09:52 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2014-05-05 09:12:15 +0100
commit9f3e39d5f8686e511ffca406a6e056dec4095e53 (patch)
tree6f8330a048ed9352f049ef8be341d83f1902630f /testsuite/tests/module/T9061.hs
parentf0fcc41d755876a1b02d1c7c79f57515059f6417 (diff)
downloadhaskell-9f3e39d5f8686e511ffca406a6e056dec4095e53.tar.gz
Fix over-zealous unused-import warning
See Note [Un-warnable import decls] in RnNames. Fixes Trac #9061.
Diffstat (limited to 'testsuite/tests/module/T9061.hs')
-rw-r--r--testsuite/tests/module/T9061.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/module/T9061.hs b/testsuite/tests/module/T9061.hs
new file mode 100644
index 0000000000..1417dcad75
--- /dev/null
+++ b/testsuite/tests/module/T9061.hs
@@ -0,0 +1,6 @@
+{-# OPTIONS_GHC -fwarn-unused-imports #-}
+module T9061 where
+
+import Prelude hiding (log)
+
+f = log where log = ()