-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.yaml
125 lines (115 loc) · 2.17 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
name: caldwell
version: '0.0.1'
category: Web
author: Austin Erlandson
maintainer: [email protected]
copyright: 2017 Austin Erlandson
license: MIT
github: erlandsona/caldwell-api
# extra-source-files:
# - ../README.md
dependencies:
- base >=4.7 && <5
- aeson
- bytestring
- elm-export
- elm-export-persistent
- filepath
- hilt
- monad-logger
- mtl
- http-types
- persistent
- persistent-postgresql
- persistent-template
- safe
- servant-docs
- servant-elm
- servant-foreign
- servant-generic
- servant-server
- template-haskell
- text
- time
- transformers
- turtle
- wai
- wai-app-static
- wai-cors
- wai-extra
- warp
- yaml
default-extensions:
- OverloadedStrings
library:
source-dirs: library
when:
- condition: (flag(dev)) || (flag(library-only))
then:
ghc-options:
- -Wall
- -Werror
- -fwarn-tabs
- -ddump-deriv
- -ddump-splices
- -fno-warn-orphans
- -O0
cpp-options: -DDEVELOPMENT
else:
ghc-options:
- -Wall
- -Werror
- -fwarn-tabs
- -O2
executables:
caldwell: &defaults
main: Server.hs
source-dirs: executables
ghc-options:
- -Wall
- -Werror
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- caldwell
when:
- condition: flag(library-only)
buildable: false
docs:
<<: *defaults
main: Docs.hs
source-dirs: executables
elmify:
<<: *defaults
main: Elmify.hs
source-dirs: executables
seed:
<<: *defaults
main: Seeds.hs
source-dirs: db
tests:
caldwell-test:
main: Spec.hs
source-dirs: test
ghc-options:
- -Wall
- -Werror
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- caldwell
- hspec
- text
- neat-interpolation
# 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