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]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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, 0.6.0.0, 0.7.0.0 (info)
Dependencies base (>=4.7 && <4.11), 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>
Revised Revision 1 made by HerbertValerioRiedel at 2019-05-20T21:01:16Z
Category Web
Home page http://github.com/agrafix/Spock
Source repo head: git clone git://github.com/agrafix/Spock.git
Uploaded by AlexanderThiemann at 2017-02-03T20:58:51Z
Distributions LTSHaskell:0.7.0.0, NixOS:0.7.0.0, Stackage:0.7.0.0
Reverse Dependencies 6 direct, 11 indirect [details]
Downloads 16114 total (68 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-02-03 [all 1 reports]

Readme for reroute-0.4.1.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