binary 0.7.2.0 → 0.7.2.1
raw patch · 2 files changed
+3/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- binary.cabal +1/−1
- src/Data/Binary/Get/Internal.hs +2/−0
binary.cabal view
@@ -1,5 +1,5 @@ name: binary-version: 0.7.2.0+version: 0.7.2.1 license: BSD3 license-file: LICENSE author: Lennart Kolmodin <kolmodin@gmail.com>
src/Data/Binary/Get/Internal.hs view
@@ -248,12 +248,14 @@ Done inp x -> C $ \_ ks -> ks inp x Fail _ _ -> pushBack bs >> g _ -> error "Binary: impossible"+#if MIN_VERSION_base(4,2,0) some p = (:) <$> p <*> many p many p = do v <- (Just <$> p) <|> pure Nothing case v of Nothing -> pure [] Just x -> (:) x <$> many p+#endif -- | Run a decoder and keep track of all the input it consumes. -- Once it's finished, return the final decoder (always 'Done' or 'Fail'),