diff options
author | alexbiehl <alex.biehl@gmail.com> | 2018-02-04 18:38:33 +0100 |
---|---|---|
committer | alexbiehl <alex.biehl@gmail.com> | 2018-02-18 17:59:54 +0100 |
commit | 06fc4934e96bd2e647496ec0082d6ef362328f64 (patch) | |
tree | 2f4337dfaeb24c0811bb6fe9cb8d5418f2745d40 | |
parent | 0ef6a26d49fc2b3a5785a55d95b64f77c40e58ad (diff) |
Use withBinaryFile
-rw-r--r-- | haddock-api/src/Haddock/Backends/Xhtml.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Backends/Xhtml.hs b/haddock-api/src/Haddock/Backends/Xhtml.hs index 2d23ddc7..00937245 100644 --- a/haddock-api/src/Haddock/Backends/Xhtml.hs +++ b/haddock-api/src/Haddock/Backends/Xhtml.hs @@ -355,7 +355,7 @@ ppJsonIndex :: FilePath -> IO () ppJsonIndex odir maybe_source_url maybe_wiki_url unicode qual_opt ifaces = do createDirectoryIfMissing True odir - IO.withFile (joinPath [odir, indexJsonFile]) IO.WriteMode $ \h -> do + IO.withBinaryFile (joinPath [odir, indexJsonFile]) IO.WriteMode $ \h -> do Builder.hPutBuilder h (encodeToBuilder modules) where modules :: Value |