rest-wai 0.1.0.4 → 0.1.0.5
raw patch · 3 files changed
+21/−7 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 +14/−0
- rest-wai.cabal +2/−2
- src/Rest/Driver/Wai.hs +5/−5
CHANGELOG.md view
@@ -1,5 +1,19 @@ # Changelog +#### 0.1.0.5++* Use new version of `rest-core`.++#### 0.1.0.4++* Bump `rest-core`.+* Drop `rest-types` dependency.+* Allow `text` `1.2.*`.++#### 0.1.0.3++* Bump `rest-core`.+ #### 0.1.0.2 * Bump `rest-core` to `0.30.*`
rest-wai.cabal view
@@ -1,5 +1,5 @@ name: rest-wai-version: 0.1.0.4+version: 0.1.0.5 description: Rest driver for WAI applications. synopsis: Rest driver for WAI applications. maintainer: code@silk.co@@ -29,7 +29,7 @@ , http-types == 0.8.* , mime-types == 0.1.* , mtl >= 2.0 && < 2.3- , rest-core >= 0.31 && < 0.34+ , rest-core == 0.34.* , text >= 0.11 && < 1.3 , unordered-containers == 0.2.* , utf8-string == 0.3.*
src/Rest/Driver/Wai.hs view
@@ -53,11 +53,11 @@ , body = bs , method = case requestMethod req of- "GET" -> Rest.GET- "POST" -> Rest.POST- "PUT" -> Rest.PUT- "DELETE" -> Rest.DELETE- other -> Rest.Unknown (string other)+ "GET" -> Just Rest.GET+ "POST" -> Just Rest.POST+ "PUT" -> Just Rest.PUT+ "DELETE" -> Just Rest.DELETE+ _ -> Nothing , paths = text <$> filter (not . Text.null) (pathInfo req)