summaryrefslogtreecommitdiff
path: root/libraries/template-haskell
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-01-09 18:01:06 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2014-01-09 18:01:06 +0000
commita6243b37bb963f1c28aee6635bce0b462caa9dff (patch)
treea81fe8f7796bb2c93adb5bc1e2a66f76114038f9 /libraries/template-haskell
parent78e7066612a8e0b9cac2c4e63bd8059b57ea9ed6 (diff)
downloadhaskell-a6243b37bb963f1c28aee6635bce0b462caa9dff.tar.gz
Deprecate TH.global (Trac #8656)
Diffstat (limited to 'libraries/template-haskell')
-rw-r--r--libraries/template-haskell/Language/Haskell/TH/Lib.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/template-haskell/Language/Haskell/TH/Lib.hs b/libraries/template-haskell/Language/Haskell/TH/Lib.hs
index 2dfef30370..b7a88d6ec6 100644
--- a/libraries/template-haskell/Language/Haskell/TH/Lib.hs
+++ b/libraries/template-haskell/Language/Haskell/TH/Lib.hs
@@ -200,6 +200,8 @@ dyn :: String -> ExpQ
dyn s = return (VarE (mkName s))
global :: Name -> ExpQ
+{-# DEPRECATED global "Use varE instead" #-}
+-- Trac #8656; I have no idea why this function is duplicated
global s = return (VarE s)
varE :: Name -> ExpQ