packages feed

json-api-lib 0.2.1.0 → 0.3.0.0

raw patch · 4 files changed

+14/−7 lines, 4 filesdep ~aesondep ~containersPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: aeson, containers

API changes (from Hackage documentation)

- Network.JSONApi: class (ToJSON a, FromJSON a) => ResourcefulEntity a
+ Network.JSONApi: class ResourcefulEntity a
- Network.JSONApi: mkIncludedResource :: ResourcefulEntity a => a -> Included
+ Network.JSONApi: mkIncludedResource :: (ResourcefulEntity a, ToJSON a) => a -> Included
- Network.JSONApi.Document: mkIncludedResource :: ResourcefulEntity a => a -> Included
+ Network.JSONApi.Document: mkIncludedResource :: (ResourcefulEntity a, ToJSON a) => a -> Included
- Network.JSONApi.Resource: class (ToJSON a, FromJSON a) => ResourcefulEntity a
+ Network.JSONApi.Resource: class ResourcefulEntity a

Files

+ CHANGELOG.md view
@@ -0,0 +1,3 @@+# 0.3.0.0++* Removed ToJSON and FromJSON superclass constraints on ResourcefulData
json-api-lib.cabal view
@@ -1,7 +1,7 @@ cabal-version:       2.0  name:                json-api-lib-version:             0.2.1.0+version:             0.3.0.0 homepage:            https://github.com/shirren/json-api-lib bug-reports:         https://github.com/shirren/json-api-lib/issues license:             MIT@@ -10,8 +10,12 @@ copyright:           2016 Todd Mohney category:            Network build-type:          Simple-maintainer:          Shirren Premaratne-tested-with:         GHC == 8.4.3+maintainer:          Shirren Premaratne, George Wilson+extra-source-files:  CHANGELOG.md+tested-with:         GHC == 8.4.4+                      || == 8.6.5+                      || == 8.8.3+                      || == 8.10.1 synopsis:            Utilities for generating JSON-API payloads description:   Provides utilities for deriving JSON payloads conformant to the json-api@@ -22,7 +26,7 @@   location: https://github.com/shirren/json-api-lib.git  library-  build-depends: aeson         > 1.4 && < 1.5+  build-depends: aeson         > 1.4 && < 1.6                , base          >= 4.11 && < 5                , containers    >= 0.6.1 && < 0.7                , data-default  >= 0.7.1 && < 0.8@@ -63,7 +67,7 @@   hs-source-dirs: src  test-suite json-api-lib-test-  build-depends: aeson         > 1.4 && < 1.5+  build-depends: aeson         > 1.4 && < 1.6                , aeson-pretty  > 0.8 && < 0.9                , base          >= 4.11 && < 5                , bytestring    >= 0.10.8 && < 0.11
src/Network/JSONApi/Document.hs view
@@ -203,7 +203,7 @@ Supports building compound documents <http://jsonapi.org/format/#document-compound-documents> -}-mkIncludedResource :: ResourcefulEntity a => a -> Included+mkIncludedResource :: (ResourcefulEntity a, ToJSON a) => a -> Included mkIncludedResource res = Included [AE.toJSON . R.toResource $ res]  toResourceData :: ResourcefulEntity a => a -> ResourceData a
src/Network/JSONApi/Resource.hs view
@@ -77,7 +77,7 @@ {- | A typeclass for decorating an entity with JSON API properties -}-class (ToJSON a, FromJSON a) => ResourcefulEntity a where+class ResourcefulEntity a where   resourceIdentifier :: a -> Text   resourceType :: a -> Text   resourceLinks :: a -> Maybe Links