-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A very simple Wai router -- @package waitra @version 0.0.1.0 -- | Network.Waitra is a very simple router. It's useful for -- writing simple API web-services, when you don't want to use the whole -- Yesod stack. module Network.Waitra -- | We use strings, as - unluckily - Applicative doesn't work with -- Text directly. type Path = String data Route Route :: Method -> RE Char a -> (a -> Application) -> Route simpleRoute :: Method -> Path -> Application -> Route simpleGet :: Path -> Application -> Route simplePost :: Path -> Application -> Route simplePut :: Path -> Application -> Route simpleDelete :: Path -> Application -> Route routeGet :: RE Char a -> (a -> Application) -> Route routePost :: RE Char a -> (a -> Application) -> Route routePut :: RE Char a -> (a -> Application) -> Route routeDelete :: RE Char a -> (a -> Application) -> Route -- | Turn the list of routes into Middleware compile :: [Route] -> Middleware compileRoute :: Route -> Middleware