@hackage happstack-static-routing0.6.0.0
Support for static URL routing with overlap detection for Happstack.
Categories
License
BSD-3-Clause
Maintainer
Gracjan Polak <gracjanpolak@gmail.com>, Jonathan Jouty <jonathan@scrive.com>, Mikhail Glushenkov <mikhail@scrive.com>
Links
Versions
Installation
Tested Compilers
Dependencies (5)
- base >=4 && <=10
- containers >=0.3
- happstack-server >=6
- list-tries >=0.4
- transformers >=0.2 Show all…
Dependents (1)
@hackage/acme-everything
happstack-static-routing

If you have a large routing table in Happstack and want to insert a new handler, you might run into overlap problems (ambiguity). The new handler might not fire because it matches against a URL that is already handled earlier. Or if you put your new handler first, it might steal requests from existing handlers.
This Happstack support library allows you to detect overlap cases and build unambiguous routing tables where the order of the handlers is irrelevant.