This repository has been archived by the owner on Apr 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
carma-mobile-server.cabal
68 lines (64 loc) · 2.66 KB
/
carma-mobile-server.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
Name: carma-mobile-server
Version: 0.2.5
Synopsis: Outer world interface for CaRMa
Description: Standalone application to handle requests from mobile
partners and clients, using CaRMa HTTP API.
License: AllRightsReserved
Author: Formal Methods
Maintainer: [email protected]
Stability: Experimental
Category: Web
Build-type: Simple
Cabal-version: >=1.2
Tested-with: GHC == 7.8.3
Flag development
Description: Whether to build the server in development (interpreted) mode
Default: False
Executable carma-mobile-server
hs-source-dirs: src
main-is: Main.hs
Build-depends:
aeson >= 0.7 && < 0.10,
attoparsec >= 0.11 && < 0.13,
scientific == 0.3.*,
base >= 4 && < 5,
bytestring >= 0.9.1 && < 0.11,
carma-dict == 0.1.*,
carma-http >= 0.5 && < 0.6,
carma-models >= 0.31 && < 0.36,
configurator == 0.2.*,
lens >= 3.8 && < 4.10,
HTTP == 4000.2.*,
MonadCatchIO-transformers >= 0.2.1 && < 0.4,
mtl >= 2 && < 3,
network >= 2.4 && < 2.7,
old-locale == 1.0.*,
postgresql-simple == 0.4.*,
snap == 0.13.*,
snap-core >= 0.9.2 && <0.10,
snap-server >= 0.9.2 && <0.10,
snap-loader-static == 0.9.*,
snaplet-postgresql-simple >= 0.3 && < 0.7,
text >= 0.11 && < 1.3,
time >= 1.1 && < 1.5,
unordered-containers == 0.2.*,
vector == 0.10.*
Extensions: OverloadedStrings,
LambdaCase
if flag(development)
build-depends:
snap-loader-dynamic == 0.9.*
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
if impl(ghc >= 6.12.0)
ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields -O2
-fno-warn-orphans -fno-warn-unused-do-bind
else
ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields -O2
-fno-warn-orphans