-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yaml
174 lines (157 loc) · 3.82 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
name: wow-stream
version: 0.1.0.0
github: "frabbit/wow-stream"
license: BSD3
author: "Heinz Hoelzer"
maintainer: "example@example.com"
copyright: "2022 Heinz Hoelzer"
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/wow-stream#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
- record-dot-preprocessor >= 0.2.14
- record-hasfield
- optparse-applicative
- http-conduit
- http-client-tls
- mtl
- transformers
- lens
- monad-control
- unliftio
- exceptions
- conduit
- bytestring
- http-client
- aeson
- dotenv
- websockets
- network
- polysemy
- http-types
- case-insensitive
- extra
- polysemy-conc
- unix
- megaparsec
- haskeline
- stm
- hspec
- async
- random
- containers
- uuid
- proxied
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:
wow-stream-exe:
main: Main.hs
source-dirs: app
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- wow-stream
# 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:
wow-stream-test-all:
main: Main.hs
source-dirs:
- src
- test-common
- test-unit
- test-integration
- test-e2e
ghc-options: *test-ghc-options
dependencies: *test-ghc-dependencies
wow-stream-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:
- wow-stream
wow-stream-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:
- wow-stream