]> Git — Sourcephile - comptalang.git/blob - web/hcompta-web.cabal
init
[comptalang.git] / web / hcompta-web.cabal
1 name: hcompta-web
2 version: 0.0.0
3 cabal-version: >= 1.8
4 build-type: Simple
5
6 Flag dev
7 Description: Turn on development settings, like auto-reload templates.
8 Default: False
9
10 Flag library-only
11 Description: Build for use with "yesod devel"
12 Default: False
13
14 library
15 hs-source-dirs: ., app
16 exposed-modules: Application
17 Foundation
18 Import
19 Import.NoFoundation
20 Model
21 Settings
22 Settings.StaticFiles
23 Handler.Common
24 Handler.Home
25
26 if flag(dev) || flag(library-only)
27 cpp-options: -DDEVELOPMENT
28 ghc-options: -Wall -fwarn-tabs -O0
29 else
30 ghc-options: -Wall -fwarn-tabs -O2
31
32 extensions: TemplateHaskell
33 QuasiQuotes
34 OverloadedStrings
35 NoImplicitPrelude
36 CPP
37 MultiParamTypeClasses
38 TypeFamilies
39 GADTs
40 GeneralizedNewtypeDeriving
41 FlexibleContexts
42 EmptyDataDecls
43 NoMonomorphismRestriction
44 DeriveDataTypeable
45 ViewPatterns
46 TupleSections
47 RecordWildCards
48
49 build-depends: base >= 4 && < 5
50 , yesod >= 1.4.1 && < 1.5
51 , yesod-core >= 1.4.6 && < 1.5
52 , yesod-auth >= 1.4.0 && < 1.5
53 , yesod-static >= 1.4.0.3 && < 1.5
54 , yesod-form >= 1.4.0 && < 1.5
55 , classy-prelude >= 0.10.2
56 , classy-prelude-conduit >= 0.10.2
57 , classy-prelude-yesod >= 0.10.2
58 , bytestring >= 0.9 && < 0.11
59 , text >= 0.11 && < 2.0
60 , persistent >= 2.0 && < 2.2
61 , persistent-sqlite >= 2.1.1 && < 2.2
62 , persistent-template >= 2.0 && < 2.2
63 , template-haskell
64 , shakespeare >= 2.0 && < 2.1
65 , hjsmin >= 0.1 && < 0.2
66 , monad-control >= 0.3 && < 1.1
67 , wai-extra >= 3.0 && < 3.1
68 , yaml >= 0.8 && < 0.9
69 , http-conduit >= 2.1 && < 2.2
70 , directory >= 1.1 && < 1.3
71 , warp >= 3.0 && < 3.1
72 , data-default
73 , aeson >= 0.6 && < 0.9
74 , conduit >= 1.0 && < 2.0
75 , monad-logger >= 0.3 && < 0.4
76 , fast-logger >= 2.2 && < 2.4
77 , wai-logger >= 2.2 && < 2.3
78 , file-embed
79 , safe
80 , unordered-containers
81 , containers
82 , vector
83 , time
84
85 executable hcompta-web
86 if flag(library-only)
87 Buildable: False
88
89 main-is: main.hs
90 hs-source-dirs: app
91 build-depends: base, hcompta-web
92
93 ghc-options: -threaded -O2 -rtsopts -with-rtsopts=-N
94
95 test-suite test
96 type: exitcode-stdio-1.0
97 main-is: Spec.hs
98 hs-source-dirs: test
99 ghc-options: -Wall
100
101 extensions: TemplateHaskell
102 QuasiQuotes
103 OverloadedStrings
104 NoImplicitPrelude
105 CPP
106 MultiParamTypeClasses
107 TypeFamilies
108 GADTs
109 GeneralizedNewtypeDeriving
110 FlexibleContexts
111 EmptyDataDecls
112 NoMonomorphismRestriction
113 DeriveDataTypeable
114 ViewPatterns
115 TupleSections
116
117 build-depends: base
118 , hcompta-web
119 , yesod-test >= 1.4.3 && < 1.5
120 , yesod-core
121 , yesod
122 , persistent
123 , persistent-sqlite
124 , resourcet
125 , monad-logger
126 , shakespeare
127 , transformers
128 , hspec >= 2.0.0
129 , classy-prelude
130 , classy-prelude-yesod