diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-15 15:20:50 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-15 15:20:50 +0200 |
commit | b8821e100e0d8b02cde5392a2bb7d5f71428de87 (patch) | |
tree | b6375df34485b19845709020781411b45b490e12 /package.yaml | |
parent | 42cd5f4a218be39b90a37d94eb5cdb6570ad2ab2 (diff) | |
download | bar-b8821e100e0d8b02cde5392a2bb7d5f71428de87.tar bar-b8821e100e0d8b02cde5392a2bb7d5f71428de87.tar.gz bar-b8821e100e0d8b02cde5392a2bb7d5f71428de87.tar.bz2 bar-b8821e100e0d8b02cde5392a2bb7d5f71428de87.tar.xz bar-b8821e100e0d8b02cde5392a2bb7d5f71428de87.zip |
Disable thermoprint via flag
Diffstat (limited to 'package.yaml')
-rw-r--r-- | package.yaml | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..e7ea47d --- /dev/null +++ b/package.yaml | |||
@@ -0,0 +1,106 @@ | |||
1 | name: bar | ||
2 | version: 0.6.6 | ||
3 | |||
4 | flags: | ||
5 | dev: | ||
6 | description: Turn on development settings | ||
7 | default: false | ||
8 | manual: false | ||
9 | library-only: | ||
10 | description: Build for use with "yesod devel" | ||
11 | default: false | ||
12 | manual: false | ||
13 | thermoprint: | ||
14 | description: Use thermoprint-client | ||
15 | default: false | ||
16 | manual: false | ||
17 | |||
18 | when: | ||
19 | - condition: flag(dev) || flag(library-only) | ||
20 | then: | ||
21 | cpp-options: -DDEVELOPMENT | ||
22 | ghc-options: -Wall -fwarn-tabs -O0 | ||
23 | else: | ||
24 | ghc-options: -Wall -fwarn-tabs -O2 | ||
25 | - condition: flag(thermoprint) | ||
26 | cpp-options: -DTHERMOPRINT | ||
27 | dependencies: | ||
28 | - thermoprint-client | ||
29 | |||
30 | default-extensions: | ||
31 | - DeriveGeneric | ||
32 | - TupleSections | ||
33 | - RecordWildCards | ||
34 | - DeriveDataTypeable | ||
35 | - EmptyDataDecls | ||
36 | - FlexibleContexts | ||
37 | - FlexibleInstances | ||
38 | - TypeFamilies | ||
39 | - MultiParamTypeClasses | ||
40 | - NoImplicitPrelude | ||
41 | - PatternGuards | ||
42 | - DeriveFunctor | ||
43 | - GADTs | ||
44 | - CPP | ||
45 | - TemplateHaskell | ||
46 | - ViewPatterns | ||
47 | - PatternGuards | ||
48 | - QuasiQuotes | ||
49 | - FunctionalDependencies | ||
50 | - OverloadedStrings | ||
51 | |||
52 | other-extensions: | ||
53 | - GeneralizedNewtypeDeriving | ||
54 | - ApplicativeDo | ||
55 | - PackageImports | ||
56 | |||
57 | library: | ||
58 | source-dirs: . | ||
59 | dependencies: | ||
60 | - base | ||
61 | - yesod | ||
62 | - yesod-core | ||
63 | - yesod-static | ||
64 | - yesod-form | ||
65 | - classy-prelude | ||
66 | - classy-prelude-yesod | ||
67 | - bytestring | ||
68 | - text | ||
69 | - persistent | ||
70 | - persistent-postgresql | ||
71 | - persistent-template | ||
72 | - template-haskell | ||
73 | - shakespeare | ||
74 | - wai-extra | ||
75 | - yaml | ||
76 | - http-conduit | ||
77 | - warp | ||
78 | - aeson | ||
79 | - conduit | ||
80 | - monad-logger | ||
81 | - fast-logger | ||
82 | - wai-logger | ||
83 | - file-embed | ||
84 | - unordered-containers | ||
85 | - containers | ||
86 | - vector | ||
87 | - time | ||
88 | - wai | ||
89 | - mtl | ||
90 | - lens | ||
91 | - hashids | ||
92 | - systemd | ||
93 | |||
94 | executables: | ||
95 | bar: | ||
96 | when: | ||
97 | - condition: flag(library-only) | ||
98 | buildable: false | ||
99 | main: main.hs | ||
100 | source-dirs: app | ||
101 | dependencies: | ||
102 | - base | ||
103 | - bar | ||
104 | - foreign-store | ||
105 | - warp | ||
106 | ghc-options: -threaded -rtsopts -with-rtsopts=-N | ||