reroute: abstract implementation of typed and untyped web routing

[ library, mit, web ] [ Propose Tags ]

abstraction over how urls with/without parameters are mapped to their corresponding handlers


[Skip to Readme]
Versions 0.1.0.0, 0.2.0.0, 0.2.0.1, 0.2.1.0, 0.2.2.0, 0.2.2.1, 0.2.3.0, 0.3.0.1, 0.3.0.2, 0.3.1.0, 0.4.0.0, 0.4.0.1, 0.4.1.0, 0.5.0.0 (info)
Dependencies base (>=4.7 && <5), deepseq (>=1.1.0.2), hashable (>=1.2), http-api-data (>=0.2), hvect (>=0.4), mtl (>=2.1), text (>=0.11.3.1), unordered-containers (>=0.2) [details]
License MIT
Copyright (c) 2014 - 2017 Alexander Thiemann <mail@athiemann.net>, Tim Baumann <tim@timbaumann.info>
Author Alexander Thiemann <mail@athiemann.net>, Tim Baumann <tim@timbaumann.info>
Maintainer Alexander Thiemann <mail@athiemann.net>
Category Web
Home page http://github.com/agrafix/Spock
Source repo head: git clone git://github.com/agrafix/Spock.git
Uploaded by AlexanderThiemann at Thu Jun 14 04:46:04 UTC 2018
Distributions LTSHaskell:0.4.1.0, NixOS:0.5.0.0, openSUSE:0.4.1.0
Downloads 5552 total (106 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-06-14 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for reroute-0.5.0.0

[back to package description]

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