Text.Pandoc.UTF8: Use strict bytestrings in reading.
The use of lazy bytestrings seemed to cause problems using
pandoc on Windows 7/8 64-bit machines.
Closes #874.
commitaab4c47da5c25c9dc284da698b28d351ec033e15
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateThu 4 Jul 2013, 15:43 (13 years ago)
parent3f1937f
src/Text/Pandoc/UTF8.hs+1−1
@@ -85,7 +85,7 @@ hPutStrLn :: Handle -> String -> IO ()
8585hPutStrLn h s = hSetEncoding h utf8 >> IO.hPutStrLn h s
8686
8787hGetContents :: Handle -> IO String
88−hGetContents = fmap toStringLazy . BL.hGetContents
88+hGetContents = fmap toString . B.hGetContents
8989-- hGetContents h = hSetEncoding h utf8_bom
9090-- >> hSetNewlineMode h universalNewlineMode
9191-- >> IO.hGetContents h