Skip to content

Commit 2a74611

Browse files
committed
Add a trailing newline when writing JSON for humans
Fix #1757
1 parent f3d223b commit 2a74611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/Json/Encode.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ list encodeEntry entries =
118118
write :: FilePath -> Value -> IO ()
119119
write path value =
120120
withBinaryFile path WriteMode $ \handle ->
121-
B.hPutBuilder handle (encode value)
121+
B.hPutBuilder handle (encode value <> "\n")
122122

123123

124124
writeUgly :: FilePath -> Value -> IO ()

0 commit comments

Comments
 (0)