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.
This commit is contained in:
parent
3f1937f78e
commit
aab4c47da5
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ hPutStrLn :: Handle -> String -> IO ()
|
|||
hPutStrLn h s = hSetEncoding h utf8 >> IO.hPutStrLn h s
|
||||
|
||||
hGetContents :: Handle -> IO String
|
||||
hGetContents = fmap toStringLazy . BL.hGetContents
|
||||
hGetContents = fmap toString . B.hGetContents
|
||||
-- hGetContents h = hSetEncoding h utf8_bom
|
||||
-- >> hSetNewlineMode h universalNewlineMode
|
||||
-- >> IO.hGetContents h
|
||||
|
|
Loading…
Reference in a new issue