web-routes-boomerang-0.28.1: Library for maintaining correctness and composability of URLs within an application.

Safe Haskell

None

Web.Routes.Boomerang

Description

web-routes-boomerang makes it easy to use write custom
pretty-printers and parsers for your URL types. Instead of writing a
parser and a separate pretty-printer you can specify both at once by
using the boomerang library:

Normally the case statement would match on the different constructors and map them to different handlers. But in this case we use the same handler for all constructors. Also, instead of running in the IO monad, we would typically use a web framework monad like Happstack's ServerPartT.