packages feed

wai-middleware-throttle-0.2.2.1: wai-middleware-throttle.cabal

name:                wai-middleware-throttle
version:             0.2.2.1
license:             BSD3
license-file:        LICENSE
author:              Christopher Reichert
maintainer:          creichert07@gmail.com
copyright:           (c) 2015-2017, Christopher Reichert
category:            Web
build-type:          Simple
cabal-version:       >=1.10
synopsis:            WAI Middleware for Request Throttling
description:
  WAI Middleware for request rate limiting and throttling.
  .
  Designed to be configured in the spirit of the NGinx module.


source-repository head
  type:     git
  location: git://github.com/creichert/wai-middleware-throttle.git


library
  exposed-modules:     Network.Wai.Middleware.Throttle
  ghc-options:         -Wall -fno-warn-unused-do-bind
  default-language:    Haskell2010
  build-depends:       base                  >= 4.6 && < 5.0
                     , bytestring
                     , bytestring-builder
                     , containers
                     , hashable              >= 1.2
                     , http-types
                     , mtl
                     , network               >= 2.1
                     , stm
                     , text
                     , token-bucket          >= 0.1.0.1
                     , transformers
                     , wai                   >= 3.0

  default-extensions: CPP
                      FlexibleContexts
                      OverloadedStrings
                      RecordWildCards

  if impl(ghc < 7.8)
    build-depends:
      blaze-builder < 0.4

test-suite spec
  type:                exitcode-stdio-1.0
  main-is:             Spec.hs
  hs-source-dirs:      test/
  other-modules:       WaiMiddlewareThrottleSpec
  ghc-options:         -Wall -threaded
  default-language:    Haskell2010
  build-depends:       base                     >= 4.6 && < 5.0
                     , bytestring
                     , hspec                    >= 1.3
                     , http-types
                     , HUnit
                     , QuickCheck
                     , stm
                     , transformers
                     , wai
                     , wai-extra
                     , wai-middleware-throttle