Skip to content

Commit

Permalink
lib, cli, web: try to fix building with GHC 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Aug 9, 2016
1 parent c3b7622 commit 15ebae5
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hledger-lib/hledger-lib.cabal
Expand Up @@ -83,6 +83,9 @@ library
, HUnit
, parsec
, semigroups
if impl(ghc <7.6)
build-depends:
ghc-prim
if flag(oldtime)
build-depends:
time <1.5
Expand Down Expand Up @@ -170,6 +173,9 @@ test-suite doctests
, HUnit
, doctest >=0.8
, Glob >=0.7
if impl(ghc <7.6)
build-depends:
ghc-prim
default-language: Haskell2010

test-suite hunittests
Expand Down Expand Up @@ -208,6 +214,9 @@ test-suite hunittests
, hledger-lib
, test-framework
, test-framework-hunit
if impl(ghc <7.6)
build-depends:
ghc-prim
if flag(oldtime)
build-depends:
time <1.5
Expand Down
10 changes: 10 additions & 0 deletions hledger-lib/package.yaml
Expand Up @@ -118,6 +118,9 @@ library:
- parsec
- semigroups
when:
- condition: impl(ghc <7.6)
dependencies:
- ghc-prim
- condition: flag(oldtime)
then:
dependencies:
Expand All @@ -133,6 +136,10 @@ tests:
dependencies:
- doctest >=0.8
- Glob >=0.7
when:
- condition: impl(ghc <7.6)
dependencies:
- ghc-prim
hunittests:
main: hunittests.hs
source-dirs: tests
Expand All @@ -141,6 +148,9 @@ tests:
- test-framework
- test-framework-hunit
when:
- condition: impl(ghc <7.6)
dependencies:
- ghc-prim
- condition: flag(oldtime)
then:
dependencies:
Expand Down
9 changes: 9 additions & 0 deletions hledger-web/hledger-web.cabal
Expand Up @@ -170,6 +170,9 @@ library
else
build-depends:
time >=1.5
if impl(ghc <7.6)
build-depends:
ghc-prim
exposed-modules:
Application
Foundation
Expand Down Expand Up @@ -247,6 +250,9 @@ executable hledger-web
else
build-depends:
time >=1.5
if impl(ghc <7.6)
build-depends:
ghc-prim
default-language: Haskell2010

test-suite test
Expand Down Expand Up @@ -302,4 +308,7 @@ test-suite test
else
build-depends:
time >=1.5
if impl(ghc <7.6)
build-depends:
ghc-prim
default-language: Haskell2010
9 changes: 9 additions & 0 deletions hledger-web/package.yaml
Expand Up @@ -132,6 +132,9 @@ library:
else:
dependencies:
- time >=1.5
- condition: impl(ghc <7.6)
dependencies:
- ghc-prim
executables:
hledger-web:
main: main.hs
Expand All @@ -157,6 +160,9 @@ executables:
else:
dependencies:
- time >=1.5
- condition: impl(ghc <7.6)
dependencies:
- ghc-prim
tests:
test:
main: main.hs
Expand All @@ -175,5 +181,8 @@ tests:
else:
dependencies:
- time >=1.5
- condition: impl(ghc <7.6)
dependencies:
- ghc-prim
stability: stable
tested-with: GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0
9 changes: 9 additions & 0 deletions hledger/hledger.cabal
Expand Up @@ -111,6 +111,9 @@ library
, text >=0.11
, utf8-string >=0.3.5 && <1.1
, wizards ==1.0.*
if impl(ghc <7.6)
build-depends:
ghc-prim
if impl(ghc >=7.10)
build-depends:
shakespeare >=2.0.2.2 && <2.1
Expand Down Expand Up @@ -192,6 +195,9 @@ executable hledger
, wizards ==1.0.*
if flag(threaded)
ghc-options: -threaded
if impl(ghc <7.6)
build-depends:
ghc-prim
if impl(ghc >=7.10)
build-depends:
shakespeare >=2.0.2.2 && <2.1
Expand Down Expand Up @@ -250,6 +256,9 @@ test-suite test
, wizards ==1.0.*
, test-framework
, test-framework-hunit
if impl(ghc <7.6)
build-depends:
ghc-prim
if impl(ghc >=7.10)
build-depends:
shakespeare >=2.0.2.2 && <2.1
Expand Down
9 changes: 9 additions & 0 deletions hledger/package.yaml
Expand Up @@ -125,6 +125,9 @@ library:
- utf8-string >=0.3.5 && <1.1
- wizards ==1.0.*
when:
- condition: impl(ghc <7.6)
dependencies:
- ghc-prim
- condition: impl(ghc >=7.10)
then:
dependencies:
Expand Down Expand Up @@ -173,6 +176,9 @@ executables:
when:
- condition: flag(threaded)
ghc-options: -threaded
- condition: impl(ghc <7.6)
dependencies:
- ghc-prim
- condition: impl(ghc >=7.10)
then:
dependencies:
Expand Down Expand Up @@ -221,6 +227,9 @@ tests:
- test-framework
- test-framework-hunit
when:
- condition: impl(ghc <7.6)
dependencies:
- ghc-prim
- condition: impl(ghc >=7.10)
then:
dependencies:
Expand Down

0 comments on commit 15ebae5

Please sign in to comment.