imp: json: Decrease indentation in JSON output.

This commit is contained in:
Stephen Morgan 2021-07-21 16:42:15 +10:00 committed by Simon Michael
parent a291f5d33b
commit 58516eea77
2 changed files with 94 additions and 94 deletions

View File

@ -261,7 +261,7 @@ instance FromJSON (DecimalRaw Integer)
-- | Config for pretty printing JSON output.
jsonConf :: Config
jsonConf = Config{confIndent=Spaces 4,confCompare=compare, confNumFormat=Generic, confTrailingNewline=True}
jsonConf = Config{confIndent=Spaces 2, confCompare=compare, confNumFormat=Generic, confTrailingNewline=True}
-- | Show a JSON-convertible haskell value as pretty-printed JSON text.
toJsonText :: ToJSON a => a -> TL.Text