git.iko.soy/typeable/pandoc
on master help sign in
Allow binary 0.5. Version bump to 1.12.3.1.
commita1abb3eeea2321654a8450725ff6c0d1a18ee0c7 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 14 Jan 2014, 10:12 (13 years ago) parent68b438b
3 files changed+12−5
changelog+4 pandoc.cabal+2−2 src/Text/Pandoc/ImageSize.hs+6−3
changelog+4
@@ -1,3 +1,7 @@
1+pandoc (1.12.3.1)
2+
3+ * Relaxed version constraint on binary, allowing the use of binary 0.5.
4+
15pandoc (1.12.3)
26
37 * The `--bibliography` option now sets the `biblio-files` variable.
pandoc.cabal+2−2
@@ -1,5 +1,5 @@
11Name: pandoc
2−Version: 1.12.3
2+Version: 1.12.3.1
33Cabal-Version: >= 1.10
44Build-Type: Custom
55License: GPL
@@ -233,7 +233,7 @@ Library
233233 yaml >= 0.8.3 && < 0.9,
234234 vector >= 0.10 && < 0.11,
235235 hslua >= 0.3 && < 0.4,
236− binary >= 0.6 && < 0.8
236+ binary >= 0.5 && < 0.8
237237 Build-Tools: alex, happy
238238 if flag(http-conduit)
239239 Build-Depends: http-conduit >= 1.9 && < 2.1,
src/Text/Pandoc/ImageSize.hs+6−3
@@ -182,9 +182,12 @@ findJfifSize bs = do
182182 Nothing -> fail "Did not find length record"
183183
184184exifSize :: ByteString -> Maybe ImageSize
185−exifSize = -- runGet ((Just <$> exifHeader) `mplus` return Nothing) .
186− runGet (Just <$> exifHeader) .
187− BL.fromChunks . (:[])
185+exifSize = runGet (Just <$> exifHeader) . BL.fromChunks . (:[])
186+-- NOTE: It would be nicer to do
187+-- runGet ((Just <$> exifHeader) <|> return Nothing)
188+-- which would prevent pandoc from raising an error when an exif header can't
189+-- be parsed. But we only get an Alternative instance for Get in binary 0.6,
190+-- and binary 0.5 ships with ghc 7.6.
188191
189192exifHeader :: Get ImageSize
190193exifHeader = do