summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Gen
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-10-28 21:05:34 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-05 00:29:57 -0400
commit3c0e379322965aa87b14923f6d8e1ef5cd677925 (patch)
treec7db820ab9cd898e3539b4704d041bbaf0d6954f /compiler/GHC/Tc/Gen
parentbdc8cbb3a0808632fc6b33a7e3c10212f5d8a5e9 (diff)
downloadhaskell-3c0e379322965aa87b14923f6d8e1ef5cd677925.tar.gz
Minor refactor around FastStrings
Pass FastStrings to functions directly, to make sure the rule for fsLit "literal" fires. Remove SDoc indirection in GHCi.UI.Tags and GHC.Unit.Module.Graph.
Diffstat (limited to 'compiler/GHC/Tc/Gen')
-rw-r--r--compiler/GHC/Tc/Gen/Sig.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/GHC/Tc/Gen/Sig.hs b/compiler/GHC/Tc/Gen/Sig.hs
index cfc5454e54..6b141d9173 100644
--- a/compiler/GHC/Tc/Gen/Sig.hs
+++ b/compiler/GHC/Tc/Gen/Sig.hs
@@ -26,6 +26,7 @@ module GHC.Tc.Gen.Sig(
) where
import GHC.Prelude
+import GHC.Data.FastString
import GHC.Driver.Session
import GHC.Driver.Backend
@@ -246,7 +247,7 @@ tcUserTypeSig loc hs_sig_ty mb_name
where
name = case mb_name of
Just n -> n
- Nothing -> mkUnboundName (mkVarOcc "<expression>")
+ Nothing -> mkUnboundName (mkVarOccFS (fsLit "<expression>"))
ctxt_rrc = ctxt_fn (lhsSigWcTypeContextSpan hs_sig_ty)
ctxt_no_rrc = ctxt_fn NoRRC