-
Notifications
You must be signed in to change notification settings - Fork 2
/
token-limiter.cabal
80 lines (72 loc) · 2.27 KB
/
token-limiter.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
cabal-version: 2.2
name: token-limiter
version: 0.2.0.3
synopsis: Fast rate limiting using the token bucket algorithm (BSD)
description: Fast rate limiting using the token bucket algorithm. BSD-licensed.
license: BSD-2-Clause
license-file: LICENSE
author: Gregory Collins
maintainer: [email protected]
copyright: Copyright (C) 2019 Kadena LLC
category: Concurrency
extra-source-files: CHANGELOG.md
homepage: https://github.com/gregorycollins/token-limiter
bug-reports: https://github.com/gregorycollins/token-limiter/issues
source-repository head
type: git
location: https://github.com/gregorycollins/token-limiter.git
common warning-flags
ghc-options:
-Wall
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
library
import: warning-flags
build-depends: base >= 4.10 && <4.14,
clock >= 0.7,
ghc-prim
-- Directories containing source files.
hs-source-dirs: src
-- Base language which the package is written in.
default-language: Haskell2010
exposed-modules: Control.Concurrent.TokenLimiter
test-suite token-limiter-tests
import: warning-flags
ghc-options:
-threaded
-with-rtsopts=-N
-with-rtsopts=-A32M
-rtsopts
main-is: Main.hs
hs-source-dirs: test
type: exitcode-stdio-1.0
default-language: Haskell2010
build-depends:
QuickCheck >= 2.10,
async,
base,
clock,
tasty >= 1.0,
tasty-hunit >= 0.9,
text,
token-limiter
executable token-limiter-extended-tests
import: warning-flags
ghc-options:
-threaded
-with-rtsopts=-N
-with-rtsopts=-A32M
-rtsopts
main-is: ExtendedMain.hs
hs-source-dirs: test
default-language: Haskell2010
build-depends:
QuickCheck >= 2.10,
async,
base,
clock,
tasty >= 1.0,
tasty-hunit >= 0.9,
text,
token-limiter