diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-07-21 15:14:20 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-07-21 15:14:20 -0700 |
commit | 4c88ecaeca4098cfc5913fea060042b9fe48680e (patch) | |
tree | f015f772aaf05e939acaff0b7215fb94381c446e | |
parent | 5be880bd4866b10ed832852fd5666420ef3b3765 (diff) | |
download | pandoc-4c88ecaeca4098cfc5913fea060042b9fe48680e.tar.gz |
Changed to using strict bytestrings in UTF8 module.
This avoids a problem on Windows reading from stdin.
Previously we'd get an error from hGetBufNonBlocking.
-rw-r--r-- | src/Text/Pandoc/UTF8.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/UTF8.hs b/src/Text/Pandoc/UTF8.hs index 3dd61176c..96d6e6218 100644 --- a/src/Text/Pandoc/UTF8.hs +++ b/src/Text/Pandoc/UTF8.hs @@ -37,8 +37,8 @@ module Text.Pandoc.UTF8 ( readFile ) where -import qualified Data.ByteString.Lazy as B -import Data.ByteString.Lazy.UTF8 (toString, fromString) +import qualified Data.ByteString as B +import Data.ByteString.UTF8 (toString, fromString) import Prelude hiding (readFile, writeFile, getContents, putStr, putStrLn) import System.IO (Handle) import Control.Monad (liftM) |