fb 2.1.1 → 2.1.1.1
raw patch · 3 files changed
+15/−7 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- fb.cabal +3/−5
- src/Facebook/FQL.hs +8/−2
CHANGELOG.md view
@@ -1,3 +1,7 @@+# Version 2.1.1.1++* Add support for Aeson v2+.+ # Version 2.1.0 * Same release as 2.0.1 bound follows PVP properly
fb.cabal view
@@ -1,13 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.31.2.+-- This file has been generated from package.yaml by hpack version 0.34.5. -- -- see: https://github.com/sol/hpack------ hash: fbc728728a747ce7668aa69d724cc5c3bba4c229c78cace64848a9542775f837 name: fb-version: 2.1.1+version: 2.1.1.1 synopsis: Bindings to Facebook's API. description: This package exports bindings to Facebook's APIs (see <http://developers.facebook.com/>). Does not have any external@@ -73,7 +71,7 @@ build-depends: aeson >=0.8.0.2 , attoparsec >=0.10.4- , base >=4 && <5+ , base ==4.* , bytestring >=0.9 , conduit >=1.3.0 , conduit-extra
src/Facebook/FQL.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} @@ -16,8 +17,13 @@ import qualified Control.Monad.Trans.Resource as R import qualified Data.Aeson as A-import qualified Data.HashMap.Strict as HMS+#if MIN_VERSION_aeson(2,0,0)+import qualified Data.Aeson.KeyMap as Keys+#else+import qualified Data.HashMap.Strict as Keys+#endif + import Facebook.Types import Facebook.Monad import Facebook.Base@@ -66,7 +72,7 @@ instance A.FromJSON a => A.FromJSON (FQLList a) where- parseJSON (A.Object o) = FQLList <$> mapM A.parseJSON (HMS.elems o)+ parseJSON (A.Object o) = FQLList <$> mapM A.parseJSON (Keys.elems o) parseJSON v = FQLList <$> A.parseJSON v -- | @newtype@ wrapper around any object that works around FQL's