The nested-routes package

[ Tags: bsd3, library, web ] [ Propose Tags ]

A method to writing Wai responses

This library attempts to make it easier to write nice Wai response handlers by giving us a Sinatra/ Scotty-like syntax for declaring HTTP-verb oriented routes, in addition to file-extension handling and rose-tree like composition. Not only do we have literal route specification, like Scotty & Spock, but we can also embed Attoparsec parsers and Regular Expressions directly in our routes, with our handlers reflecting their results.

Properties

Versions 0.0.1, 0.0.1.1, 0.0.2, 0.0.3.1, 0.1, 0.1.1, 0.2, 0.2.0.1, 0.2.0.2, 0.2.1, 0.2.2, 0.2.2.1, 0.2.2.2, 0.3, 0.3.1, 0.3.2, 0.3.2.1, 1.0, 1.0.0.1, 2.0.0, 2.0.1, 2.1.0, 2.2.0, 3.0.0, 3.0.0.1, 3.0.0.2, 3.1.0, 3.2.0, 4.0.0, 5.0.0, 6.0.0, 6.0.0.1, 6.1.0, 7.0.0, 7.1.0, 7.1.0.1, 7.1.1, 7.2.0, 7.2.1, 7.2.2, 8.0.0, 8.0.1 (info)
Dependencies attoparsec, base (>=4.8 && <5), bifunctors, bytestring, composition-extra, errors, exceptions, extractable-singleton, hashable, hashtables, HSet, http-types, monad-control-aligned, mtl, nested-routes (>=7), poly-arity (>=0.0.7), pred-set (>=0.0.1), pred-trie (>=0.5.1), regex-compat, semigroups, text, transformers, tries, unordered-containers, wai-middleware-content-type (>=0.5.0.1), wai-middleware-verbs (>=0.3.1), wai-transformers (>=0.0.7), warp [details]
License BSD3
Author Athan Clark <athan.clark@gmail.com>
Maintainer Athan Clark <athan.clark@gmail.com>
Category Web
Source repository head: git clone https://github.com/athanclark/nested-routes.git
Uploaded Sat Sep 2 23:18:10 UTC 2017 by athanclark
Distributions NixOS:8.0.1
Executables example
Downloads 3627 total (63 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-09-02 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Flags

NameDescriptionDefaultType
example

Build the trivial example.

DisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees