packages feed

wai-routing

Declarative routing for WAI.

view on Hackage

Enables the declaration of \"routes\" which handle requests to a specific URL. The set of possible handlers can be restricted by \"predicates\", which operate on WAI requests and have to be true or else the handler will not be called. Example: >import Data.ByteString (ByteString) >import Data.Text (Text) >import Network.Wai >import Network.Wai.Predicate >import Network.Wai.Routing >import Network.Wai.Handler.Warp > >main :: IO () >main = run 8080 (route (prepare start)) > >start :: Monad m => Routes a m () >start = do > get "/user/:name" (continue fetchUser) $ > capture "name" > > get "/user/find" (continue findUser) $ > query "byName" ||| query "byId" > > delete "/user/:name" rmUser $ > capture "name" .&. opt (cookie "foo") > >fetchUser :: Monad m => Text -> m Response >fetchUser name = ... > >findUser :: Monad m => Either ByteString Word64 -> m Response >findUser (Left name) = ... >findUser (Right ident) = ... > >rmUser :: Monad m => Text ::: Maybe Int -> Continue m -> m ResponseReceived >rmUser (name ::: foo) k = k $ ...
versionuploadeduploaderchanges
0.13.02016-08-01 22:25 UTCToralfWittner+19/−15 lines, 2 filesdep ~attoparsecdep ~basedep ~bytestring
0.12.32016-02-13 21:21 UTCToralfWittner+9/−9 lines, 3 files
0.12.22015-11-11 22:39 UTCToralfWittner+21/−12 lines, 5 files
0.12.12014-11-26 23:44 UTCToralfWittner+6/−2 lines, 2 filesdep ~bytestring-conversion
0.122014-11-19 22:09 UTCToralfWittner+34/−12 lines, 4 filesdep +containersdep ~wai-route
0.11.12014-11-18 08:03 UTCToralfWittner+8/−4 lines, 4 files
0.112014-09-12 21:20 UTCToralfWittner+46/−16 lines, 4 filesdep ~attoparsecdep ~bytestringdep ~case-insensitivePVP ok
0.10.22014-08-27 21:50 UTCToralfWittner+7/−3 lines, 2 filesdep ~bytestringdep ~bytestring-conversionPVP ok
0.10.12014-08-27 07:18 UTCToralfWittner+1/−1 lines, 1 filesPVP ok
0.102014-08-26 21:25 UTCToralfWittner+30/−28 lines, 5 filesdep +bytestring-conversiondep −HUnitdep −QuickCheckdep −bytestring-fromdep ~blaze-builderdep ~criteriondep ~tasty-hunitPVP ok
0.9.12014-06-17 06:35 UTCToralfWittner+13/−7 lines, 3 filesPVP ok
0.92014-06-15 22:35 UTCToralfWittner+140/−83 lines, 6 filesdep ~attoparsecdep ~waidep ~wai-predicatesPVP ok
0.82014-06-06 22:16 UTCToralfWittner+170/−22 lines, 7 filesdep +criteriondep ~bytestring-fromdep ~http-typesdep ~waiPVP ok
0.72014-05-16 22:01 UTCToralfWittner+9/−3 lines, 2 filesdep ~transformersdep ~wai-predicatesPVP ok
0.62014-04-29 23:19 UTCToralfWittner+20/−5 lines, 4 filesPVP ok
0.5.32014-04-07 21:53 UTCToralfWittner+2/−2 lines, 1 filesdep ~wai-predicates
0.5.22014-04-01 20:42 UTCToralfWittner+8/−7 lines, 1 filesdep ~HUnitdep ~QuickCheckdep ~case-insensitive
0.5.12014-03-13 21:28 UTCToralfWittner+10/−5 lines, 4 filesdep ~wai-predicates
0.52014-03-10 22:58 UTCToralfWittner+34/−2 lines, 2 filesdep ~wai-predicates
0.4.12014-03-09 18:08 UTCToralfWittner+3/−3 lines, 1 filesdep ~waidep ~wai-predicates
0.42014-03-06 00:21 UTCToralfWittner+145/−1332 lines, 25 filesdep +wai-predicatesdep ~bytestring-from
0.3.12014-02-25 22:31 UTCToralfWittner+2/−2 lines, 2 files
0.32014-02-20 23:02 UTCToralfWittner+7/−2 lines, 2 files
0.22014-02-20 22:19 UTCToralfWittner+273/−95 lines, 15 files
0.12014-02-17 23:18 UTCToralfWittner+2208/−0 lines, 29 filesdep +HUnitdep +QuickCheckdep +attoparsecsetup-changed

