web-routes-wai 0.21.0 → 0.22.1
raw patch · 2 files changed
+7/−7 lines, 2 filesdep +conduitdep −enumeratordep ~waidep ~web-routesPVP ok
version bump matches the API change (PVP)
Dependencies added: conduit
Dependencies removed: enumerator
Dependency ranges changed: wai, web-routes
API changes (from Hackage documentation)
- Web.Routes.Wai: handleWaiRouteT :: PathInfo url => ByteString -> (url -> Request -> RouteT url (Iteratee ByteString IO) Response) -> Application
+ Web.Routes.Wai: handleWaiRouteT :: PathInfo url => ByteString -> (url -> Request -> RouteT url (ResourceT IO) Response) -> Application
- Web.Routes.Wai: handleWaiRouteT_ :: (url -> [(Text, Maybe Text)] -> Text) -> (ByteString -> Either String url) -> ByteString -> (url -> Request -> RouteT url (Iteratee ByteString IO) Response) -> Application
+ Web.Routes.Wai: handleWaiRouteT_ :: (url -> [(Text, Maybe Text)] -> Text) -> (ByteString -> Either String url) -> ByteString -> (url -> Request -> RouteT url (ResourceT IO) Response) -> Application
Files
- Web/Routes/Wai.hs +3/−3
- web-routes-wai.cabal +4/−4
Web/Routes/Wai.hs view
@@ -5,7 +5,7 @@ import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Text.Encoding as Text-import Data.Enumerator (Iteratee)+import Control.Monad.Trans.Resource (ResourceT) import Network.Wai ( Application, Request, Response, rawPathInfo , responseLBS) import Network.HTTP.Types (status404)@@ -57,7 +57,7 @@ handleWaiRouteT_ :: (url -> [(Text, Maybe Text)] -> Text) -- ^ function to convert a 'url' + params into path info + query string -> (S.ByteString -> Either String url) -- ^ function to parse path info into 'url' -> S.ByteString -- ^ app root- -> (url -> Request -> RouteT url (Iteratee S.ByteString IO) Response) -- ^ routing function+ -> (url -> Request -> RouteT url (ResourceT IO) Response) -- ^ routing function -> Application handleWaiRouteT_ toPathInfo fromPathInfo approot handler = handleWai_ toPathInfo fromPathInfo approot (\toPathInfo' url request -> unRouteT (handler url request) toPathInfo')@@ -66,7 +66,7 @@ -- | convert a 'RouteT' based routing function into an 'Application' using 'PathInfo' to do the url conversion handleWaiRouteT :: (PathInfo url) => S.ByteString -- ^ app root- -> (url -> Request -> RouteT url (Iteratee S.ByteString IO) Response) -- ^ routing function+ -> (url -> Request -> RouteT url (ResourceT IO) Response) -- ^ routing function -> Application handleWaiRouteT approot handler = handleWaiRouteT_ toPathInfoParams fromPathInfo approot handler
web-routes-wai.cabal view
@@ -1,5 +1,5 @@ Name: web-routes-wai-Version: 0.21.0+Version: 0.22.1 License: BSD3 License-File: LICENSE Author: jeremy@seereason.com@@ -14,11 +14,11 @@ Library Build-Depends: base >= 4 && < 5, bytestring == 0.9.*,- enumerator == 0.4.*,+ conduit == 0.2.*, http-types == 0.6.*, text == 0.11.*,- wai == 0.4.*,- web-routes == 0.26.*+ wai == 1.1.*,+ web-routes == 0.27.* Exposed-Modules: Web.Routes.Wai source-repository head