[commit: packages/template-haskell] master: Deprecate TH.global (Trac #8656) (6b48566)

git at git.haskell.org git at git.haskell.org
Fri Jan 10 08:55:17 UTC 2014


Repository : ssh://git@git.haskell.org/template-haskell

On branch  : master
Link       : http://git.haskell.org/packages/template-haskell.git/commitdiff/6b485668ba22d4d78664866100a8ef2daf62ff89

>---------------------------------------------------------------

commit 6b485668ba22d4d78664866100a8ef2daf62ff89
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Jan 9 18:01:06 2014 +0000

    Deprecate TH.global (Trac #8656)


>---------------------------------------------------------------

6b485668ba22d4d78664866100a8ef2daf62ff89
 Language/Haskell/TH/Lib.hs |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/Language/Haskell/TH/Lib.hs b/Language/Haskell/TH/Lib.hs
index 2dfef30..b7a88d6 100644
--- a/Language/Haskell/TH/Lib.hs
+++ b/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



More information about the ghc-commits mailing list