diff options
author | alexbiehl <alex.biehl@gmail.com> | 2018-02-04 18:38:33 +0100 |
---|---|---|
committer | alexbiehl <alex.biehl@gmail.com> | 2018-02-04 18:39:31 +0100 |
commit | 4b907bfc8e6655a79e10b6d4850b9430c2f65eeb (patch) | |
tree | 4e15c7a2d45f8fbe2bb4ae2b592b5a113476eff7 /haddock-api/src/Haddock/Backends/Xhtml.hs | |
parent | 86292c54bfee2343aee84559ec01f1fc68f52231 (diff) |
Use withBinaryFile
Diffstat (limited to 'haddock-api/src/Haddock/Backends/Xhtml.hs')
-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 60d3e985..d03cf0ba 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 |