From aab4c47da5c25c9dc284da698b28d351ec033e15 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 4 Jul 2013 15:43:42 -0700 Subject: 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. --- src/Text/Pandoc/UTF8.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') 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 -- cgit v1.2.3