On Fri, Mar 19, 2010 at 4:42 PM, Jeremy Shaw <jeremy@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..