Dependencies of wai-routing-0.13.0

attoparsec >=0.10 0.14.3 → 0.14.4
2022-01-10 18:41 UTC0.14.4+736/−940 lines, 30 filesdep +attoparsecdep +tasty-benchdep −criteriondep ~QuickCheckdep ~bytestringdep ~ghc-primPVP ok
2021-12-09 02:44 UTC0.14.3+107/−39 lines, 5 filesPVP ok
2021-10-30 15:07 UTC0.14.2+10/−9 lines, 3 filesdep ~basedep ~ghc-primdep ~semigroupsPVP ok
2021-03-22 21:21 UTC0.14.1+172/−34 lines, 10 filesPVP ok
2021-02-10 01:00 UTC0.13.2.5+53/−15 lines, 4 filesdep ~QuickCheckdep ~bytestringdep ~ghc-primPVP: major bump suggested

showing 5 of 61 versions

base >=4.6 && <5.0 4.22.0.0 → 4.22.1.0
2026-12-01 12:38 UTC4.22.1.0+388/−6 lines, 9 filesdep ~ghc-internalPVP: major bump suggested
2025-12-19 11:52 UTC4.22.0.0+886/−215 lines, 28 filesdep ~ghc-internalPVP ok
2026-03-27 12:26 UTC4.21.2.0+10/−3 lines, 4 filesdep ~ghc-internalPVP ok
2025-12-27 10:31 UTC4.21.1.0+17/−5 lines, 4 filesdep ~ghc-internalPVP ok
2024-12-16 09:24 UTC4.21.0.0+1170/−396 lines, 39 filesdep ~ghc-internalPVP ok

showing 5 of 61 versions

blaze-builder >=0.3 0.4.4 → 0.4.4.1
2025-08-29 05:39 UTC0.4.4.1+8/−4 lines, 3 filesdep −deepseqdep −ghc-primPVP ok
2025-08-01 15:28 UTC0.4.4+258/−326 lines, 13 filesPVP ok
2025-05-15 11:12 UTC0.4.3+44/−72 lines, 8 filesdep −bytestring-builderdep −semigroupsdep ~basedep ~bytestringdep ~textPVP: major bump suggested
2023-08-27 17:50 UTC0.4.2.3+20/−12 lines, 5 filesdep ~basedep ~bytestringdep ~textPVP ok
2021-10-18 21:39 UTC0.4.2.2+352/−332 lines, 28 filesdep +ghc-primdep ~basedep ~bytestringdep ~textnew-uploaderPVP ok

showing 5 of 31 versions

bytestring >=0.10 0.12.1.0 → 0.12.2.0
2024-12-06 21:41 UTC0.12.2.0+538/−437 lines, 44 filesdep ~QuickCheckdep ~basePVP ok
2024-02-16 03:27 UTC0.12.1.0+3398/−1642 lines, 37 filesdep +sybdep ~basePVP: major bump suggested
2023-08-16 01:53 UTC0.12.0.2+16/−2 lines, 3 files
2023-08-05 00:03 UTC0.12.0.1+47/−9 lines, 3 files
2023-07-07 01:45 UTC0.12.0.0+1459/−520 lines, 21 filesdep +data-array-bytePVP ok

showing 5 of 49 versions

bytestring-conversion >=0.2 0.3.1 → 0.3.2
2022-05-15 11:55 UTC0.3.2+19/−21 lines, 5 filesdep ~bytestringdep ~textsetup-changednew-uploaderPVP: major bump suggested
2015-07-07 07:36 UTC0.3.1+31/−8 lines, 6 filesdep +blaze-textual
2014-11-26 22:47 UTC0.3.0+12/−1 lines, 2 files
2014-09-12 20:38 UTC0.2.1+7/−7 lines, 1 filesdep ~attoparsecdep ~bytestringdep ~case-insensitivePVP ok
2014-08-27 20:52 UTC0.2+10/−2 lines, 3 filesdep +case-insensitivePVP ok

showing 5 of 7 versions

