summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/annotations/comments.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2020-06-26 12:58:02 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-08-12 03:50:12 -0400
commitaccbc242e555822a2060091af7188ce6e9b0144e (patch)
tree641ced97452a46a0ff17f6754d2150e283c9b9ca /testsuite/tests/ghc-api/annotations/comments.hs
parentf1088b3f31ceddf918a319c97557fb1f08a9a387 (diff)
downloadhaskell-accbc242e555822a2060091af7188ce6e9b0144e.tar.gz
DynFlags: disentangle Outputable
- put panic related functions into GHC.Utils.Panic - put trace related functions using DynFlags in GHC.Driver.Ppr One step closer making Outputable fully independent of DynFlags. Bump haddock submodule
Diffstat (limited to 'testsuite/tests/ghc-api/annotations/comments.hs')
-rw-r--r--testsuite/tests/ghc-api/annotations/comments.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/ghc-api/annotations/comments.hs b/testsuite/tests/ghc-api/annotations/comments.hs
index 4da8cbda54..8497c87eda 100644
--- a/testsuite/tests/ghc-api/annotations/comments.hs
+++ b/testsuite/tests/ghc-api/annotations/comments.hs
@@ -10,6 +10,7 @@ import Data.List (intercalate)
import System.IO
import GHC
import GHC.Driver.Session
+import GHC.Driver.Ppr
import GHC.Utils.Monad
import GHC.Utils.Outputable
import GHC.Data.Bag (filterBag,isEmptyBag)
@@ -67,4 +68,4 @@ showAnns anns = "[\n" ++ (intercalate "\n"
showToks ts = intercalate ",\n\n"
$ map (\(L p t) -> "(" ++ pp p ++ "," ++ show t ++ ")") ts
-pp a = showPpr unsafeGlobalDynFlags a
+pp a = showPprUnsafe a