packages feed

rest-types 1.11.1 → 1.11.1.1

raw patch · 3 files changed

+7/−3 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Rest.Types.Container: instance Typeable1 List
- Rest.Types.Error: instance Typeable1 Reason
- Rest.Types.Error: instance Typeable2 Status
+ Rest.Types.Container: instance Typeable List
+ Rest.Types.Error: instance Typeable Reason
+ Rest.Types.Error: instance Typeable Status

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Changelog +#### 1.11.1.1++* Return a 405 for unsupported methods.+ ### 1.11.1  * Moved `Range` from `rest-core` to `Rest.Types.Range`.
rest-types.cabal view
@@ -1,5 +1,5 @@ name:                rest-types-version:             1.11.1+version:             1.11.1.1 description:         Silk Rest Framework Types synopsis:            Silk Rest Framework Types maintainer:          code@silk.co@@ -23,8 +23,8 @@   exposed-modules:     Rest.Types.Container     Rest.Types.Container.Resource-    Rest.Types.Info     Rest.Types.Error+    Rest.Types.Info     Rest.Types.Range     Rest.Types.ShowUrl   build-depends:
src/Rest/Types/Error.hs view
@@ -163,7 +163,7 @@     case e of       NotFound                          -> 404       UnsupportedRoute                  -> 404-      UnsupportedMethod                 -> 404+      UnsupportedMethod                 -> 405       UnsupportedVersion                -> 404       NotAllowed                        -> 403       AuthenticationFailed              -> 401