-
Notifications
You must be signed in to change notification settings - Fork 0
/
hdf5-hs.cabal
208 lines (185 loc) · 4.79 KB
/
hdf5-hs.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
cabal-version: 3.0
name: hdf5-hs
version: 0.2.0.1
synopsis: High-level Haskell bindings to HDF5 library
description: High-level Haskell bindings to HDF5 library
homepage: https://github.com/twesterhout/hdf5-hs
bug-reports: https://github.com/twesterhout/hdf5-hs/issues
license: BSD-3-Clause
license-file: LICENSE
author: Tom Westerhout
maintainer:
Tom Westerhout <[email protected]>
copyright: 2020-2021 Tom Westerhout
build-type: Simple
extra-doc-files: README.md
flag use-pkgconfig
description: Use pkg-config to find HDF5 and ZLib
manual: True
default: False
flag disable-default-paths
description: Disable standard paths where hdf5 lib may be found
manual: True
default: False
source-repository head
type: git
location: https://github.com/twesterhout/hdf5-hs.git
common common-options
build-depends: base >=4.16.0.0 && <5
ghc-options:
-Wall -Wextra -Wcompat -Widentities -Wincomplete-uni-patterns
-Wincomplete-record-updates -Wredundant-constraints
-fhide-source-paths -Wmissing-export-lists -Wpartial-fields
-Wmissing-deriving-strategies -Wunused-packages
default-language: GHC2021
default-extensions:
AllowAmbiguousTypes
ConstraintKinds
DataKinds
DefaultSignatures
DeriveAnyClass
DeriveGeneric
DerivingStrategies
FunctionalDependencies
GeneralizedNewtypeDeriving
InstanceSigs
KindSignatures
LambdaCase
OverloadedStrings
PatternSynonyms
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeApplications
TypeFamilies
TypeOperators
ViewPatterns
library
import: common-options
hs-source-dirs: src
build-depends:
, bytestring
, containers
, deepseq
, directory
, inline-c
, resourcet
, some
, template-haskell
, text
, transformers
, unliftio
, unliftio-core
, vector
exposed-modules: Data.HDF5
other-modules:
Data.HDF5.Context
Data.HDF5.Dataset
Data.HDF5.Dataspace
Data.HDF5.Datatype
Data.HDF5.File
Data.HDF5.Group
Data.HDF5.Object
Data.HDF5.Types
cc-options: -Wall -Wextra
if flag(use-pkgconfig)
extra-libraries: hdf5_hl
pkgconfig-depends: hdf5
else
extra-libraries:
hdf5_hl
hdf5
if (os(linux) && !flag(disable-default-paths))
extra-lib-dirs: /usr/lib/x86_64-linux-gnu/hdf5/serial
include-dirs: /usr/include/hdf5/serial
-- if os(linux)
-- extra-libraries: z
-- executable hdf5-hs
-- import: common-options
-- hs-source-dirs: app
-- main-is: Main.hs
-- build-depends: hdf5-hs
-- , text
-- , vector
-- ghc-options: -threaded
-- -rtsopts
-- -with-rtsopts=-N
-- buildable: False
-- executable example00
-- import: common-options
-- hs-source-dirs: example
-- main-is: example00.hs
-- build-depends: hdf5-hs
-- buildable: True
-- executable example01
-- import: common-options
-- hs-source-dirs: example
-- main-is: example01.hs
-- build-depends:
-- , bytestring
-- , hdf5-hs
-- , vector
--
-- buildable: True
-- executable example02
-- import: common-options
-- hs-source-dirs: example
-- main-is: example02.hs
-- build-depends: hdf5-hs
-- buildable: True
-- executable example03
-- import: common-options
-- hs-source-dirs: example
-- main-is: example03.hs
-- build-depends: hdf5-hs
-- buildable: True
-- executable example04
-- import: common-options
-- hs-source-dirs: example
-- main-is: example04.hs
-- build-depends:
-- , hdf5-hs
-- , list-t
-- , some
-- , text
--
-- buildable: True
test-suite hdf5-hs-test
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules:
Data.HDF5.DatasetSpec
Data.HDF5.DataspaceSpec
Data.HDF5.FileSpec
Data.HDF5.GroupSpec
Data.HDF5.TypesSpec
Utils
build-depends:
, directory
, hdf5-hs
, hspec
, QuickCheck
, text
, vector
ghc-options: -threaded -rtsopts -with-rtsopts=-N
-- test-suite doctests
-- import: common-options
-- type: exitcode-stdio-1.0
-- main-is: doctests.hs
-- build-depends:
-- , doctest
-- , hdf5-hs
--
-- hs-source-dirs: test
--
-- -- We get some warnings from automatically generated files
-- ghc-options: -Wno-missing-export-lists
--
-- if impl(ghc >=8.8)
-- ghc-options: -Wno-missing-deriving-strategies
--
-- buildable: False