MIT licensed and maintained by Oleg Grenrus

Module documentation for

This version can be pinned in stack with:[email protected]:7b2f9d4fe0358eb303c3993233b05c1505f4021ebee41fccfad0b6badbf8bd8f,2897


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.

Build Status


echoRoute :: Route
echoRoute = routeGet (echoApp <$ string "/api/echo/" <*> many anySym)
  where echoApp msg _req respond = respond $ responseLBS status200 [] (fromString msg)

app :: Application
app = waitraMiddleware [echoRoute] $ staticApp $ embeddedSettings $(mkRecursiveEmbedded "static")


Documentation is available at hackage.