forked from snapframework/snap
/
snap.cabal
222 lines (204 loc) · 7.58 KB
/
snap.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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
name: snap
version: 0.8.0.3
synopsis: Snap: A Haskell Web Framework: project starter executable and glue code library
description: Snap Framework project starter executable and glue code library
license: BSD3
license-file: LICENSE
author: Ozgun Ataman, Doug Beardsley, Gregory Collins, Carl Howells, Chris Smith
maintainer: snap@snapframework.com
build-type: Simple
cabal-version: >= 1.8
homepage: http://snapframework.com/
category: Web, Snap
extra-source-files:
CONTRIBUTORS,
LICENSE,
README.md,
README.SNAP.md,
project_template/barebones/.ghci,
project_template/barebones/foo.cabal,
project_template/barebones/log/access.log,
project_template/barebones/src/Main.hs,
project_template/default/.ghci,
project_template/default/foo.cabal,
project_template/default/log/access.log,
project_template/default/log/error.log,
project_template/default/static/screen.css,
project_template/default/snaplets/heist/templates/echo.tpl,
project_template/default/snaplets/heist/templates/index.tpl,
project_template/default/src/Application.hs,
project_template/default/src/Main.hs,
project_template/default/src/Site.hs,
project_template/tutorial/.ghci,
project_template/tutorial/foo.cabal,
project_template/tutorial/log/placeholder,
project_template/tutorial/src/Part2.lhs,
project_template/tutorial/src/Tutorial.lhs,
extra/hscolour.css,
extra/haddock.css,
extra/logo.gif,
test/snap-testsuite.cabal,
test/runTestsAndCoverage.sh,
test/suite/TestSuite.hs,
test/suite/NestTest.hs,
test/suite/Snap/TestCommon.hs,
test/suite/Snap/Snaplet/Internal/Lensed/Tests.hs,
test/suite/Snap/Snaplet/Internal/RST/Tests.hs,
test/suite/Snap/Snaplet/Internal/Tests.hs,
test/suite/Snap/Snaplet/Internal/LensT/Tests.hs,
test/suite/Blackbox/Types.hs,
test/suite/Blackbox/FooSnaplet.hs,
test/suite/Blackbox/BarSnaplet.hs,
test/suite/Blackbox/Common.hs,
test/suite/Blackbox/EmbeddedSnaplet.hs,
test/suite/Blackbox/Tests.hs,
test/suite/Blackbox/App.hs,
test/suite/SafeCWD.hs,
test/suite/AppMain.hs,
test/non-cabal-appdir/db.cfg,
test/non-cabal-appdir/bad.tpl,
test/non-cabal-appdir/snaplets/baz/templates/bazpage.tpl,
test/non-cabal-appdir/snaplets/baz/templates/bazconfig.tpl,
test/non-cabal-appdir/snaplets/baz/snaplet.cfg,
test/non-cabal-appdir/snaplets/embedded/extra-templates/extra.tpl,
test/non-cabal-appdir/snaplets/embedded/snaplets/heist/templates/embeddedpage.tpl,
test/non-cabal-appdir/snaplets/heist/templates/index.tpl,
test/non-cabal-appdir/snaplets/heist/templates/session.tpl,
test/non-cabal-appdir/snaplets/heist/templates/splicepage.tpl,
test/non-cabal-appdir/snaplets/heist/templates/page.tpl,
test/non-cabal-appdir/good.tpl,
test/non-cabal-appdir/log/placeholder,
test/non-cabal-appdir/snaplet.cfg,
test/foosnaplet/templates/foopage.tpl,
test/foosnaplet/snaplet.cfg
Flag hint
Description: Support dynamic project reloading via hint
Default: True
Library
hs-source-dirs: src
exposed-modules:
Snap,
Snap.Loader.Prod,
Snap.Loader.Devel,
Snap.Snaplet,
Snap.Snaplet.Heist,
Snap.Snaplet.Auth,
Snap.Snaplet.Auth.Backends.JsonFile,
Snap.Snaplet.Session,
Snap.Snaplet.Session.Common,
Snap.Snaplet.Session.Backends.CookieSession
other-modules:
Control.Access.RoleBased.Checker,
Control.Access.RoleBased.Role,
Control.Access.RoleBased.Types,
Control.Access.RoleBased.Internal.Role,
Control.Access.RoleBased.Internal.RoleMap,
Control.Access.RoleBased.Internal.Rule,
Control.Access.RoleBased.Internal.Types,
Snap.Snaplet.Auth.AuthManager,
Snap.Snaplet.Auth.Types,
Snap.Snaplet.Auth.Handlers,
Snap.Snaplet.Auth.SpliceHelpers,
Snap.Snaplet.HeistNoClass,
Snap.Snaplet.Internal.Initializer,
Snap.Snaplet.Internal.LensT,
Snap.Snaplet.Internal.Lensed,
Snap.Snaplet.Internal.RST,
Snap.Snaplet.Internal.Types
Snap.Snaplet.Session.SecureCookie,
Snap.Snaplet.Session.SessionManager
if flag(hint)
other-modules:
Snap.Loader.Devel.Evaluator,
Snap.Loader.Devel.Signal,
Snap.Loader.Devel.TreeWatcher
cpp-options: -DHINT_ENABLED
build-depends:
hint >= 0.3.3.1 && < 0.4,
old-time >= 1.0 && < 1.2
if !os(windows)
build-depends:
unix >= 2.2.0.0 && < 2.6
build-depends:
MonadCatchIO-transformers >= 0.2 && < 0.3,
aeson >= 0.6 && < 0.7,
attoparsec >= 0.10 && < 0.11,
base >= 4 && < 5,
bytestring >= 0.9.1 && < 0.10,
cereal >= 0.3 && < 0.4,
clientsession >= 0.7.3.6 && <0.8,
configurator >= 0.1 && < 0.3,
containers >= 0.3 && < 0.5,
directory >= 1.0 && < 1.2,
directory-tree >= 0.10 && < 0.11,
data-lens >= 2.0.1 && < 2.1,
data-lens-template >= 2.1 && < 2.2,
filepath >= 1.1 && < 1.4,
hashable >= 1.1 && < 1.2,
heist >= 0.7 && < 0.9,
logict >= 0.4.2 && < 0.6,
mtl > 2.0 && < 2.1,
mwc-random >= 0.8 && < 0.13,
pwstore-fast >= 2.2 && < 2.3,
snap-core >= 0.8 && < 0.9,
snap-server >= 0.8 && < 0.9,
stm >= 2.2 && < 2.4,
syb >= 0.1 && < 0.4,
template-haskell >= 2.2 && < 2.8,
text >= 0.11 && < 0.12,
time >= 1.1 && < 1.5,
transformers >= 0.2 && < 0.3,
unordered-containers >= 0.1.4 && < 0.3,
utf8-string >= 0.3 && < 0.4,
vector >= 0.7.1 && < 0.10,
vector-algorithms >= 0.4 && < 0.6,
xmlhtml >= 0.1 && < 0.2
extensions:
BangPatterns,
CPP,
DeriveDataTypeable,
ExistentialQuantification,
FlexibleContexts,
FlexibleInstances,
GeneralizedNewtypeDeriving,
MultiParamTypeClasses,
NoMonomorphismRestriction,
OverloadedStrings,
PackageImports,
Rank2Types,
ScopedTypeVariables,
TemplateHaskell,
TypeFamilies,
TypeOperators,
TypeSynonymInstances
if impl(ghc >= 6.12.0)
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
-fno-warn-orphans -fno-warn-unused-do-bind
else
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
-fno-warn-orphans
Executable snap
hs-source-dirs: src
main-is: Snap/Starter.hs
other-modules: Snap.StarterTH
build-depends:
base >= 4 && < 5,
bytestring >= 0.9.1 && < 0.10,
containers >= 0.3 && < 0.5,
directory >= 1.0 && < 1.2,
directory-tree >= 0.10 && < 0.11,
filepath >= 1.1 && < 1.4,
old-time >= 1.0 && < 1.2,
snap-server >= 0.8 && < 0.9,
template-haskell >= 2.2 && < 2.8,
text >= 0.11 && < 0.12
ghc-prof-options: -prof -auto-all
if impl(ghc >= 6.12.0)
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
-fno-warn-orphans -fno-warn-unused-do-bind
else
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
-fno-warn-orphans
source-repository head
type: git
location: https://github.com/snapframework/snap.git