Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Aug 18, 2012
  1. Need to escape URI components

    authored
    Oops.
  2. Allow generating Routes and/or PathHelpers

    authored
    Basically, make route generation optional.  The primary motivation for
    this is so that path helpers can be placed into a second file that is
    CPP #include into your application, to avoid recursive dependencies at
    least until <http://hackage.haskell.org/trac/ghc/ticket/1409> is solved.
  3. Add optional support for path helpers

    authored
    These are functions named `actionPath` that take all the arguments the
    route takes (so, the arguments of the action, minus the arguments to the
    routes because those are just global).  It generates a `typeRestrict`
    function in the where clause of each path helper that never gets used,
    but which causes the type inference engine to restrict the argument
    types of the path helper to the types of the actual arguments to the
    action.
    
    The helpers return Network.URI.URI, a relative URI with an absolute path
    If your application does not live in the root of your domain, you may
    need to take the path prefix on.  For absolute URIs you can use
    (Network.URI.relativeTo <baseuri> <pathhelper>)
Commits on Aug 11, 2012
  1. hlint clean output

    authored
Commits on Aug 9, 2012
  1. Add the option to pass arguments to routes

    authored
    N arguments can be passed to routes, and each of these arguments is then
    passed to all Application before they are applied to any arguments
    coming from the URI.  This allows IORefs, network connections to
    databases, and other such things from IO to be passed to each action.
  2. usage message

    authored
  3. hlint and warnings clean

    authored
  4. initial commit

    authored
Something went wrong with that request. Please try again.