name: waitra version: 0.0.4.0 x-revision: 2 synopsis: A very simple Wai router description: 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. . > 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") homepage: https://github.com/futurice/waitra license: MIT license-file: LICENSE author: Oleg Grenrus maintainer: Oleg Grenrus copyright: (c) 2015 Futurice category: Web build-type: Simple extra-source-files: README.md, static/index.html, static/favicon.ico cabal-version: >=1.10 flag examples description: Build example executables default: False manual: True library exposed-modules: Network.Waitra, Network.Waitra.Embedded build-depends: base >=4.6 && <4.10, aeson >=0.8.0.2, bytestring >=0.10.4.0, directory >=1.2.1.0, filepath >=1.3.0.2, http-types >=0.8.6, regex-applicative >=0.3.1, template-haskell, text >=1.1.0.0, wai >=3.0.2.3 hs-source-dirs: src ghc-options: -Wall default-language: Haskell2010 test-suite test main-is: Main.hs type: exitcode-stdio-1.0 build-depends: base >= 4.6 && < 4.10, aeson, http-types, tasty, tasty-hunit, wai, wai-extra >= 3.0.4.5, waitra hs-source-dirs: test ghc-options: -Wall default-language: Haskell2010 executable waitra-example if !flag(examples) buildable: False main-is: Example.hs ghc-options: -Wall hs-source-dirs: examples/ default-language: Haskell2010 build-depends: base, aeson, warp, wai, wai-app-static >= 3.0, waitra, warp source-repository head type: git location: git://github.com/futurice/waitra.git