-- These imports are the reason that TcSplice
-- is very high up the module hierarchy
-import qualified Language.Haskell.TH.THSyntax as TH
-import qualified Language.Haskell.TH.THLib as TH
+import qualified Language.Haskell.TH as TH
-- THSyntax gives access to internal functions and data types
+import qualified Language.Haskell.TH.Syntax as TH
import HsSyn ( HsBracket(..), HsExpr(..), HsSplice(..), LHsExpr, LHsDecl,
HsType, LHsType )
mk_uniq u = mkUniqueGrimily (I# u)
notInScope :: TH.Name -> SDoc
-notInScope th_name = quotes (text (show (TH.pprName th_name))) <+>
+notInScope th_name = quotes (text (show (TH.ppr th_name))) <+>
ptext SLIT("is not in scope at a reify")
-- Ugh! Rather an indirect way to display the name