diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-11-09 11:25:05 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-11-09 11:25:05 -0800 |
commit | 64b32e1e8194644df37a115200f929a9553c6d16 (patch) | |
tree | 95270b6a46927d2cf27bb9201c6b0b666ec84a2c | |
parent | 38197c035759309d084be540b55f4bdb082e2256 (diff) | |
download | pandoc-64b32e1e8194644df37a115200f929a9553c6d16.tar.gz |
Fixed shadowing error.
-rw-r--r-- | src/Text/Pandoc/Shared.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index a82968c04..448a582aa 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -914,9 +914,9 @@ fetchItem' media sourceURL s = do -- | Read from a URL and return raw data and maybe mime type. openURL :: String -> IO (Either E.SomeException (BS.ByteString, Maybe MimeType)) openURL u - | Just u' <- stripPrefix "data:" u = - let mime = takeWhile (/=',') u' - contents = B8.pack $ unEscapeString $ drop 1 $ dropWhile (/=',') u' + | Just u'' <- stripPrefix "data:" u = + let mime = takeWhile (/=',') u'' + contents = B8.pack $ unEscapeString $ drop 1 $ dropWhile (/=',') u'' in return $ Right (decodeLenient contents, Just mime) #ifdef HTTP_CLIENT | otherwise = withSocketsDo $ E.try $ do |