[web-devel] Type-safe URL handling
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the web-devel