aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-07-04 15:43:42 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-07-04 15:43:42 -0700
commitaab4c47da5c25c9dc284da698b28d351ec033e15 (patch)
tree916d0a45773b47f56fd6a8ff5f2d6a6a9629eac6 /src/Text
parent3f1937f78e656f54c65fa4b4f4cedd6a126fb349 (diff)
downloadpandoc-aab4c47da5c25c9dc284da698b28d351ec033e15.tar.gz
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.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/UTF8.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/UTF8.hs b/src/Text/Pandoc/UTF8.hs
index 83ce7b30e..9fa743cd9 100644
--- a/src/Text/Pandoc/UTF8.hs
+++ b/src/Text/Pandoc/UTF8.hs
@@ -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