File tree 3 files changed +47
-10
lines changed
3 files changed +47
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ cabal-version: 1.12
4
4
--
5
5
-- see: https://github.com/sol/hpack
6
6
--
7
- -- hash: 2eaf7b48d485892509d025b3573af73d212bf5d4cf8b7188580eaf6e00ddd6a6
7
+ -- hash: e84816ecce58303c3c92194095e508043f72b435f98d5d844393572a38db85b6
8
8
9
9
name : ble
10
10
version : 0.4.2
@@ -189,13 +189,41 @@ executable readme
189
189
cpp-options : -DDBusMock
190
190
default-language : Haskell2010
191
191
192
+ test-suite doctest
193
+ type : exitcode-stdio-1.0
194
+ main-is : Doctest.hs
195
+ hs-source-dirs :
196
+ test
197
+ default-extensions : AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
198
+ ghc-options : -Wall -main-is Doctest
199
+ build-depends :
200
+ Glob >= 0.7 && < 0.8
201
+ , base >= 4.8 && < 4.10
202
+ , bytestring >= 0.10 && < 0.11
203
+ , cereal >= 0.4 && < 0.6
204
+ , containers >= 0.5 && < 0.6
205
+ , d-bus >= 0.1.5 && < 0.2
206
+ , data-default-class >= 0.0 && < 0.2
207
+ , doctest >= 0.9 && < 0.12
208
+ , filepath
209
+ , microlens >= 0.4 && < 0.5
210
+ , microlens-ghc >= 0.4 && < 0.5
211
+ , mtl >= 2.2 && < 2.3
212
+ , random >= 1 && < 2
213
+ , text >= 1 && < 2
214
+ , transformers >= 0.4 && < 0.6
215
+ , uuid >= 1 && < 2
216
+ , yaml == 0.8. *
217
+ if flag(hasDBus)
218
+ cpp-options : -DDBusMock
219
+ default-language : Haskell2010
220
+
192
221
test-suite spec
193
222
type : exitcode-stdio-1.0
194
223
main-is : Main.hs
195
224
other-modules :
196
225
Bluetooth.TypesSpec
197
226
BluetoothSpec
198
- Doctest
199
227
Mock
200
228
Spec
201
229
Paths_ble
Original file line number Diff line number Diff line change @@ -96,20 +96,29 @@ tests:
96
96
spec :
97
97
main : Main.hs
98
98
source-dirs : test
99
+ other-modules :
100
+ - Bluetooth.TypesSpec
101
+ - BluetoothSpec
102
+ - Mock
103
+ - Spec
104
+ - Paths_ble
99
105
dependencies :
100
106
- ble
101
107
- hspec > 2 && < 3
102
108
- QuickCheck >= 2.8 && < 2.10
103
109
- quickcheck-instances >= 0.3 && < 0.4
104
110
- process >= 1.2 && < 1.5
105
111
- hslogger
106
- # doctest:
107
- # main: Doctest.hs
108
- # source-dirs: test
109
- # dependencies:
110
- # - doctest >= 0.9 && < 0.12
111
- # - Glob >= 0.7 && < 0.8
112
- # - yaml == 0.8.*
112
+ doctest :
113
+ main : Doctest.hs
114
+ source-dirs : test
115
+ ghc-options : -main-is Doctest
116
+ other-modules : []
117
+ dependencies :
118
+ - doctest >= 0.9 && < 0.12
119
+ - Glob >= 0.7 && < 0.8
120
+ - yaml == 0.8.*
121
+ - filepath
113
122
114
123
executables :
115
124
readme :
Original file line number Diff line number Diff line change 1
- module Main (main ) where
1
+ module Doctest (main ) where
2
2
3
3
-- Runs doctest on all files in "src" dir. Assumes:
4
4
-- (a) You are using hpack
You can’t perform that action at this time.
0 commit comments