summaryrefslogtreecommitdiff
path: root/compiler/parser/Parser.y
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/parser/Parser.y
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/parser/Parser.y')
-rw-r--r--compiler/parser/Parser.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/parser/Parser.y b/compiler/parser/Parser.y
index e3760906dd..2ba131dd79 100644
--- a/compiler/parser/Parser.y
+++ b/compiler/parser/Parser.y
@@ -582,6 +582,7 @@ export :: { OrdList (LIE RdrName) }
[mj AnnModule $1] }
| 'pattern' qcon {% amsu (sLL $1 $> (IEVar $2))
[mj AnnPattern $1] }
+ | '{-# DEPRECATED' deprecations '#-}' { (mapOL (fmap IEWarning) $2) }
export_subspec :: { Located ([AddAnn],ImpExpSubSpec) }
: {- empty -} { sL0 ([],ImpExpAbs) }