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:
John MacFarlane 2013-07-04 15:43:42 -07:00
parent 3f1937f78e
commit aab4c47da5

View file

@ -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