rest-snap 0.1.17.14 → 0.1.17.15
raw patch · 3 files changed
+16/−8 lines, 3 filesdep ~rest-corePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: rest-core
API changes (from Hackage documentation)
Files
- CHANGELOG.md +8/−0
- rest-snap.cabal +2/−2
- src/Rest/Driver/Snap.hs +6/−6
CHANGELOG.md view
@@ -1,5 +1,13 @@ # Changelog +#### 0.1.17.15++* Use new version of `rest-core`.++#### 0.1.17.14++* Bump `rest-core`.+ #### 0.1.17.13 * Bump `rest-types` and `rest-core`.
rest-snap.cabal view
@@ -1,5 +1,5 @@ name: rest-snap-version: 0.1.17.14+version: 0.1.17.15 description: Rest driver for Snap. synopsis: Rest driver for Snap. maintainer: code@silk.co@@ -25,7 +25,7 @@ base == 4.* , bytestring >= 0.9 && < 0.11 , case-insensitive >= 0.4 && < 1.3- , rest-core >= 0.31 && < 0.34+ , rest-core == 0.34.* , safe >= 0.2 && < 0.4 , snap-core == 0.9.* , unordered-containers == 0.2.*
src/Rest/Driver/Snap.hs view
@@ -36,9 +36,9 @@ setHeader nm v = modifyResponse (Snap.setHeader (CI.mk . UTF8.fromString $ nm) (UTF8.fromString v)) setResponseCode cd = modifyResponse (Snap.setResponseCode cd) -toRestMethod :: Snap.Method -> Rest.Method-toRestMethod Snap.GET = Rest.GET-toRestMethod Snap.POST = Rest.POST-toRestMethod Snap.PUT = Rest.PUT-toRestMethod Snap.DELETE = Rest.DELETE-toRestMethod mthd = Rest.Unknown (show mthd)+toRestMethod :: Snap.Method -> Maybe Rest.Method+toRestMethod Snap.GET = Just Rest.GET+toRestMethod Snap.POST = Just Rest.POST+toRestMethod Snap.PUT = Just Rest.PUT+toRestMethod Snap.DELETE = Just Rest.DELETE+toRestMethod _ = Nothing