The web-inv-route package

[Tags:bsd3, library, test]

Utilities to route HTTP requests, mainly focused on path components. Routes are specified using bijections and invariant functors, allowing run-time composition (routes can be distributed across modules), reverse and forward routing derived from the same specification, and O(log n) lookups.

There are four steps/components of this package.

1. Route endpoint specification: Web.Route.Invertible.Common

2. Route map construction: Web.Route.Invertible.Common

3. Route map lookup: Web.Route.Invertible (for the generic interface), Web.Route.Invertible.Wai, Web.Route.Invertible.Snap, or Web.Route.Invertible.Happstack

4. Reverse routing: Web.Route.Invertible or Web.Route.Invertible.URI

Most users will just want to import a framework-specific module like Web.Route.Invertible.Wai (or the generic Web.Route.Invertible), each of which re-exports Web.Route.Invertible.Common. See test/Main.hs for some examples.


Versions 0.1, 0.1.1
Dependencies base (>=4.8 && <5), bytestring (>=0.10), case-insensitive, containers (>=0.5), happstack-server (>=7), hashable, http-types (>=0.9), invertible (>0.1), network-uri (>=2.6.1), snap-core (>=0.9), text (>=0.10), transformers, unordered-containers, wai (>=1) [details]
License BSD3
Copyright 2016
Author Dylan Simon
Category Web
Source repository head: git clone
Uploaded Tue Dec 20 01:22:34 UTC 2016 by DylanSimon
Distributions NixOS:0.1.1
Downloads 148 total (14 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2016-12-20 [all 1 reports]
Hackage Matrix CI




uriSupport constructing URIs from routesEnabledAutomatic
waiProvide WAI-compatible interfacesEnabledAutomatic
snapProvide Snap-compatible interfacesEnabledAutomatic
happstackProvide Happstack-compatible interfacesEnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees