-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Applies some basic redirect rules to get cleaner paths. -- -- Forces request to have a trailing slash (unless there is a file -- extension) and ensures there are no doubled slashes. Takes the idea -- from Django. @package hack-middleware-cleanpath @version 0.0.0 module Hack.Middleware.CleanPath -- | Performs redirects as per splitPath. cleanPath :: Middleware -- | Given a certain requested path, return either a corrected path to -- redirect to or the tokenized path. -- -- This code corrects for the following issues: -- -- splitPath :: String -> Either String [String]