No description, website, or topics provided.
Haskell Nix
Switch branches/tags
Clone or download
ElvishJerricco Merge pull request #15 from roberth/fix-consume-entire-path
Only route pages when the full request path is consumed
Latest commit df76c3e Jun 18, 2018
Permalink
Failed to load latest commit information.
examples
servant-router Only route pages when the full request path is consumed Jun 18, 2018
.gitignore New build system - WIP: Updating dependencies Mar 12, 2017
README.md
callHackageFix.nix Document Nix stuff a little bit. Mar 12, 2017
default.nix Document Nix stuff a little bit. Mar 12, 2017
reflex-platform.nix New build system - WIP: Updating dependencies Mar 12, 2017

README.md

servant-router

servant-router routes a URI given a Servant API and an appropriate handler. In web applications, this is used to make single page applications (SPAs) with front-end routing, letting you share portions of your Servant APIs between the client and server.

servant-router does not depend on reflex or any GHCJS packages. It's intended to be a general purpose URI router on any platform. Combined with reflex-dom, servant-reflex, and reflex-dom-contrib, this makes for a very satisfactory front-end Haskell experience.

You can see examples of using servant-router on both the frontend and the backend in the examples directory.