cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.4.
--
-- see: https://github.com/sol/hpack
name: servant-rate-limit
version: 0.2.0.0
synopsis: Rate limiting for Servant
description: A Haskell library which implements rate limiting for Servant
category: Security
homepage: https://github.com/mbg/wai-rate-limit#readme
bug-reports: https://github.com/mbg/wai-rate-limit/issues
author: Michael B. Gale
maintainer: github@michael-gale.co.uk
copyright: Copyright (c) Michael B. Gale
license: MIT
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
CHANGELOG.md
source-repository head
type: git
location: https://github.com/mbg/wai-rate-limit
flag client
description: Enable servant-client support.
manual: True
default: True
flag server
description: Enable servant-server support.
manual: True
default: True
library
exposed-modules:
Servant.RateLimit
Servant.RateLimit.Types
other-modules:
Paths_servant_rate_limit
hs-source-dirs:
src
default-extensions:
DataKinds
FlexibleContexts
FlexibleInstances
MultiParamTypeClasses
OverloadedStrings
RecordWildCards
TypeApplications
TypeFamilies
TypeOperators
ghc-options: -Wall
build-depends:
base >=4.8 && <5
, bytestring
, http-types <1
, servant
, time-units >=1.0 && <2
, time-units-types >=0.2 && <1
, wai >=3.0 && <4
, wai-rate-limit >=0.3 && <1
if flag(server)
build-depends:
servant-server
if flag(client)
build-depends:
servant-client
if flag(server)
exposed-modules:
Servant.RateLimit.Server
if flag(client)
exposed-modules:
Servant.RateLimit.Client
default-language: Haskell2010
test-suite servant-rate-limit-tests
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Paths_servant_rate_limit
hs-source-dirs:
test
default-extensions:
DataKinds
FlexibleContexts
FlexibleInstances
MultiParamTypeClasses
OverloadedStrings
RecordWildCards
TypeApplications
TypeFamilies
TypeOperators
build-depends:
base >=4.8 && <5
, bytestring
, hedis
, http-client
, http-types <1
, servant
, servant-client
, servant-rate-limit
, servant-server
, tasty
, tasty-hunit
, time-units >=1.0 && <2
, time-units-types >=0.2 && <1
, wai >=3.0 && <4
, wai-extra
, wai-rate-limit >=0.3 && <1
, wai-rate-limit-redis
, warp
if flag(server)
build-depends:
servant-server
if flag(client)
build-depends:
servant-client
default-language: Haskell2010