[commit: ghc] master: Refine deprecation warnings in template-haskell. (0f584ae)
git at git.haskell.org
git at git.haskell.org
Wed Jun 11 13:32:17 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/0f584ae391dc62ab4bd81939503b3b5b4e47e570/ghc
>---------------------------------------------------------------
commit 0f584ae391dc62ab4bd81939503b3b5b4e47e570
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date: Tue Jun 10 14:49:16 2014 -0400
Refine deprecation warnings in template-haskell.
>---------------------------------------------------------------
0f584ae391dc62ab4bd81939503b3b5b4e47e570
libraries/template-haskell/Language/Haskell/TH/Lib.hs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libraries/template-haskell/Language/Haskell/TH/Lib.hs b/libraries/template-haskell/Language/Haskell/TH/Lib.hs
index 345f16b..3ac16d1 100644
--- a/libraries/template-haskell/Language/Haskell/TH/Lib.hs
+++ b/libraries/template-haskell/Language/Haskell/TH/Lib.hs
@@ -526,14 +526,14 @@ sigT t k
equalityT :: TypeQ
equalityT = return EqualityT
-{-# DEPRECATED classP "Constraint constructors are just type constructors, frob this code as 'constraintT'." #-}
+{-# DEPRECATED classP "As of template-haskell-2.10, constraint predicates (Pred) are just types (Type), in keeping with ConstraintKinds. Please use 'conT' and 'appT'." #-}
classP :: Name -> [Q Type] -> Q Pred
classP cla tys
= do
tysl <- sequence tys
return (foldl AppT (ConT cla) tysl)
-{-# DEPRECATED equalP "Constraint constructors are just type constructors, frob this code as 'equalT'." #-}
+{-# DEPRECATED equalP "As of template-haskell-2.10, constraint predicates (Pred) are just types (Type), in keeping with ConstraintKinds. Please see 'equalityT'." #-}
equalP :: TypeQ -> TypeQ -> PredQ
equalP tleft tright
= do
More information about the ghc-commits
mailing list