wai-router 1.0.0.0 → 1.0.0.1
raw patch · 2 files changed
+1/−10 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Network/Wai/Middleware/Router.hs +0/−9
- wai-router.cabal +1/−1
Network/Wai/Middleware/Router.hs view
@@ -31,14 +31,6 @@ -- | A possible web application if the path matches, nothing otherwise.--- --- For example:--- --- > let f = dir "/foo/api" myApp--- > f ["foo","api"]--- > True--- > f ["foo","spi"]--- > False dir :: Text -> Application -> Route dir path a = let ps = pathPieces path in ( \xs -> if ps == xs @@ -49,4 +41,3 @@ -- | Pieces of a URL path. pathPieces :: Text -> [Text] pathPieces path = filter (""/=) $ splitOn "/" path-
wai-router.cabal view
@@ -1,5 +1,5 @@ Name: wai-router-Version: 1.0.0.0+Version: 1.0.0.1 Synopsis: Provides basic routing on URL paths for WAI. Description: Simple routing based on a URL path pieces mapped to web applications. License: MIT