summaryrefslogtreecommitdiff
path: root/compiler/GHC/Linker
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-10-25 21:20:37 +0200
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2022-10-27 02:11:07 +0200
commit08ad4eaa280418164aee4f6fa7d2c4b3fbbbd3af (patch)
tree2d3bb3ec1196bcc928e6d338c377706cf0f3bce2 /compiler/GHC/Linker
parent0270cc54481bef9630274e77c2750940c1a4eff5 (diff)
downloadhaskell-wip/strings-refactor2.tar.gz
Minor SDoc-related cleanupwip/strings-refactor2
* 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/Linker')
-rw-r--r--compiler/GHC/Linker/ExtraObj.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/GHC/Linker/ExtraObj.hs b/compiler/GHC/Linker/ExtraObj.hs
index 90cf2466e5..97f2bd5b07 100644
--- a/compiler/GHC/Linker/ExtraObj.hs
+++ b/compiler/GHC/Linker/ExtraObj.hs
@@ -124,13 +124,13 @@ mkExtraObjToLinkIntoBinary logger tmpfs dflags unit_state = do
text " __conf.rts_opts_enabled = "
<> text (show (rtsOptsEnabled dflags)) <> semi,
text " __conf.rts_opts_suggestions = "
- <> text (if rtsOptsSuggestions dflags
- then "true"
- else "false") <> semi,
+ <> (if rtsOptsSuggestions dflags
+ then text "true"
+ else text "false") <> semi,
text "__conf.keep_cafs = "
- <> text (if gopt Opt_KeepCAFs dflags
- then "true"
- else "false") <> semi,
+ <> (if gopt Opt_KeepCAFs dflags
+ then text "true"
+ else text "false") <> semi,
case rtsOpts dflags of
Nothing -> Outputable.empty
Just opts -> text " __conf.rts_opts= " <>