summaryrefslogtreecommitdiff
path: root/compiler/GHC/Unit/State.hs
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-10-24 19:52:40 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-10-25 18:10:19 -0400
commitf5a486eb3233b0e577333f04d2087d0f6741af87 (patch)
treeecb7fd5de195ccfd58859d8644b95852ac8367c6 /compiler/GHC/Unit/State.hs
parent1fd7f201a5afb9e8a26099da5ec86016bb487c92 (diff)
downloadhaskell-f5a486eb3233b0e577333f04d2087d0f6741af87.tar.gz
Cleanup String/FastString conversions
Remove unused mkPtrString and isUnderscoreFS. We no longer use mkPtrString since 1d03d8bef96. Remove unnecessary conversions between FastString and String and back.
Diffstat (limited to 'compiler/GHC/Unit/State.hs')
-rw-r--r--compiler/GHC/Unit/State.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Unit/State.hs b/compiler/GHC/Unit/State.hs
index 403216954f..ca361d69d2 100644
--- a/compiler/GHC/Unit/State.hs
+++ b/compiler/GHC/Unit/State.hs
@@ -2036,7 +2036,7 @@ mayThrowUnitErr = \case
instance Outputable UnitErr where
ppr = \case
CloseUnitErr p mb_parent
- -> (ftext (fsLit "unknown unit:") <+> ppr p)
+ -> (text "unknown unit:" <+> ppr p)
<> case mb_parent of
Nothing -> Outputable.empty
Just parent -> space <> parens (text "dependency of"