lib: more consistent deps, fixing doctests with Cabal 2 (fixes #596)
This commit is contained in:
parent
f16052b992
commit
dbef13b13f
@ -187,6 +187,13 @@ test-suite doctests
|
|||||||
if impl(ghc <7.6)
|
if impl(ghc <7.6)
|
||||||
build-depends:
|
build-depends:
|
||||||
ghc-prim
|
ghc-prim
|
||||||
|
if flag(oldtime)
|
||||||
|
build-depends:
|
||||||
|
time <1.5
|
||||||
|
, old-locale
|
||||||
|
else
|
||||||
|
build-depends:
|
||||||
|
time >=1.5
|
||||||
other-modules:
|
other-modules:
|
||||||
Hledger
|
Hledger
|
||||||
Hledger.Data
|
Hledger.Data
|
||||||
|
|||||||
@ -71,6 +71,18 @@ dependencies:
|
|||||||
#- parsers >= 0.5
|
#- parsers >= 0.5
|
||||||
#- system-filepath
|
#- system-filepath
|
||||||
#- trifecta >= 0.91
|
#- trifecta >= 0.91
|
||||||
|
when:
|
||||||
|
- condition: impl(ghc <7.6)
|
||||||
|
dependencies:
|
||||||
|
- ghc-prim
|
||||||
|
- condition: flag(oldtime)
|
||||||
|
then:
|
||||||
|
dependencies:
|
||||||
|
- time <1.5
|
||||||
|
- old-locale
|
||||||
|
else:
|
||||||
|
dependencies:
|
||||||
|
- time >=1.5
|
||||||
ghc-options:
|
ghc-options:
|
||||||
- -Wall
|
- -Wall
|
||||||
- -fno-warn-unused-do-bind
|
- -fno-warn-unused-do-bind
|
||||||
@ -133,18 +145,6 @@ library:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- parsec
|
- parsec
|
||||||
- semigroups
|
- semigroups
|
||||||
when:
|
|
||||||
- condition: impl(ghc <7.6)
|
|
||||||
dependencies:
|
|
||||||
- ghc-prim
|
|
||||||
- condition: flag(oldtime)
|
|
||||||
then:
|
|
||||||
dependencies:
|
|
||||||
- time <1.5
|
|
||||||
- old-locale
|
|
||||||
else:
|
|
||||||
dependencies:
|
|
||||||
- time >=1.5
|
|
||||||
tests:
|
tests:
|
||||||
doctests:
|
doctests:
|
||||||
main: doctests.hs
|
main: doctests.hs
|
||||||
@ -152,10 +152,6 @@ tests:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- doctest >=0.8
|
- doctest >=0.8
|
||||||
- Glob >=0.7
|
- Glob >=0.7
|
||||||
when:
|
|
||||||
- condition: impl(ghc <7.6)
|
|
||||||
dependencies:
|
|
||||||
- ghc-prim
|
|
||||||
hunittests:
|
hunittests:
|
||||||
main: hunittests.hs
|
main: hunittests.hs
|
||||||
source-dirs: tests
|
source-dirs: tests
|
||||||
@ -164,17 +160,5 @@ tests:
|
|||||||
- parsec
|
- parsec
|
||||||
- test-framework
|
- test-framework
|
||||||
- test-framework-hunit
|
- test-framework-hunit
|
||||||
when:
|
|
||||||
- condition: impl(ghc <7.6)
|
|
||||||
dependencies:
|
|
||||||
- ghc-prim
|
|
||||||
- condition: flag(oldtime)
|
|
||||||
then:
|
|
||||||
dependencies:
|
|
||||||
- time <1.5
|
|
||||||
- old-locale
|
|
||||||
else:
|
|
||||||
dependencies:
|
|
||||||
- time >=1.5
|
|
||||||
stability: stable
|
stability: stable
|
||||||
tested-with: GHC==7.10.3, GHC==8.0
|
tested-with: GHC==7.10.3, GHC==8.0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user