summaryrefslogtreecommitdiff
path: root/compiler/GHC/Stg/Lift
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-10-25 21:20:37 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-10-28 00:50:00 -0400
commitad612f555821a44260e5d9654f940b71f5180817 (patch)
treec5601914b79e3d3872ce0e4844d6910cfd00ab43 /compiler/GHC/Stg/Lift
parent750846cd2c51613d2bbd0029a304d07fae2c2972 (diff)
downloadhaskell-ad612f555821a44260e5d9654f940b71f5180817.tar.gz
Minor SDoc-related cleanup
* Rename pprCLabel to pprCLabelStyle, and use the name pprCLabel for a function using CStyle (analogous to pprAsmLabel) * Move LabelStyle to the CLabel module, it no longer needs to be in Outputable. * Move calls to 'text' right next to literals, to make sure the text/str rule is triggered. * Remove FastString/String roundtrip in Tc.Deriv.Generate * Introduce showSDocForUser', which abstracts over a pattern in GHCi.UI
Diffstat (limited to 'compiler/GHC/Stg/Lift')
-rw-r--r--compiler/GHC/Stg/Lift/Monad.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Stg/Lift/Monad.hs b/compiler/GHC/Stg/Lift/Monad.hs
index a07c89b513..8e16dd922c 100644
--- a/compiler/GHC/Stg/Lift/Monad.hs
+++ b/compiler/GHC/Stg/Lift/Monad.hs
@@ -276,13 +276,13 @@ withSubstBndrs = runContT . traverse (ContT . withSubstBndr)
withLiftedBndr :: DIdSet -> Id -> (Id -> LiftM a) -> LiftM a
withLiftedBndr abs_ids bndr inner = do
uniq <- getUniqueM
- let str = "$l" ++ occNameString (getOccName bndr)
+ let str = fsLit "$l" `appendFS` occNameFS (getOccName bndr)
let ty = mkLamTypes (dVarSetElems abs_ids) (idType bndr)
let bndr'
-- See Note [transferPolyIdInfo] in GHC.Types.Id. We need to do this at least
-- for arity information.
= transferPolyIdInfo bndr (dVarSetElems abs_ids)
- . mkSysLocal (mkFastString str) uniq Many
+ . mkSysLocal str uniq Many
$ ty
LiftM $ RWS.local
(\e -> e