diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2022-11-14 19:30:50 +0100 |
---|---|---|
committer | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2022-11-14 19:55:00 +0100 |
commit | d56816049e028b525e80e207cf87bb2e1aa194fc (patch) | |
tree | edcc1bb91949144bb4b85bd4d7c49869277c895d /compiler/GHC/Utils/Json.hs | |
parent | 268a3ce952f6be00a1dd164dc4d7acb346045e90 (diff) | |
download | haskell-wip/misc-cleanup2.tar.gz |
Misc cleanupwip/misc-cleanup2
* Replace catMaybes . map f with mapMaybe f
* Use concatFS to concatenate multiple FastStrings
* Fix documentation of -exclude-module
* Cleanup getIgnoreCount in GHCi.UI
Diffstat (limited to 'compiler/GHC/Utils/Json.hs')
-rw-r--r-- | compiler/GHC/Utils/Json.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/GHC/Utils/Json.hs b/compiler/GHC/Utils/Json.hs index acccc88658..47f599c950 100644 --- a/compiler/GHC/Utils/Json.hs +++ b/compiler/GHC/Utils/Json.hs @@ -24,7 +24,7 @@ renderJSON :: JsonDoc -> SDoc renderJSON d = case d of JSNull -> text "null" - JSBool b -> text $ if b then "true" else "false" + JSBool b -> if b then text "true" else text "false" JSInt n -> ppr n JSString s -> doubleQuotes $ text $ escapeJsonString s JSArray as -> brackets $ pprList renderJSON as |