-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcl3.cabal
201 lines (162 loc) · 5.32 KB
/
cl3.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
-- Initial cl3.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
-- The name of the package.
name: cl3
-- The package version. See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented.
-- https://wiki.haskell.org/Package_versioning_policy
-- PVP summary: +-+------- breaking API changes
-- | | +----- non-breaking API additions
-- | | | +--- code changes with no API change
version: 3.0.0.0
-- A short (one-line) description of the package.
synopsis: Clifford Algebra of three dimensional space.
-- A longer description of the package.
description: Haskell Library implementing standard functions for the Algebra of Physical Space Cl(3,0)
-- URL for the project homepage or repository.
homepage: https://github.com/waivio/cl3
bug-reports: https://github.com/waivio/cl3/issues
-- The license under which the package is released.
license: BSD3
-- The file containing the license text.
license-file: LICENSE
-- The package author(s).
author: Nathan Waivio
-- An email address to which users can send suggestions, bug reports, and
-- patches.
maintainer: Nathan Waivio <[email protected]>
-- A copyright notice.
copyright: Copyright (C) 2017-2022 Nathan Waivio
category: Math, Algebra
build-type: Simple
tested-with: GHC == 7.8.4,
GHC == 7.10.3,
GHC == 8.0.2,
GHC == 8.2.2,
GHC == 8.4.2,
GHC == 8.4.4,
GHC == 8.6.5,
GHC == 8.8.3,
GHC == 8.10.2,
GHC == 8.10.4,
GHC == 8.10.7,
GHC == 9.0.2,
GHC == 9.2.2
-- Extra files to be distributed with the package, such as examples or a
-- README.
extra-source-files: ChangeLog.md,
README.md,
stack.yaml
-- Constraint on the version of Cabal needed to build this package.
cabal-version: >=1.10
source-repository head
type: git
location: https://github.com/waivio/cl3.git
flag do-no-derived-instances
description: Disable derived instances to reduce noise when inspecting GHC Core
manual: True
default: False
flag do-no-random
description: Build without random library support
manual: True
default: False
flag do-no-storable
description: Build without Storable Class support
manual: True
default: False
flag do-liquid
description: Build with Liquid Haskell checking
manual: True
default: False
library
-- Modules exported by the library.
exposed-modules:
Algebra.Geometric.Cl3,
Algebra.Geometric.Cl3.JonesCalculus
-- Compiler options
ghc-options: -Wall -O2
if flag(do-liquid)
ghc-options: -fplugin=LiquidHaskell -fplugin-opt=LiquidHaskell:--fast -fplugin-opt=LiquidHaskell:--max-case-expand=0 -fplugin-opt=LiquidHaskell:--no-termination -fplugin-opt=LiquidHaskell:--short-names
if flag(do-no-derived-instances)
cpp-options: -DO_NO_DERIVED
if flag(do-no-random)
cpp-options: -DO_NO_RANDOM
if flag(do-no-storable)
cpp-options: -DO_NO_STORABLE
if flag(do-liquid)
cpp-options: -DO_LIQUID -DO_NO_RANDOM -DO_NO_DERIVED -DO_NO_STORABLE
-- LANGUAGE extensions used by modules in this package.
other-extensions:
Safe,
GADTSyntax,
ViewPatterns,
DeriveDataTypeable,
DeriveGeneric,
CPP,
BangPatterns,
MultiWayIf
-- Other library packages from which modules are imported.
build-depends:
deepseq >=1.1 && <2
if !flag(do-no-random)
build-depends:
random >=1.0 && <2
if !flag(do-liquid)
build-depends:
base >=4.7 && <5
if flag(do-liquid)
build-depends:
liquid-base,
liquidhaskell >= 0.8.10
-- Directories containing source files.
hs-source-dirs: src
-- Base language which the package is written in.
default-language: Haskell2010
-- Criterion based test suite
test-suite test-cl3
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: TestCl3.hs
ghc-options: -Wall -O2
build-depends:
cl3,
base >=4.7 && <5,
criterion >=1.1 && <2,
random >=1.0 && <2
default-language: Haskell2010
-- Criterion based benchmark -threaded -rtsopts "-with-rtsopts=-N"
benchmark bench-cl3-nbody
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: NbodyGameCl3.hs
ghc-options: -Wall -O2
build-depends:
cl3,
base >=4.7 && <5,
criterion >=1.1 && <2
default-language: Haskell2010
-- Weigh based benchmark for Vector and Massiv
benchmark bench-cl3-weigh
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: WeighStorableCl3.hs
ghc-options: -Wall -O2
build-depends:
cl3,
base >=4.7 && <5,
vector,
massiv >= 1.0,
weigh
default-language: Haskell2010
-- Cl3/Massiv N-body benchmark -threaded -rtsopts "-with-rtsopts=-N"
benchmark bench-cl3-massiv-nbody
type: exitcode-stdio-1.0
hs-source-dirs: benchmarks
main-is: NbodyMassiv.hs
ghc-options: -Wall -O2
build-depends:
cl3,
base >=4.7 && <5,
time,
massiv >= 1.0
default-language: Haskell2010