summaryrefslogtreecommitdiff
path: root/compiler/deSugar/DsMonad.hs
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2015-01-29 13:32:58 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2015-01-29 13:32:58 +0100
commit348df976743964ab838714e01f4bcac752c5dfc4 (patch)
tree193d03f8d97094da8f20e50950d86ac8aa3175ea /compiler/deSugar/DsMonad.hs
parent07ee96faac4996cde0ab82789eec0b70d1a35af0 (diff)
downloadhaskell-wip/T4879.tar.gz
Support re-export deprecations (re #4879)wip/T4879
This is basically the patch originally implemented by Ian Lynagh forward-ported to GHC 7.10/11
Diffstat (limited to 'compiler/deSugar/DsMonad.hs')
-rw-r--r--compiler/deSugar/DsMonad.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/deSugar/DsMonad.hs b/compiler/deSugar/DsMonad.hs
index f01a9d8174..a5f97dea35 100644
--- a/compiler/deSugar/DsMonad.hs
+++ b/compiler/deSugar/DsMonad.hs
@@ -258,7 +258,7 @@ loadModule doc mod
Succeeded iface -> return $ mkGlobalRdrEnv . gresFromAvails prov . mi_exports $ iface
} }
where
- prov = Imported [ImpSpec { is_decl = imp_spec, is_item = ImpAll }]
+ prov mw = Imported [ImpSpec { is_decl = imp_spec, is_item = ImpAll, is_warning = mw }]
imp_spec = ImpDeclSpec { is_mod = name, is_qual = True,
is_dloc = wiredInSrcSpan, is_as = name }
name = moduleName mod