Skip to content

Commit c5a9a4d

Browse files
committed
Merge pull request #2 from fimad/ghc-10
Support for ghc 7.10
2 parents 2c27297 + 046f43f commit c5a9a4d

File tree

5 files changed

+23
-12
lines changed

5 files changed

+23
-12
lines changed

.travis.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
ghc: 7.8
2-
language: haskell
31
notifications:
42
email: false
53

6-
install: []
4+
env:
5+
- CABALVER=1.18 GHCVER=7.8.4
6+
- CABALVER=1.22 GHCVER=7.10.2
7+
8+
before_install:
9+
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
10+
- travis_retry sudo apt-get update
11+
- travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
12+
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
13+
14+
install:
15+
- cabal --version
16+
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
17+
- travis_retry cabal update
718

819
before_script:
920
- wget https://www.stackage.org/lts/cabal.config

example/prometheus-haskell-example.cabal

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ executable prometheus-haskell-example
2020
main-is: Main.hs
2121
default-language: Haskell2010
2222
build-depends:
23-
base >=4.6 && <4.8
23+
base >=4.7 && <5
2424
, bytestring >=0.9
2525
, http-types
2626
, prometheus-client

prometheus-client/prometheus-client.cabal

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ library
3434
, Prometheus.Registry
3535
build-depends:
3636
atomic-primops >=0.4
37-
, base >=4.6 && <4.8
37+
, base >=4.7 && <5
3838
, bytestring >=0.9
3939
, containers
4040
, mtl >=2
@@ -51,7 +51,7 @@ test-suite doctest
5151
ghc-options: -Wall
5252
main-is: doctest.hs
5353
build-depends:
54-
base
54+
base >=4.7 && <5
5555
, doctest
5656
, prometheus-client
5757

@@ -63,7 +63,7 @@ test-suite spec
6363
build-depends:
6464
QuickCheck
6565
, atomic-primops
66-
, base >=4.6 && <4.8
66+
, base >=4.7 && <5
6767
, bytestring
6868
, containers
6969
, hspec
@@ -81,7 +81,7 @@ benchmark bench
8181
hs-source-dirs: benchmarks
8282
main-is: Main.hs
8383
build-depends:
84-
base >=4.6 && <4.8
84+
base >=4.7 && <5
8585
, bytestring
8686
, criterion >=1.1
8787
, prometheus-client

prometheus-metrics-ghc/prometheus-metrics-ghc.cabal

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ library
2424
exposed-modules:
2525
Prometheus.Metric.GHC
2626
build-depends:
27-
base >=4.6 && <4.8
27+
base >=4.7 && <5
2828
, prometheus-client
2929
, utf8-string >=0.3
3030
ghc-options: -Wall
@@ -36,6 +36,6 @@ test-suite doctest
3636
ghc-options: -Wall
3737
main-is: doctest.hs
3838
build-depends:
39-
base
39+
base >=4.7 && <5
4040
, doctest
4141
, prometheus-client

wai-middleware-prometheus/wai-middleware-prometheus.cabal

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ library
2424
exposed-modules:
2525
Network.Wai.Middleware.Prometheus
2626
build-depends:
27-
base >=4.6 && <4.8
27+
base >=4.7 && <5
2828
, bytestring >=0.9
2929
, data-default
3030
, http-types
@@ -41,6 +41,6 @@ test-suite doctest
4141
ghc-options: -Wall
4242
main-is: doctest.hs
4343
build-depends:
44-
base
44+
base >=4.7 && <5
4545
, doctest
4646
, prometheus-client

0 commit comments

Comments
 (0)