[web-devel] Type-safe URL handling

Jeremy Shaw jeremy at n-heptane.com
Fri Mar 19 17:43:20 EDT 2010

On Fri, Mar 19, 2010 at 4:42 PM, Jeremy Shaw <jeremy at n-heptane.com> wrote:

> Right. I already have a similar datatype in URLT.HandleT. My type also
> includes a 'defaultPage' type which can be used to specify what value "/"
> should be mapped to. Though, in mine, the dispatch / handleLink function is
> based on URLT, but that can probably be generalized. As a bonus you also get
> a Functor instance, and a runSite function that uses the type..
Actually, you already supply handleWebPlug, so the only real bonus is the
Functor instance.. which is only there because it is based on URLT.

- jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/web-devel/attachments/20100319/16d4a653/attachment.html

More information about the web-devel mailing list