reroute

abstract implementation of typed and untyped web routing

http://github.com/agrafix/reroute

Version on this page:0.3.0.2
LTS Haskell 22.20:0.7.0.0
Stackage Nightly 2024-05-04:0.7.0.0
Latest on Hackage:0.7.0.0

See all snapshots reroute appears in

Maintained by Alexander Thiemann
This version can be pinned in stack with:reroute-0.3.0.2@sha256:8282b348a3b3fa194c19ea9488dcd12b2aebe08b922c38841744ccc80d0b3ee1,2646

Module documentation for 0.3.0.2

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/reroute.git && cd reroute && cabal install