packages feed

telegram-api 0.5.0.0 → 0.5.0.1

raw patch · 2 files changed

+9/−9 lines, 2 filesdep ~aesondep ~http-clientdep ~servant

Dependency ranges changed: aeson, http-client, servant, servant-client

Files

src/Web/Telegram/API/Bot/JsonExt.hs view
@@ -13,12 +13,12 @@ import           GHC.Generics  -- | Method used to drop prefix from field name during serialization-toJsonDrop :: forall a.(GHC.Generics.Generic a, GToJSON (GHC.Generics.Rep a)) => Int -> a -> Value+toJsonDrop :: forall a.(Generic a, GToJSON Zero (Rep a)) => Int -> a -> Value toJsonDrop prefix = genericToJSON defaultOptions {     fieldLabelModifier = drop prefix   , omitNothingFields = True   }  -- | Method used to drop prefix from field name during deserialization-parseJsonDrop :: forall a.(Generic a, GFromJSON (Rep a)) => Int -> Value -> Parser a+parseJsonDrop :: forall a.(Generic a, GFromJSON Zero (Rep a)) => Int -> Value -> Parser a parseJsonDrop prefix = genericParseJSON defaultOptions { fieldLabelModifier = drop prefix }
telegram-api.cabal view
@@ -1,5 +1,5 @@ name:                telegram-api-version:             0.5.0.0+version:             0.5.0.1 synopsis:            Telegram Bot API bindings description:         High-level bindings to the Telegram Bot API homepage:            http://github.com/klappvisor/haskell-telegram-api#readme@@ -34,12 +34,12 @@   other-modules:       Web.Telegram.API.Bot.JsonExt                      , Servant.Client.MultipartFormData   build-depends:       base >= 4.7 && < 5-                     , aeson+                     , aeson == 1.0.*                      , either                      , http-api-data                      , http-client-                     , servant == 0.7.*-                     , servant-client == 0.7.*+                     , servant >= 0.7 && <0.9+                     , servant-client >= 0.7 && <0.9                      , text                      , transformers                      , http-media@@ -58,7 +58,7 @@                      , InlineSpec                      , JsonSpec   build-depends:       base-                     , aeson+                     , aeson == 1.0.*                      , hjpath                      , ansi-wl-pprint                      , http-client@@ -66,8 +66,8 @@                      , http-types                      , hspec                      , optparse-applicative-                     , servant == 0.7.*-                     , servant-client == 0.7.*+                     , servant >= 0.7 && <0.9+                     , servant-client >= 0.7 && <0.9                      , telegram-api                      , http-types                      , filepath