reroute

abstract implementation of typed and untyped web routing

http://github.com/agrafix/Spock

Version on this page:0.5.0.0
LTS Haskell 12.26:0.5.0.0
Stackage Nightly 2021-09-18:0.6.0.0
Latest on Hackage:0.6.0.0

See all snapshots reroute appears in

Maintained by Alexander Thiemann
This version can be pinned in stack with:reroute-0.5.0.0@sha256:c115f8d011016986ba905a75562479bf22117e123ed4fc59066773d6633a6f62,2351

Module documentation for 0.5.0.0

reroute

Build Status

Hackage Deps

Intro

Hackage: http://hackage.haskell.org/package/reroute

An abstract implementation of typesafe and untyped routing for web applications. The web framework Spock is implemented with it. The basic idea is you have a registry storing a mapping betwenn abstract routes and actions. Then you define two methods for adding a route and it’s action to the registry and a second method for efficiently matching a provided path to a route and multiple actions.

Install

  • Using cabal: cabal install reroute
  • From Source: git clone https://github.com/agrafix/Spock.git && cd Spock/reroute && cabal install