generated from serokell/metatemplates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathedna.cabal
240 lines (231 loc) · 6.48 KB
/
edna.cabal
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
cabal-version: 2.4
-- SPDX-FileCopyrightText: 2021 Serokell <https://serokell.io>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
name: edna
-- When you think it's ready to be released, set the version to something like 0.1.0.
version: 0
synopsis: A tool for data analysis aimed to help researchers with their experiments.
description:
This is the backend (server) for a tool for data analysis aimed to help
researchers with their experiments.
category: Bio
homepage: https://github.com/serokell/edna#readme
bug-reports: https://github.com/serokell/edna/issues
author: Serokell <[email protected]>
maintainer: Serokell <[email protected]>
copyright: 2021 Serokell <https://serokell.io>
license: AGPL-3.0-or-later
license-file: LICENSE
build-type: Simple
extra-source-files: sql/init.sql, ./resources/testSheets/**/*.xlsx
source-repository head
type: git
location: https://github.com/serokell/edna
common common-options
build-depends:
base <5
, universum
ghc-options: -Weverything -Wno-missing-exported-signatures -Wno-missing-import-lists -Wno-missed-specialisations -Wno-all-missed-specialisations -Wno-unsafe -Wno-safe -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-implicit-prelude -Wno-prepositive-qualified-module -Wno-inferred-safe-imports -Wno-missing-safe-haskell-mode
default-extensions: AllowAmbiguousTypes BangPatterns BlockArguments ConstraintKinds DataKinds DefaultSignatures DeriveAnyClass DeriveDataTypeable DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable DerivingStrategies DerivingVia EmptyCase FlexibleContexts FlexibleInstances GADTs GeneralizedNewtypeDeriving LambdaCase MultiParamTypeClasses MultiWayIf NamedFieldPuns NegativeLiterals NumDecimals NoImplicitPrelude OverloadedLabels OverloadedStrings PatternSynonyms PolyKinds QuasiQuotes RankNTypes RecordWildCards RecursiveDo ScopedTypeVariables StandaloneDeriving StrictData TemplateHaskell TupleSections TypeApplications TypeFamilies TypeOperators UndecidableInstances UndecidableSuperClasses ViewPatterns
default-language: Haskell2010
library
import: common-options
exposed-modules:
Edna.Analysis.FourPL
Edna.Config.CLA
Edna.Config.Definition
Edna.Config.Environment
Edna.Config.Prepare
Edna.DB.Connection
Edna.DB.Initialisation
Edna.DB.Integration
Edna.DB.Schema
Edna.DB.Util
Edna.Dashboard.DB.Query
Edna.Dashboard.DB.Schema
Edna.Dashboard.Error
Edna.Dashboard.Service
Edna.Dashboard.Web.API
Edna.Dashboard.Web.Types
Edna.ExperimentReader.Error
Edna.ExperimentReader.Parser
Edna.ExperimentReader.Types
Edna.Init
Edna.Library.DB.Query
Edna.Library.DB.Schema
Edna.Library.Error
Edna.Library.Service
Edna.Library.Web.API
Edna.Library.Web.Types
Edna.Logging
Edna.Orphans
Edna.Setup
Edna.Upload.DB.Query
Edna.Upload.DB.Schema
Edna.Upload.Error
Edna.Upload.Service
Edna.Upload.Web.API
Edna.Upload.Web.Types
Edna.Util
Edna.Util.URI
Edna.Web.API
Edna.Web.Handlers
Edna.Web.Server
Edna.Web.Swagger
Edna.Web.Types
other-modules:
Paths_edna
Edna.Analysis.Infra
Edna.Web.Error
autogen-modules:
Paths_edna
hs-source-dirs:
src
build-depends:
aeson,
aeson-casing,
beam-core,
beam-postgres,
bytestring,
containers,
data-default,
filepath,
fmt,
http-media,
insert-ordered-containers,
lens,
microlens,
network-uri,
network-uri-json,
openapi3,
optparse-applicative,
postgresql-simple,
prometheus-client,
prometheus-metrics-ghc,
resource-pool,
rio,
safe-exceptions,
servant,
servant-openapi3,
servant-multipart,
servant-server,
servant-swagger-ui,
servant-swagger-ui-core,
servant-util,
servant-util-beam-pg,
split,
text,
time,
typed-process,
unordered-containers,
wai,
wai-extra,
wai-middleware-prometheus,
warp,
xlsx,
yaml
executable edna-server
import: common-options
main-is: Main.hs
hs-source-dirs:
app
ghc-options: -rtsopts "-with-rtsopts=-T"
build-depends:
edna,
optparse-applicative,
with-utf8
executable edna-generator
import: common-options
main-is: Main.hs
other-modules:
Generator
hs-source-dirs:
generator
build-depends:
bytestring,
containers,
edna,
optparse-applicative,
safe-exceptions,
text,
with-utf8
test-suite edna-test
import: common-options
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
Test.API.DashboardSpec
Test.API.BestPracticesSpec
Test.API.LibrarySpec
Test.API.Util
Test.AnalysisSpec
Test.DB.DBSpec
Test.DB.Gen
Test.DashboardSpec
Test.Gen
Test.LibrarySpec
Test.Orphans
Test.ParserSpec
Test.SMT.SMTSpec
Test.SMT.State
Test.SampleData
Test.Setup
Test.SwaggerSpec
Test.UploadSpec
Test.Util
Test.Util.URISpec
hs-source-dirs:
test
ghc-options:
-- Non-exhaustive patterns are ok and useful in tests.
-Wno-incomplete-patterns
-Wno-incomplete-uni-patterns
-- hspec runs tests in parallel, so using multiple threads should be useful.
-threaded
-- should be harmless, but helps some people analyse something :shrug:
-eventlog
-- Enable -N to use multiple threads.
-- Increase allocation area by using the recommended -A64m option.
-- Also increase the allocation area for large objects with -AL256m,
-- since this area is shared between all threads and thus with high -N
-- values get used up too soon.
-- With these options tests usually run faster.
-- Weird quoting is required for cabal to correctly pass this as _one_ option,
-- otherwise it splits by spaces.
"-with-rtsopts=-N -A64m -AL256m"
build-tool-depends:
hspec-discover:hspec-discover
build-depends:
aeson
, beam-core
, beam-postgres
, bytestring
, containers
, edna
, filepath
, fmt
, hedgehog
, hedgehog-quickcheck
, hspec
, hspec-core
, hspec-hedgehog
, http-client
, http-types
, lens
, mmorph
, network-uri
, QuickCheck
, rio
, servant
, servant-client
, servant-client-core
, servant-multipart
, servant-quickcheck
, servant-server
, servant-openapi3
, servant-util
, time
, unordered-containers
, warp
, xlsx