-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yaml
211 lines (195 loc) · 4.48 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
name: habits
version: 0.1.0.0
github: "githubuser/habits"
license: BSD3
author: "Author name here"
maintainer: "example@example.com"
copyright: "2022 Author name here"
extra-source-files:
- README.md
- ChangeLog.md
# Metadata used when publishing your package
# synopsis: Short description of your package
# category: Web
# To avoid duplicated efforts in documentation and dealing with the
# complications of embedding Haddock markup inside cabal files, it is
# common to point users to the README.md file.
description: Please see the README on GitHub at <https://github.com/githubuser/habits#readme>
# Good Defaults can be found here: https://lexi-lambda.github.io/blog/2018/02/10/an-opinionated-guide-to-haskell-in-2018/
dependencies:
- base >= 4.7 && < 5
- text
- QuickCheck
- quickcheck-instances
- mtl
- transformers
- data-has
- lens
- monad-control
- haskus-utils-variant
- haskus-utils-types
- transformers-base
- lifted-base
- exceptions
- unliftio
- uuid
- template-haskell
- esqueleto
- async
- resourcet
- persistent
- esqueleto
- monad-logger
- persistent-postgresql
- bytestring
- resource-pool
- newtype
- vector
- first-class-families
- brittany
- singletons
- ormolu
- quickcheck-text
- haskell-src-meta
- password
- time
- jwt
- fixed
- timeit
- record-dot-preprocessor >= 0.2.14
- record-hasfield
- validation
- servant
- servant-server
- servant-client
- servant-client-core
- servant-auth
- servant-auth-server
- aeson
- wai
- warp
- mmorph
- http-client
- jose
- containers
- http-types
- extra
- nonce
- base64-bytestring
- regex-tdfa
- optparse-applicative
default-extensions:
- TypeOperators
- InstanceSigs
- KindSignatures
- FlexibleContexts
- FlexibleInstances
- LambdaCase
- NamedFieldPuns
- OverloadedStrings
- TypeApplications
- RankNTypes
- DataKinds
- ScopedTypeVariables
- MultiParamTypeClasses
- GeneralizedNewtypeDeriving
- FunctionalDependencies
- UndecidableInstances
- DuplicateRecordFields
- TypeSynonymInstances
- TypeFamilies
- QualifiedDo
- TemplateHaskell
- GADTs
- ConstraintKinds
- PatternSynonyms
- PartialTypeSignatures
- ViewPatterns
- NoImplicitPrelude
ghc-options:
- -Wall
- -Wcompat
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wredundant-constraints
- -Wno-simplifiable-class-constraints
- -Wno-unused-do-bind
- -Wmissing-methods
- -Werror=missing-fields
- -fplugin=RecordDotPreprocessor
library:
source-dirs: src
executables:
habits-exe:
main: Main.hs
source-dirs: app
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- habits
# Note
# Adding src during development here makes the ide experience much smoother. It's caused by a stack bug that leads to staleness problems when adding new files or types to the habits library
# related issues: https://github.com/haskell/haskell-language-server/issues/2058, https://github.com/haskell/haskell-language-server/issues/1822 https://github.com/haskell/haskell-language-server/issues/366
#
_test-ghc-options: &test-ghc-options
- -threaded
- -rtsopts
- -with-rtsopts=-A128m
- -with-rtsopts=-N2m
_test-dependencies: &test-ghc-dependencies
- hspec
- hspec-expectations-lifted
- testcontainers >= 0.3.0.1
tests:
habits-test-all:
main: Main.hs
source-dirs:
- src
- test-common
- test-unit
- test-integration
- test-e2e
- test-main
ghc-options: *test-ghc-options
dependencies: *test-ghc-dependencies
habits-test-unit:
main: UnitSpec.hs
source-dirs:
- test-common
- test-unit
dependencies: *test-ghc-dependencies
ghc-options: *test-ghc-options
when:
condition: true
ghc-options:
- -main-is UnitSpec.main
dependencies:
- habits
habits-test-integration:
main: IntegrationSpec.hs
source-dirs:
- test-common
- test-integration
dependencies: *test-ghc-dependencies
ghc-options: *test-ghc-options
when:
condition: true
ghc-options:
- -main-is IntegrationSpec.main
dependencies:
- habits
habits-test-e2e:
main: E2ESpec.hs
source-dirs:
- test-common
- test-e2e
dependencies: *test-ghc-dependencies
ghc-options: *test-ghc-options
when:
condition: true
ghc-options:
- -main-is E2ESpec.main
dependencies:
- habits