case-insensitive >=1.1 1.2.1.0 → 1.2.2.0
2026-11-05 20:14 UTC1.2.2.0+114/−94 lines, 8 filesdep +tastydep +tasty-hunitdep +template-haskelldep −semigroupsdep −test-frameworkdep −test-framework-hunitdep ~basedep ~bytestringdep ~deepseqnew-uploaderPVP ok
2019-05-05 04:35 UTC1.2.1.0+12/−1 lines, 4 filesnew-uploaderPVP: major bump suggested
2018-03-14 20:12 UTC1.2.0.11+21/−17 lines, 2 filesdep ~HUnitdep ~basedep ~bytestringPVP: major bump suggested
2017-05-27 14:27 UTC1.2.0.10+7/−2 lines, 2 filesdep ~HUnitdep ~basedep ~criterionPVP ok
2017-04-22 13:43 UTC1.2.0.9+9/−4 lines, 2 filesdep ~basePVP ok

showing 5 of 32 versions

containers >=0 0.8 → 0.8.1
2026-10-04 06:08 UTC0.8.1+8085/−5169 lines, 39 filesdep +template-haskell-liftdep ~arraydep ~deepseqPVP: major bump suggested
2025-03-01 13:03 UTC0.8+8447/−7031 lines, 37 filesnew-uploaderPVP ok
2023-09-27 12:15 UTC0.7+76/−33 lines, 3 filesPVP ok
2023-09-28 04:21 UTC0.6.8+644/−184 lines, 17 filesdep ~basedep ~deepseqPVP: major bump suggested
2023-02-01 03:11 UTC0.6.7+783/−229 lines, 20 filesPVP: major bump suggested

showing 5 of 43 versions

cookie >=0.4 0.5.0 → 0.5.1
2025-03-31 12:31 UTC0.5.1+56/−33 lines, 6 filessetup-changedPVP: major bump suggested
2024-03-04 08:52 UTC0.5.0+36/−3 lines, 4 filesPVP ok
2023-01-04 11:24 UTC0.4.6+24/−3 lines, 3 filesPVP ok
2019-11-10 15:02 UTC0.4.5+18/−3 lines, 4 filesPVP ok
2018-03-11 06:08 UTC0.4.4+57/−55 lines, 4 filesdep −blaze-builderdep −old-localedep ~bytestringdep ~textdep ~timePVP ok

showing 5 of 24 versions

criterion >=1.0.0.2 1.6.4.1 → 1.6.5.0
2026-04-02 13:34 UTC1.6.5.0+7650/−7639 lines, 41 filesdep −parsecdep −timedep −vector-algorithmsdep ~aesondep ~deepseqsetup-changedPVP ok
2025-09-06 22:52 UTC1.6.4.1+7639/−4696 lines, 42 filesdep ~base-compat-batteriessetup-changedbinary-addedPVP: major bump suggested
2024-10-27 00:12 UTC1.6.4.0+64/−143 lines, 15 filesdep −faildep −ghc-primdep −semigroupsdep ~aesondep ~basedep ~binaryPVP: major bump suggested
2023-08-08 11:17 UTC1.6.3.0+13/−7 lines, 3 filesdep ~base-compat-batteriesPVP ok
2023-05-23 23:07 UTC1.6.2.0+18/−62 lines, 4 filesdep +prettyprinterdep +prettyprinter-ansi-terminaldep ~aesondep ~optparse-applicativePVP ok

showing 5 of 70 versions

http-types >=0.8 0.12.5 → 0.12.6
2026-08-13 12:48 UTC0.12.6+21/−14 lines, 3 filesdep −arrayPVP ok
2026-05-31 21:06 UTC0.12.5+843/−207 lines, 20 filesdep +filepathdep +hspec-goldendep ~arraydep ~basedep ~bytestringPVP: major bump suggested
2023-11-30 02:34 UTC0.12.4+1704/−748 lines, 10 filesnew-uploaderPVP: major bump suggested
2019-02-24 11:33 UTC0.12.3+7/−6 lines, 3 filesPVP: major bump suggested
2018-09-26 20:04 UTC0.12.2+37/−19 lines, 4 filesPVP ok

showing 5 of 48 versions

tasty >=0.8 1.5.4 → 1.5.5
2026-10-20 23:13 UTC1.5.5+53/−26 lines, 7 filesdep +terminal-sizePVP ok
2026-03-25 20:04 UTC1.5.4+332/−166 lines, 22 filesdep −semigroupsPVP ok
2025-01-05 19:52 UTC1.5.3+36/−11 lines, 3 filesdep ~containersdep ~optparse-applicativePVP: major bump suggested
2024-11-03 00:34 UTC1.5.2+22/−5 lines, 4 filesdep ~basePVP ok
2024-06-22 10:14 UTC1.5.1+131/−63 lines, 10 filesdep ~basePVP: major bump suggested

showing 5 of 76 versions

