summaryrefslogtreecommitdiff
path: root/compiler/iface
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/iface
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/iface')
-rw-r--r--compiler/iface/MkIface.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/iface/MkIface.hs b/compiler/iface/MkIface.hs
index e7cc3adc19..7b89147f2c 100644
--- a/compiler/iface/MkIface.hs
+++ b/compiler/iface/MkIface.hs
@@ -1102,8 +1102,8 @@ mkIfaceExports exports
sort_subs (Avail n) = Avail n
sort_subs (AvailTC n []) = AvailTC n []
sort_subs (AvailTC n (m:ms))
- | n==m = AvailTC n (m:sortBy stableNameCmp ms)
- | otherwise = AvailTC n (sortBy stableNameCmp (m:ms))
+ | n==m = AvailTC n (m:sortBy (stableNameCmp `on` nameWarnName) ms)
+ | otherwise = AvailTC n (sortBy (stableNameCmp `on` nameWarnName) (m:ms))
-- Maintain the AvailTC Invariant
{-