[web-devel] WAI routing?

Stephen Paul Weber singpolyma at singpolyma.net
Sat Mar 17 04:06:43 CET 2012


I looked around, but could not find a lot of routing packages for WAI.  
There is wai-routes, but QuasiQuote makes me nervous.

So, I hacked together a very simple router (attached).  It works, though it 
is not efficient for large routing tables (it just does a linear scan over 
all possible routes in the worst case).

I'm curious: (a) what are other people using? (b) are there glaringly stupid 
things I've done in my code?

Thanks :)

-- 
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Route.hs
Type: text/x-haskell
Size: 936 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20120316/f55141f5/attachment.hs>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20120316/f55141f5/attachment.pgp>


More information about the web-devel mailing list