-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhubbub.cabal
207 lines (191 loc) · 6.87 KB
/
hubbub.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
name: hubbub
version: 0.1.0.0
synopsis: Hub implementation of the PubSubHubbub spec ( https://code.google.com/p/pubsubhubbub/ )
description: The intent of this server is to allow low latency subscription
to HTTP resources. The idea is that the publisher adds a
hyperlink to their resource (in the response header, meta tags
etc) to a PubSubHubbub server. The subscriber can then
register a url to call back to when subscribed resource
that should be quicker and more scalable than each subscriber
polling for changes.
homepage: http://github.com/benkolera/haskell-hubbub
license: MIT
license-file: LICENSE
author: Ben Kolera
maintainer: ben.kolera@gmail.com
category: Unknown
build-type: Simple
cabal-version: >=1.10
Flag testing
Default: False
Description: Set this to true if we don't want to build the lib and exe
to speed up testing (don't want to build the lib twice).
Flag mocks
Default: False
Description: Set this to true if you want to build the mock subscriber and
publisher binaries.
executable hubbub
if !flag(testing)
Buildable: True
else
Buildable: False
main-is: Main.hs
build-depends: base ==4.6.*
, errors
, http-types
, hubbub
, resourcet
, scotty
, text
, transformers
, wai-extra
ghc-options: -Wall -Werror
default-language: Haskell2010
default-extensions: OverloadedStrings
NoImplicitPrelude
executable hubbub-mock-publisher
if flag(mocks)
Buildable: True
else
Buildable: False
main-is: Publisher.hs
build-depends: base ==4.6.*
, acid-state
, aeson
, blaze-html
, http-conduit
, http-types
, mtl
, scotty
, text
, transformers
, safecopy
, wai-middleware-static
, wai-extra
ghc-options: -Wall -Werror
default-language: Haskell2010
default-extensions: OverloadedStrings
NoImplicitPrelude
executable hubbub-mock-subscriber
if flag(mocks)
Buildable: True
else
Buildable: False
main-is: Subscriber.hs
build-depends: base ==4.6.*
, aeson
, bytestring
, containers
, http-conduit
, http-types
, mtl
, random
, scotty
, text
, transformers
, safecopy
, stm
, uuid
, websockets
, wai
, wai-extra
, wai-middleware-static
, wai-websockets
, warp
ghc-options: -Wall -Werror
default-language: Haskell2010
default-extensions: OverloadedStrings
NoImplicitPrelude
library
if !flag(testing)
exposed-modules: Network.Hubbub
else
exposed-modules:
other-modules: Network.Hubbub.Hmac
, Network.Hubbub.Http
, Network.Hubbub.Internal
, Network.Hubbub.Queue
, Network.Hubbub.SubscriptionDb
, Network.Hubbub.SubscriptionDb.Acid
, Network.Hubbub.SubscriptionDb.SqLite
build-depends: base == 4.*
, acid-state
, aeson
, base
, bytestring
, bytedump
, case-insensitive
, conduit
, containers
, Crypto
, datetime
, data-default
, either
, errors
, failure
, http-conduit
, http-types
, mtl
, random
, safe
, safecopy
, sqlite-simple
, stm
, temporary
, text
, time
, transformers
, utf8-string
, url
ghc-options: -rtsopts
-Wall
-O2
-Werror
hs-source-dirs: src
default-extensions: OverloadedStrings
NoImplicitPrelude
default-language: Haskell2010
test-suite Tests
hs-source-dirs: src
test
ghc-options: -rtsopts
-Wall -Werror
-O2
main-is: Test.hs
Type: exitcode-stdio-1.0
default-extensions: OverloadedStrings
NoImplicitPrelude
default-language: Haskell2010
build-depends: base == 4.*
, acid-state
, aeson
, bytestring
, bytedump
, case-insensitive
, conduit
, containers
, Crypto
, datetime
, data-default
, either
, errors
, failure
, http-conduit
, http-types
, mtl
, random
, safe
, safecopy
, scotty
, sqlite-simple
, stm
, temporary
, text
, time
, transformers
, url
, utf8-string
, HUnit
, tasty
, tasty-hunit
, wai-extra