reroute: abstract implementation of typed and untyped web routing

[ library, mit, web ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

Downloads

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 && <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]
Tested with ghc ==8.8.4, ghc ==9.2.2
License MIT
Copyright (c) 2014 - 2021 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 BrandonSimmons at 2022-07-20T16:16:37Z
Distributions LTSHaskell:0.7.0.0, NixOS:0.7.0.0, Stackage:0.7.0.0
Reverse Dependencies 6 direct, 11 indirect [details]
Downloads 16608 total (97 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-07-20 [all 1 reports]

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