packages feed

data-serializer 0.3.3 → 0.3.4

raw patch · 2 files changed

+5/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Data.Deserializer: check :: Deserializer μ => Int -> μ Bool

Files

data-serializer.cabal view
@@ -1,5 +1,5 @@ Name: data-serializer-Version: 0.3.3+Version: 0.3.4 Category: Data Stability: experimental Synopsis: Common API for serialization libraries
src/Data/Deserializer.hs view
@@ -215,6 +215,10 @@   ensure_ ∷ Int → μ ()   ensure_ = (() <$) . ensure   {-# INLINE ensure_ #-}+  -- | 'check' /n/ returns 'True' if the input has at least /n/ more bytes.+  check ∷ Int → μ Bool+  check n = True <$ ensure_ n <|> return False+  {-# INLINE check #-}   -- | Consume exactly the given number of bytes.   take ∷ Int → μ BS.ByteString   -- | Consume a portion of the input (the size of the returned