diff options
Diffstat (limited to 'bar.cabal')
-rw-r--r-- | bar.cabal | 128 |
1 files changed, 128 insertions, 0 deletions
diff --git a/bar.cabal b/bar.cabal new file mode 100644 index 0000000..264339d --- /dev/null +++ b/bar.cabal | |||
@@ -0,0 +1,128 @@ | |||
1 | name: bar | ||
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.Common.Types | ||
25 | Handler.InventoryListing | ||
26 | Handler.UpdateItem | ||
27 | Handler.OpenItem | ||
28 | Handler.DeleteItem | ||
29 | Handler.Item | ||
30 | |||
31 | if flag(dev) || flag(library-only) | ||
32 | cpp-options: -DDEVELOPMENT | ||
33 | ghc-options: -Wall -fwarn-tabs -O0 | ||
34 | else | ||
35 | ghc-options: -Wall -fwarn-tabs -O2 | ||
36 | |||
37 | extensions: TemplateHaskell | ||
38 | QuasiQuotes | ||
39 | OverloadedStrings | ||
40 | NoImplicitPrelude | ||
41 | MultiParamTypeClasses | ||
42 | TypeFamilies | ||
43 | GADTs | ||
44 | GeneralizedNewtypeDeriving | ||
45 | FlexibleContexts | ||
46 | FlexibleInstances | ||
47 | EmptyDataDecls | ||
48 | NoMonomorphismRestriction | ||
49 | DeriveDataTypeable | ||
50 | ViewPatterns | ||
51 | TupleSections | ||
52 | RecordWildCards | ||
53 | CPP | ||
54 | |||
55 | build-depends: | ||
56 | -- Due to a bug in GHC 8.0.1, we block its usage | ||
57 | -- See: https://ghc.haskell.org/trac/ghc/ticket/12130 | ||
58 | base >= 4.8.2.0 && < 4.9 | ||
59 | || >= 4.9.1.0 && < 5 | ||
60 | |||
61 | , yesod >= 1.4.3 && < 1.5 | ||
62 | , yesod-core >= 1.4.30 && < 1.5 | ||
63 | , yesod-auth >= 1.4.0 && < 1.5 | ||
64 | , yesod-static >= 1.4.0.3 && < 1.6 | ||
65 | , yesod-form >= 1.4.0 && < 1.5 | ||
66 | , classy-prelude >= 0.10.2 | ||
67 | , classy-prelude-conduit >= 0.10.2 | ||
68 | -- version 1.0 had a bug in reexporting Handler, causing trouble | ||
69 | , classy-prelude-yesod >= 0.10.2 && < 1.0 | ||
70 | || >= 1.1 | ||
71 | , bytestring >= 0.9 && < 0.11 | ||
72 | , text >= 0.11 && < 2.0 | ||
73 | , persistent >= 2.0 && < 2.7 | ||
74 | , persistent-postgresql >= 2.1.1 && < 2.7 | ||
75 | , persistent-template >= 2.0 && < 2.7 | ||
76 | , template-haskell | ||
77 | , shakespeare >= 2.0 && < 2.1 | ||
78 | , hjsmin >= 0.1 && < 0.3 | ||
79 | , monad-control >= 0.3 && < 1.1 | ||
80 | , wai-extra >= 3.0 && < 3.1 | ||
81 | , yaml >= 0.8 && < 0.9 | ||
82 | , http-conduit >= 2.1 && < 2.3 | ||
83 | , directory >= 1.1 && < 1.4 | ||
84 | , warp >= 3.0 && < 3.3 | ||
85 | , data-default | ||
86 | , aeson >= 0.6 && < 1.1 | ||
87 | , conduit >= 1.0 && < 2.0 | ||
88 | , monad-logger >= 0.3 && < 0.4 | ||
89 | , fast-logger >= 2.2 && < 2.5 | ||
90 | , wai-logger >= 2.2 && < 2.4 | ||
91 | , file-embed | ||
92 | , safe | ||
93 | , unordered-containers | ||
94 | , containers | ||
95 | , vector | ||
96 | , time | ||
97 | , case-insensitive | ||
98 | , wai | ||
99 | , mtl | ||
100 | , lens | ||
101 | |||
102 | executable bar | ||
103 | if flag(library-only) | ||
104 | Buildable: False | ||
105 | |||
106 | main-is: main.hs | ||
107 | hs-source-dirs: app | ||
108 | build-depends: base, bar | ||
109 | |||
110 | ghc-options: -threaded -rtsopts -with-rtsopts=-N | ||
111 | |||
112 | extensions: TemplateHaskell | ||
113 | QuasiQuotes | ||
114 | OverloadedStrings | ||
115 | NoImplicitPrelude | ||
116 | MultiParamTypeClasses | ||
117 | TypeFamilies | ||
118 | GADTs | ||
119 | GeneralizedNewtypeDeriving | ||
120 | FlexibleContexts | ||
121 | FlexibleInstances | ||
122 | EmptyDataDecls | ||
123 | NoMonomorphismRestriction | ||
124 | DeriveDataTypeable | ||
125 | ViewPatterns | ||
126 | TupleSections | ||
127 | RecordWildCards | ||
128 | CPP | ||