-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshoes.cabal
69 lines (63 loc) · 2.15 KB
/
shoes.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
Name: shoes
Version: 0.1
Synopsis: Project Synopsis Here
Description: Project Description Here
License: AllRightsReserved
Author: Author
Maintainer: [email protected]
Stability: Experimental
Category: Web
Build-type: Simple
Cabal-version: >=1.2
Flag production
Description: Whether to build the server in production (interpreted) mode
Default: False
Flag old-base
default: False
manual: False
Executable shoes
hs-source-dirs: src
main-is: Main.hs
Build-depends:
aeson,
attoparsec >= 0.10,
bytestring >= 0.9.1 && < 0.11,
base64-bytestring,
digestive-functors,
digestive-functors-snap,
digestive-functors-heist,
digestive-functors-aeson,
heist >= 0.13 && < 0.14,
MonadCatchIO-transformers >= 0.2.1 && < 0.4,
mtl >= 2 && < 3,
postgresql-simple >= 0.2.4,
safe,
snap >= 0.13 && < 0.14,
snap-core >= 0.9 && < 0.11,
snap-server >= 0.9 && < 0.11,
snap-loader-static >= 0.9 && < 0.10,
snaplet-postgresql-simple,
text >= 0.11 && < 1.2,
time >= 1.1 && < 1.5,
-- vector,
xmlhtml >= 0.1
if flag(old-base)
build-depends:
base >= 4 && < 4.4,
lens >= 3.7.6 && < 3.8
else
build-depends:
base >= 4.4 && < 5,
lens >= 3.7.6 && < 4.1
if !flag(production)
build-depends:
snap-loader-dynamic == 0.10.*
cpp-options: -DDEVELOPMENT
-- In development mode, speed is already going to suffer, so skip
-- the fancy optimization flags. Additionally, disable all
-- warnings. The hint library doesn't give an option to execute
-- compiled code when there were also warnings, so disabling
-- warnings allows quicker workflow.
ghc-options: -threaded -w
else
ghc-options: -threaded -Wall -funbox-strict-fields -O2