-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.yaml
253 lines (232 loc) · 5.4 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
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
241
242
243
244
245
246
247
248
249
250
251
252
253
name: animalclub
version: 0.1.0.0
github: "pdlla/animalclub"
license: BSD3
author: "Peter Lu"
maintainer: "[email protected]"
copyright: "2018 Peter Lu"
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/pdlla/animalclub#readme>
ghc-options:
- -Wall
- -Wcompat
- -Wincomplete-record-updates
- -Wincomplete-uni-patterns
- -Wredundant-constraints
#- -Werror
default-extensions:
- ApplicativeDo
- BangPatterns
- DataKinds
- ConstraintKinds
- DeriveFoldable
- DeriveFunctor
- DeriveTraversable
- DeriveGeneric
- DeriveLift
- DeriveTraversable
- DerivingStrategies
- EmptyCase
- ExistentialQuantification
- FlexibleContexts
- FlexibleInstances
- FunctionalDependencies
- GADTs
- GeneralizedNewtypeDeriving
- InstanceSigs
- KindSignatures
- LambdaCase
- MultiParamTypeClasses
- MultiWayIf
- NamedFieldPuns
- OverloadedStrings
- PatternSynonyms
- RankNTypes
- ScopedTypeVariables
- StandaloneDeriving
- TupleSections
- TypeApplications
- TypeFamilies
- TypeFamilyDependencies
- TypeOperators
- NoImplicitPrelude
dependencies:
- base >= 4.7 && < 5
- vector
- MonadRandom
- random
- mwc-random
- mtl
- text
- linear
- microlens-platform
- adjunctions
- containers
- deepseq
- primitive
- monad-parallel
- parallel
- formatting
- bytestring
- storable-tuple
- convertible
- storable-record
- relude
- monad-extras
library:
source-dirs: src
exposed-modules:
- AnimalClub
# Genetics
- AnimalClub.Genetics
- AnimalClub.Genetics.DNA
- AnimalClub.Genetics.Gene
- AnimalClub.Genetics.Genome
- AnimalClub.Genetics.Genotype
- AnimalClub.Genetics.GenotypePar
# Skellygen
- AnimalClub.Skellygen
- AnimalClub.Skellygen.Mesh
- AnimalClub.Skellygen.TRS
- AnimalClub.Skellygen.Linear
# Animal
- AnimalClub.Animals
- AnimalClub.Animals.Examples
# Hidden stuff that's only here for testing reasons
- AnimalClub.Genetics.Internal.Unused.Genotype
# - AnimalClub.Genetics.Internal.Unused.DNAMWC
executables:
genetics:
main: genetics.hs
source-dirs: examples
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- animalclub
- clock
goat:
main: goat.hs
source-dirs: examples
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- animalclub
#+RTS -sstderr -RTS
wormbreeder:
main: wormbreeder.hs
source-dirs: examples
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
other-modules:
- ExamplesLib.Worm
dependencies:
- animalclub
# stack bench animalclub:genotype-benchmarks --profile --ghc-options -threaded --benchmark-arguments='+RTS -N -C0.01 -sstderr -RTS'
benchmarks:
genotype-benchmarks:
source-dirs: benchmark
main: genotype.hs
dependencies:
- animalclub
- criterion
- clock
- time
ghc-options:
- -O2
- -rtsopts
- -threaded
- -with-rtsopts=-sstderr
- -with-rtsopts=-N4
- -with-rtsopts=-C0.01
dna-benchmarks:
source-dirs: benchmark
main: dna.hs
dependencies:
- animalclub
- criterion
- clock
- time
ghc-options:
- -rtsopts
- -threaded
- -with-rtsopts=-N
skellygen-benchmarks:
source-dirs: benchmark
main: skellygen.hs
dependencies:
- animalclub
- criterion
- clock
- time
ghc-options:
- -rtsopts
- -threaded
- -with-rtsopts=-N
tests:
animalclub-tests:
main: Spec.hs
source-dirs: test
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- animalclub
- QuickCheck
- HUnit
- hspec
- linear-tests
# hpack does not support foreign-library yet
# please see comments in verbatim string on how to appropriately set fields
verbatim: |
foreign-library animalclub
type: native-shared
if os(Windows)
options: standalone
mod-def-file: AnimalClubLib.def
other-modules: AnimalClub.ForeignBindings
-- copy this part from library default-extensions section of hpack generated cabal file
default-extensions: InstanceSigs LambdaCase OverloadedStrings GADTs DeriveFunctor DeriveFoldable DeriveTraversable DeriveGeneric FlexibleInstances FlexibleContexts ScopedTypeVariables MultiWayIf TupleSections MultiParamTypeClasses NoImplicitPrelude
-- copy this part from library build-depends section of hpack generated cabal file
build-depends:
MonadRandom
, QuickCheck
, adjunctions
, base >=4.7 && <5
, bytestring
, containers
, deepseq
, formatting
, linear
, microlens-platform
, monad-parallel
, mtl
, mwc-random
, parallel
, primitive
, random
, storable-tuple
, text
, vector
, convertible
, storable-record
, relude
, monad-extras
hs-source-dirs: src
c-sources:
csrc/animalclub.cpp
default-language: Haskell2010