web-routes-happstack-0.22.2: Adds support for using web-routes with Happstack

Web.Routes.Happstack

Synopsis

Documentation

implSiteSource

Arguments

:: (Functor m, Monad m, MonadPlus m, ServerMonad m) 
=> String 
-> FilePath 
-> Site url (m a)

the Site

-> m a 

convert a Site to a normal Happstack route

calls mzero if the route can be decoded.

see also: implSite_

implSite_Source

Arguments

:: (Functor m, Monad m, MonadPlus m, ServerMonad m) 
=> String 
-> FilePath 
-> Site url (m a)

the Site

-> m (Either String a) 

convert a Site to a normal Happstack route

If url decoding fails, it returns Left the parse error, otherwise Right a.

see also: implSite

seeOtherURL :: (ShowURL m, FilterMonad Response m) => URL m -> m ResponseSource

similar to seeOther but takes a URL m as an argument