on master help sign in
Add a trailing newline when writing JSON for humans

Fix https://github.com/elm/compiler/issues/1757

commit2a74611440aa566dbcac30429cfa2a186966c95f authorEvan Czaplicki <evancz@users.noreply.github.com> dateThu 23 Aug 2018, 12:51 (8 years ago) parentf3d223b
1 file changed+1−1
compiler/src/Json/Encode.hs+1−1
compiler/src/Json/Encode.hs+1−1
@@ -118,7 +118,7 @@ list encodeEntry entries =
118118write :: FilePath -> Value -> IO ()
119119write path value =
120120 withBinaryFile path WriteMode $ \handle ->
121− B.hPutBuilder handle (encode value)
121+ B.hPutBuilder handle (encode value <> "\n")
122122
123123
124124writeUgly :: FilePath -> Value -> IO ()