@hackage happstack-static-routing0.3.1
Support for static URL routing with overlap detection for Happstack.
Categories
License
BSD-3-Clause
Maintainer
magnus@scrive.com
Links
Versions
Installation
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
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.