packages feed

pipes-aeson 0.4.1.2 → 0.4.1.3

raw patch · 5 files changed

+12/−11 lines, 5 filesdep ~attoparsecPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: attoparsec

API changes (from Hackage documentation)

- Pipes.Aeson.Unchecked: decode :: (Monad m, FromJSON a) => Parser ByteString m ((Maybe (Either DecodingError a)))
+ Pipes.Aeson.Unchecked: decode :: (Monad m, FromJSON a) => Parser ByteString m (Maybe (Either DecodingError a))

Files

changelog.md view
@@ -1,3 +1,8 @@+# 0.4.1.3++* Raise upper bound dependency on `attoparsec`.++ # 0.4.1.2  * Raise upper bound dependency on `aeson`.
pipes-aeson.cabal view
@@ -1,8 +1,8 @@ name:               pipes-aeson-version:            0.4.1.2+version:            0.4.1.3 license:            BSD3 license-file:       LICENSE-copyright:          Copyright (c) Renzo Carbonara 2013-2014+copyright:          Copyright (c) Renzo Carbonara 2013-2015 author:             Renzo Carbonara maintainer:         renzocarbonaraλgmail.com stability:          Experimental@@ -31,7 +31,7 @@   other-modules:   Pipes.Aeson.Internal   build-depends:       aeson            (>=0.6.1 && <0.9)-    , attoparsec       (>=0.10  && <0.13)+    , attoparsec       (>=0.10  && <0.14)     , base             (>=4.5   && <5.0)     , pipes            (>=4.1   && <4.2)     , pipes-attoparsec (>=0.5   && <0.6)
src/Pipes/Aeson.hs view
@@ -93,13 +93,11 @@ -- 'Ae.FromJSON' instance. -- -- Any of those steps can fail, in which case a 'I.DecodingError' will report--- the precise error and at which the step it happened.+-- the precise error and at which step it happened.   -- | Decodes an 'Ae.Object' or 'Ae.Array' JSON value from the underlying state. ----- Returns either the decoded entitiy, or a 'I.DecodingError' in case of error.--- -- It returns 'Nothing' if the underlying 'Producer' is exhausted, otherwise -- it returns either the decoded entity or a 'I.DecodingError' in case of error. --@@ -178,4 +176,4 @@ -------------------------------------------------------------------------------- -- Internal tools -------------------------------------------------------------- -type Lens' s a = forall f . Functor f => (a -> f a) -> (s -> f s)+type Lens' s a = forall f . Functor f => (a -> f a) -> s -> f s
src/Pipes/Aeson/Internal.hs view
@@ -75,8 +75,6 @@ -- | Decodes a 'Ae.FromJSON' value from the underlying state using the given -- 'Attoparsec.Parser' in order to obtain an 'Ae.Value' first. ----- Returns either the decoded entitiy, or a 'I.DecodingError' in case of error.--- -- It returns 'Nothing' if the underlying 'Producer' is exhausted, otherwise -- it returns either the decoded entity or a 'I.DecodingError' in case of error. decodeL
src/Pipes/Aeson/Unchecked.hs view
@@ -43,7 +43,7 @@ -- instance, not just 'Ae.Array' or 'Ae.Object'. decode   :: (Monad m, Ae.FromJSON a)-  => Pipes.Parser B.ByteString m ((Maybe (Either I.DecodingError a))) -- ^+  => Pipes.Parser B.ByteString m (Maybe (Either I.DecodingError a)) -- ^ decode = fmap (fmap snd) `liftM` decodeL {-# INLINABLE decode #-} @@ -97,4 +97,4 @@ -------------------------------------------------------------------------------- -- Internal tools -------------------------------------------------------------- -type Lens' s a = forall f . Functor f => (a -> f a) -> (s -> f s)+type Lens' s a = forall f . Functor f => (a -> f a) -> s -> f s