diff --git a/app/Niv.hs b/app/Niv.hs index 42955b7..7b155c0 100644 --- a/app/Niv.hs +++ b/app/Niv.hs @@ -545,7 +545,9 @@ decodeFileStrict = fmap Aeson.decodeStrict . B.readFile -- | Efficiently serialize a JSON value as a lazy 'L.ByteString' and write it to a file. encodeFile :: (ToJSON a) => FilePath -> a -> IO () -encodeFile fp = L.writeFile fp . AesonPretty.encodePretty +encodeFile fp = L.writeFile fp . AesonPretty.encodePretty' config + where + config = AesonPretty.defConfig { AesonPretty.confTrailingNewline = True } --- HashMap diff --git a/site/niv.svg b/site/niv.svg index 7f5b3be..0816c11 100644 --- a/site/niv.svg +++ b/site/niv.svg @@ -1,10 +1,10 @@ - +