tasty-hunit >=0.9 0.10.1 → 0.10.2
2024-06-22 10:14 UTC0.10.2+15/−7 lines, 4 filesPVP ok
2023-09-10 00:12 UTC0.10.1+30/−52 lines, 5 filesdep ~basedep ~call-stackdep ~tastynew-uploaderPVP ok
2020-12-18 09:42 UTC0.10.0.3+55/−10 lines, 4 filesdep ~basePVP ok
2019-05-15 05:50 UTC0.10.0.2+38/−8 lines, 3 filesdep ~tastyPVP: major bump suggested
2017-12-01 19:24 UTC0.10.0.1+51/−29 lines, 4 filesPVP: major bump suggested

showing 5 of 15 versions

tasty-quickcheck >=0.8 0.11 → 0.11.1
2025-01-05 19:53 UTC0.11.1+66/−33 lines, 4 filesdep +regex-tdfadep −pcre-lightdep ~QuickCheckdep ~basedep ~optparse-applicativePVP: major bump suggested
2024-06-22 10:14 UTC0.11+132/−49 lines, 4 filesdep ~QuickCheckPVP ok
2023-09-10 00:10 UTC0.10.3+52/−14 lines, 3 filesdep ~QuickCheckdep ~optparse-applicativedep ~randomnew-uploaderPVP ok
2021-11-20 19:17 UTC0.10.2+21/−13 lines, 3 filesdep ~basePVP: major bump suggested
2020-12-18 09:42 UTC0.10.1.2+27/−13 lines, 4 filesdep ~basePVP: major bump suggested

showing 5 of 23 versions

transformers >=0.3 0.6.2.0 → 0.6.3.0
2026-01-12 12:42 UTC0.6.3.0+28/−1 lines, 4 filesPVP: major bump suggested
2025-04-06 22:39 UTC0.6.2.0+41/−42 lines, 8 filesdep ~ghc-primPVP: major bump suggested
2024-09-25 11:37 UTC0.6.1.2+70/−21 lines, 19 filesPVP: minor bump suggested
2023-08-01 19:13 UTC0.6.1.1+281/−42 lines, 11 filesPVP ok
2023-02-04 08:15 UTC0.6.1.0+64/−4 lines, 8 filesPVP ok

showing 5 of 42 versions

wai >=3.0 3.2.4 → 3.2.5
2026-08-07 11:51 UTC3.2.5+319/−274 lines, 5 filesnew-uploaderPVP: major bump suggested
2023-12-10 10:13 UTC3.2.4+241/−63 lines, 5 filesdep ~basePVP ok
2021-01-18 14:44 UTC3.2.3+82/−5 lines, 3 filesdep −transformersdep ~basePVP ok
2019-06-20 10:43 UTC3.2.2.1+8/−3 lines, 3 filesPVP: minor bump suggested
2019-01-22 07:38 UTC3.2.2+23/−8 lines, 4 filesPVP: major bump suggested

showing 5 of 56 versions

wai-predicates >=0.8 0.10.0 → 1.0.0
2020-10-31 13:29 UTC1.0.0+15/−1 lines, 3 filesPVP ok
2017-08-06 17:12 UTC0.10.0+23/−4 lines, 3 filesdep +textdep ~singletonsPVP ok
2016-08-01 22:04 UTC0.9.0+138/−509 lines, 18 filesdep ~attoparsecdep ~basedep ~bytestring
2016-02-13 12:46 UTC0.8.6+13/−9 lines, 4 files
2015-09-17 22:11 UTC0.8.5+397/−383 lines, 9 filesdep ~singletons

showing 5 of 20 versions

wai-route >=0.3 0.4.0 → 1.0.0
2018-11-24 15:54 UTC1.0.0+1095/−310 lines, 11 filesdep +containersdep +deepseqdep +doctestdep ~basedep ~unordered-containersPVP ok
2018-06-15 11:35 UTC0.4.0+131/−74 lines, 4 filesdep ~basePVP ok
2017-08-01 15:22 UTC0.3.1.2+11/−7 lines, 3 filesdep ~QuickCheckdep ~tastydep ~tasty-quickcheckPVP ok
2016-08-24 19:01 UTC0.3.1.1+2/−2 lines, 1 filesPVP ok
2016-01-02 11:13 UTC0.3.1+4/−5 lines, 2 filesdep ~waiPVP: major bump suggested

showing 5 of 10 versions

Reverse dependencies

1 packages depend on wai-routing

acme-everything 2018.11.18 requires wai-routing >=0