-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.yaml
150 lines (141 loc) · 2.8 KB
/
package.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: yesod-app
version: "0.0.0"
default-extensions:
- DeriveAnyClass
- TransformListComp
- BangPatterns
- ConstraintKinds
- DataKinds
- DerivingStrategies
- StandaloneDeriving
- DeriveDataTypeable
- DeriveGeneric
- EmptyDataDecls
- FlexibleContexts
- FlexibleInstances
- GADTs
- GeneralizedNewtypeDeriving
- InstanceSigs
- MultiParamTypeClasses
- NoImplicitPrelude
- NoMonomorphismRestriction
- OverloadedStrings
- QuasiQuotes
- RankNTypes
- RecordWildCards
- ScopedTypeVariables
- TemplateHaskell
- TupleSections
- TypeFamilies
- TypeOperators
- ViewPatterns
- BlockArguments
- LambdaCase
- UndecidableInstances
- TypeApplications
dependencies:
# Due to a bug in GHC 8.0.1, we block its usage
# See: https://ghc.haskell.org/trac/ghc/ticket/12130
- base
- yesod
- yesod-core
- yesod-static
- yesod-form
- yesod-auth
- classy-prelude
- classy-prelude-conduit
- classy-prelude-yesod
- bytestring
- text
- blaze-html
- template-haskell
- shakespeare
- hjsmin
- monad-control
- wai-extra
- yaml
- http-client-tls
- http-conduit
- directory
- warp
- data-default
- aeson
- conduit
- monad-logger
- fast-logger
- wai-logger
- mime-mail
- file-embed
- safe
- unordered-containers
- containers
- vector
- time
- case-insensitive
- wai
- foreign-store
- persistent
- persistent-template
- persistent-postgresql
- esqueleto
# The library contains all of our application code. The executable
# defined below is just a thin wrapper.
library:
source-dirs: src
when:
- condition: (flag(dev)) || (flag(library-only))
then:
ghc-options:
- -Wall
- -fwarn-incomplete-patterns
- -fwarn-tabs
- -O2
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wpartial-fields
- -Wredundant-constraints
cpp-options: -DDEVELOPMENT
else:
ghc-options:
- -Wall
- -fwarn-incomplete-patterns
- -fwarn-tabs
- -O2
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wpartial-fields
- -Wredundant-constraints
# Runnable executable for our application
executables:
yesod-app:
main: main.hs
source-dirs: app
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N4-AL32m-n4m-A32m-qb0-I0-xn
dependencies:
- yesod-app
when:
- condition: flag(library-only)
buildable: false
# Test suite
tests:
yesod-app-test:
main: Spec.hs
source-dirs: test
ghc-options: -Wall
dependencies:
- yesod-app
- hspec >=2.0.0
- yesod-test
# Define flags used by "yesod devel" to make compilation faster
flags:
library-only:
description: Build for use with "yesod devel"
manual: false
default: false
dev:
description: Turn on development settings, like auto-reload templates.
manual: false
default: false