-
Notifications
You must be signed in to change notification settings - Fork 5
/
ble.cabal
238 lines (225 loc) · 7.51 KB
/
ble.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
-- This file has been generated from package.yaml by hpack version 0.17.1.
--
-- see: https://github.com/sol/hpack
name: ble
version: 0.4.2
synopsis: Bluetooth Low Energy (BLE) peripherals
description: This package provides a Haskell API for writing Bluetooth Low Energy peripherals.
stability: alpha
homepage: http://github.com/plow-technologies/ble#readme
bug-reports: https://github.com/plow-technologies/ble/issues
author: Julian K. Arni
maintainer: [email protected]
copyright: 2016 Julian K. Arni
license: BSD3
license-file: LICENSE
tested-with: GHC == 7.10.3, GHC == 8.0.1
build-type: Simple
cabal-version: >= 1.10
extra-source-files:
LICENSE
package.yaml
README.md
test/Mock/requirements.txt
data-files:
test/Mock/start_mock.sh
source-repository head
type: git
location: https://github.com/plow-technologies/ble
flag bluez543
description: Bluez version 5.43 or greater
manual: True
default: False
flag hasBluez
description: Whether to run tests that require Bluez
manual: True
default: True
flag hasDBus
description: Whether to run tests that require DBus mocking
manual: True
default: False
library
hs-source-dirs:
src
default-extensions: AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall
build-depends:
base >= 4.8 && < 4.10
, bytestring >= 0.10 && < 0.11
, text >= 1 && < 2
, d-bus >= 0.1.5 && < 0.2
, uuid >= 1 && < 2
, mtl >= 2.2 && < 2.3
, transformers >= 0.4 && < 0.6
, containers >= 0.5 && < 0.6
, random >= 1 && < 2
, microlens >= 0.4 && < 0.5
, microlens-ghc >= 0.4 && < 0.5
, cereal >= 0.4 && < 0.6
, data-default-class >= 0.0 && < 0.2
if flag(hasDBus)
cpp-options: -DDBusMock
exposed-modules:
Bluetooth
Bluetooth.Internal.DBus
Bluetooth.Internal.Device
Bluetooth.Internal.Errors
Bluetooth.Internal.HasInterface
Bluetooth.Internal.Interfaces
Bluetooth.Internal.Lenses
Bluetooth.Internal.Serialize
Bluetooth.Internal.Types
Bluetooth.Internal.Utils
default-language: Haskell2010
executable auth
main-is: Auth.hs
hs-source-dirs:
examples
default-extensions: AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall
build-depends:
base >= 4.8 && < 4.10
, bytestring >= 0.10 && < 0.11
, text >= 1 && < 2
, d-bus >= 0.1.5 && < 0.2
, uuid >= 1 && < 2
, mtl >= 2.2 && < 2.3
, transformers >= 0.4 && < 0.6
, containers >= 0.5 && < 0.6
, random >= 1 && < 2
, microlens >= 0.4 && < 0.5
, microlens-ghc >= 0.4 && < 0.5
, cereal >= 0.4 && < 0.6
, data-default-class >= 0.0 && < 0.2
, ble
if flag(hasDBus)
cpp-options: -DDBusMock
other-modules:
HeartRate
HeartRateClient
README
default-language: Haskell2010
executable hrs
main-is: HeartRate.hs
hs-source-dirs:
examples
default-extensions: AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall -threaded
build-depends:
base >= 4.8 && < 4.10
, bytestring >= 0.10 && < 0.11
, text >= 1 && < 2
, d-bus >= 0.1.5 && < 0.2
, uuid >= 1 && < 2
, mtl >= 2.2 && < 2.3
, transformers >= 0.4 && < 0.6
, containers >= 0.5 && < 0.6
, random >= 1 && < 2
, microlens >= 0.4 && < 0.5
, microlens-ghc >= 0.4 && < 0.5
, cereal >= 0.4 && < 0.6
, data-default-class >= 0.0 && < 0.2
, ble
, hslogger
, optparse-applicative >= 0.12 && < 0.14
if flag(hasDBus)
cpp-options: -DDBusMock
other-modules:
Auth
HeartRateClient
README
default-language: Haskell2010
executable hrs-client
main-is: HeartRateClient.hs
hs-source-dirs:
examples
default-extensions: AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall -threaded
build-depends:
base >= 4.8 && < 4.10
, bytestring >= 0.10 && < 0.11
, text >= 1 && < 2
, d-bus >= 0.1.5 && < 0.2
, uuid >= 1 && < 2
, mtl >= 2.2 && < 2.3
, transformers >= 0.4 && < 0.6
, containers >= 0.5 && < 0.6
, random >= 1 && < 2
, microlens >= 0.4 && < 0.5
, microlens-ghc >= 0.4 && < 0.5
, cereal >= 0.4 && < 0.6
, data-default-class >= 0.0 && < 0.2
, ble
if flag(hasDBus)
cpp-options: -DDBusMock
other-modules:
Auth
HeartRate
README
default-language: Haskell2010
executable readme
main-is: README.lhs
hs-source-dirs:
examples
default-extensions: AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall -pgmL markdown-unlit
build-depends:
base >= 4.8 && < 4.10
, bytestring >= 0.10 && < 0.11
, text >= 1 && < 2
, d-bus >= 0.1.5 && < 0.2
, uuid >= 1 && < 2
, mtl >= 2.2 && < 2.3
, transformers >= 0.4 && < 0.6
, containers >= 0.5 && < 0.6
, random >= 1 && < 2
, microlens >= 0.4 && < 0.5
, microlens-ghc >= 0.4 && < 0.5
, cereal >= 0.4 && < 0.6
, data-default-class >= 0.0 && < 0.2
, ble
, stm
, markdown-unlit
if flag(hasDBus)
cpp-options: -DDBusMock
other-modules:
Auth
HeartRate
HeartRateClient
default-language: Haskell2010
test-suite spec
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs:
test
default-extensions: AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
ghc-options: -Wall
build-depends:
base >= 4.8 && < 4.10
, bytestring >= 0.10 && < 0.11
, text >= 1 && < 2
, d-bus >= 0.1.5 && < 0.2
, uuid >= 1 && < 2
, mtl >= 2.2 && < 2.3
, transformers >= 0.4 && < 0.6
, containers >= 0.5 && < 0.6
, random >= 1 && < 2
, microlens >= 0.4 && < 0.5
, microlens-ghc >= 0.4 && < 0.5
, cereal >= 0.4 && < 0.6
, data-default-class >= 0.0 && < 0.2
, ble
, hspec > 2 && < 3
, QuickCheck >= 2.8 && < 2.10
, quickcheck-instances >= 0.3 && < 0.4
, process >= 1.2 && < 1.5
, hslogger
if flag(hasDBus)
cpp-options: -DDBusMock
other-modules:
Bluetooth.TypesSpec
BluetoothSpec
Doctest
Mock
Spec
default-language: Haskell2010