#8656: Identical functions in Template Haskell -------------------------------+------------------------------------------- Reporter: jstolarek | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Template | Version: 7.7 Haskell | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: | Difficulty: Easy (less than 1 hour) Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: None/Unknown | Test Case: | Blocking: | -------------------------------+------------------------------------------- Changes (by simonpj): * status: new => closed * resolution: => fixed Comment: OK I've deprecated `global`: {{{ commit 6b485668ba22d4d78664866100a8ef2daf62ff89 Author: Simon Peyton Jones <simonpj@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 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8656#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler