wai-routing 0.9 → 0.9.1
raw patch · 3 files changed
+13/−7 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- bench/Bench.hs +8/−6
- wai-routing.cabal +1/−1
CHANGELOG.md view
@@ -1,3 +1,7 @@+0.9.1+-----------------------------------------------------------------------------+- Bugfix release (benchmarks)+ 0.9 ----------------------------------------------------------------------------- - Update to WAI 3.0.x and honour the new CPS definition of `Application`
bench/Bench.hs view
@@ -12,16 +12,17 @@ import Criterion.Config import Network.HTTP.Types hiding (ok200) import Network.Wai+import Network.Wai.Internal (ResponseReceived (..)) import Network.Wai.Predicate import Network.Wai.Routing sitemap :: Routes a IO () sitemap = do- get "/a" handlerA (query "foo")- get "/b" handlerB (query "foo" .&. query "bar")- get "/c" handlerC (query "foo" .&. query "bar" .&. query "baz")- get "/d" handlerD (query "foo" .&. query "bar" .&. query "baz" .&. query "zoo")- get "/z" handlerZ $+ get "/a" (continue handlerA) (query "foo")+ get "/b" (continue handlerB) (query "foo" .&. query "bar")+ get "/c" (continue handlerC) (query "foo" .&. query "bar" .&. query "baz")+ get "/d" (continue handlerD) (query "foo" .&. query "bar" .&. query "baz" .&. query "zoo")+ get "/z" (continue handlerZ) $ query "foo" .&. query "bar" .&. query "baz"@@ -98,5 +99,6 @@ ] ] where- f = route (prepare sitemap)+ f rq = route (prepare sitemap) rq rs+ rs = const (return ResponseReceived)
wai-routing.cabal view
@@ -1,5 +1,5 @@ name: wai-routing-version: 0.9+version: 0.9.1 synopsis: Declarative routing for WAI. license: OtherLicense license-file: LICENSE