waitra-0.0.3.0: waitra.cabal
name: waitra
version: 0.0.3.0
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 <oleg.grenrus@iki.fi>
maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
copyright: (c) 2015 Futurice
category: Web
build-type: Simple
extra-source-files: README.md
cabal-version: >=1.10
library
exposed-modules: Network.Waitra,
Network.Waitra.Embedded
build-depends: base >=4.6 && <4.9,
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.9,
aeson,
http-types,
regex-applicative,
tasty,
tasty-hunit,
wai,
wai-extra >= 3.0.4.5,
waitra
hs-source-dirs: test
ghc-options: -Wall
default-language: Haskell2010
source-repository head
type: git
location: git://github.com/futurice/waitra.git