Skip to content

Commit cd00380

Browse files
author
Andrew Cady
committed
fix build of the tests
1 parent 130d691 commit cd00380

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

ble.cabal

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cabal-version: 1.12
44
--
55
-- see: https://github.com/sol/hpack
66
--
7-
-- hash: 2eaf7b48d485892509d025b3573af73d212bf5d4cf8b7188580eaf6e00ddd6a6
7+
-- hash: 9d49e4b01dbbf18b3c025d55306e013c1fdcc31b99b3e22eac6f4ee24dd33f9b
88

99
name: ble
1010
version: 0.4.2
@@ -204,14 +204,17 @@ test-suite spec
204204
default-extensions: AutoDeriveTypeable ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
205205
ghc-options: -Wall
206206
build-depends:
207-
QuickCheck >=2.8 && <2.10
207+
Glob >=0.7 && <0.8
208+
, QuickCheck >=2.8 && <2.10
208209
, base >=4.8 && <4.10
209210
, ble
210211
, bytestring >=0.10 && <0.11
211212
, cereal >=0.4 && <0.6
212213
, containers >=0.5 && <0.6
213214
, d-bus >=0.1.5 && <0.2
214215
, data-default-class >=0.0 && <0.2
216+
, doctest >=0.9 && <0.12
217+
, filepath
215218
, hslogger
216219
, hspec >2 && <3
217220
, microlens >=0.4 && <0.5
@@ -223,6 +226,7 @@ test-suite spec
223226
, text >=1 && <2
224227
, transformers >=0.4 && <0.6
225228
, uuid >=1 && <2
229+
, yaml ==0.8.*
226230
if flag(hasDBus)
227231
cpp-options: -DDBusMock
228232
default-language: Haskell2010

package.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ tests:
103103
- quickcheck-instances >= 0.3 && < 0.4
104104
- process >= 1.2 && < 1.5
105105
- 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.*
106+
- doctest >= 0.9 && < 0.12
107+
- Glob >= 0.7 && < 0.8
108+
- yaml == 0.8.*
109+
- filepath
110+
doctest:
111+
main: Doctest.hs
112+
source-dirs: test
113113

114114
executables:
115115
readme:

test/Doctest.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Main (main) where
1+
module Doctest (main) where
22

33
-- Runs doctest on all files in "src" dir. Assumes:
44
-- (a) You are using hpack

0 commit comments

Comments
 (0)