Skip to content

Commit 6bc3b7d

Browse files
committed
travis GHC updates, stack updates, fix benchmark build failure, fix some .cabal warnings in benchmarks
1 parent 07564d8 commit 6bc3b7d

File tree

12 files changed

+35
-28
lines changed

12 files changed

+35
-28
lines changed

.travis.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ before_cache:
1919

2020
matrix:
2121
include:
22-
- env: BUILD=hlint CABALVER=1.24 GHCVER=8.0.2
22+
- env: BUILD=hlint CABALVER=2.0 GHCVER=8.2.1
23+
compiler: ": #GHC 8.2.1"
24+
addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.1], sources: [hvr-ghc]}}
25+
- env: BUILD=stack CABALVER=2.0 GHCVER=8.2.1 STACK_YAML=stack-bench.yaml
26+
compiler: ": #GHC 8.2.1"
27+
addons: {apt: {packages: [cabal-install-2.0,ghc-8.2.1], sources: [hvr-ghc]}}
28+
- env: BUILD=stack CABALVER=2.0 GHCVER=8.2.1 STACK_YAML=stack-ffi-unescape.yaml
29+
compiler: ": #GHC 8.2.1"
30+
addons: {apt: {packages: [cabal-install-2.0,ghc-8.0.2], sources: [hvr-ghc]}}
31+
- env: BUILD=cabal CABALVER=2.0 GHCVER=8.0.2
2332
compiler: ": #GHC 8.0.2"
24-
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
25-
- env: BUILD=stack CABALVER=1.24 GHCVER=8.0.2 STACK_YAML=stack-bench.yaml
26-
compiler: ": #GHC 8.0.2"
27-
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
28-
- env: BUILD=stack CABALVER=1.24 GHCVER=8.0.2 STACK_YAML=stack-ffi-unescape.yaml
29-
compiler: ": #GHC 8.0.2"
30-
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
31-
- env: BUILD=cabal CABALVER=1.24 GHCVER=8.0.2
32-
compiler: ": #GHC 8.0.2"
33-
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
33+
addons: {apt: {packages: [cabal-install-2.0,ghc-8.0.2], sources: [hvr-ghc]}}
3434
- env: BUILD=cabal CABALVER=1.18 GHCVER=7.4.2
3535
compiler: ": #GHC 7.4.2"
3636
addons: {apt: {packages: [cabal-install-1.18,ghc-7.4.2], sources: [hvr-ghc]}}

benchmarks/aeson-benchmarks.cabal

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: aeson-benchmarks
22
version: 0
33
build-type: Simple
4-
5-
cabal-version: >=1.8
4+
cabal-version: >=1.10
65

76
flag bytestring-builder
87
description: Depend on the bytestring-builder package for backwards compatibility.
@@ -15,6 +14,7 @@ library
1514
c-sources: ../cbits/unescape_string.c
1615
exposed-modules:
1716
Data.Aeson
17+
Data.Aeson.Compat
1818
Data.Aeson.Encoding
1919
Data.Aeson.Encoding.Builder
2020
Data.Aeson.Encoding.Internal
@@ -81,6 +81,7 @@ library
8181
cpp-options: -DGENERICS
8282

8383
executable aeson-benchmark-escape
84+
default-language: Haskell2010
8485
main-is: Escape.hs
8586
hs-source-dirs: ../examples .
8687
ghc-options: -Wall -O2 -rtsopts
@@ -95,6 +96,7 @@ executable aeson-benchmark-escape
9596
text
9697

9798
executable aeson-benchmark-compare
99+
default-language: Haskell2010
98100
main-is: Compare.hs
99101
hs-source-dirs: ../examples .
100102
ghc-options: -Wall -O2 -rtsopts
@@ -118,6 +120,7 @@ executable aeson-benchmark-compare
118120
text
119121

120122
executable aeson-benchmark-micro
123+
default-language: Haskell2010
121124
main-is: Micro.hs
122125
hs-source-dirs: ../examples .
123126
ghc-options: -Wall -O2 -rtsopts
@@ -132,6 +135,7 @@ executable aeson-benchmark-micro
132135
text
133136

134137
executable aeson-benchmark-typed
138+
default-language: Haskell2010
135139
main-is: Typed.hs
136140
hs-source-dirs: ../examples .
137141
ghc-options: -Wall -O2 -rtsopts
@@ -166,6 +170,7 @@ executable aeson-benchmark-typed
166170
build-depends: bytestring >= 0.10.4
167171

168172
executable aeson-benchmark-compare-with-json
173+
default-language: Haskell2010
169174
main-is: CompareWithJSON.hs
170175
ghc-options: -Wall -O2 -rtsopts
171176
cpp-options: -DHAS_BOTH_AESON_AND_BENCHMARKS
@@ -182,6 +187,7 @@ executable aeson-benchmark-compare-with-json
182187
text
183188

184189
executable aeson-benchmark-aeson-encode
190+
default-language: Haskell2010
185191
main-is: AesonEncode.hs
186192
ghc-options: -Wall -O2 -rtsopts
187193
build-depends:
@@ -194,6 +200,7 @@ executable aeson-benchmark-aeson-encode
194200
time
195201

196202
executable aeson-benchmark-aeson-parse
203+
default-language: Haskell2010
197204
main-is: AesonParse.hs
198205
ghc-options: -Wall -O2 -rtsopts
199206
build-depends:
@@ -205,6 +212,7 @@ executable aeson-benchmark-aeson-parse
205212
time
206213

207214
executable aeson-benchmark-json-parse
215+
default-language: Haskell2010
208216
main-is: JsonParse.hs
209217
ghc-options: -Wall -O2 -rtsopts
210218
build-depends:
@@ -215,6 +223,7 @@ executable aeson-benchmark-json-parse
215223
time
216224

217225
executable aeson-benchmark-dates
226+
default-language: Haskell2010
218227
main-is: Dates.hs
219228
ghc-options: -Wall -O2 -rtsopts
220229
build-depends:
@@ -228,6 +237,7 @@ executable aeson-benchmark-dates
228237
time
229238

230239
executable aeson-benchmark-map
240+
default-language: Haskell2010
231241
main-is: AesonMap.hs
232242
ghc-options: -Wall -O2 -rtsopts
233243
build-depends:
@@ -245,6 +255,7 @@ executable aeson-benchmark-map
245255
unordered-containers
246256

247257
executable aeson-benchmark-foldable
258+
default-language: Haskell2010
248259
main-is: AesonFoldable.hs
249260
ghc-options: -Wall -O2 -rtsopts
250261
build-depends:

cabal.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
with-compiler: ghc
2-
packages: .
2+
packages: ., attoparsec-iso8601

examples/Twitter/Options.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import Data.Aeson
1111
import Data.Aeson.Types
1212
#else
1313
import "aeson" Data.Aeson
14-
import "aeson" Data.Aeson.Types
1514
import qualified "aeson-benchmarks" Data.Aeson as B
16-
import qualified "aeson-benchmarks" Data.Aeson.Types as B
1715
#endif
1816

1917
twitterOptions :: Options

stack-bench.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-8.5
1+
resolver: nightly-2017-10-18
22
# We use aeson in the snapshot to
33
# - avoid recompilation of criterion
44
# - compare against it
@@ -10,6 +10,4 @@ work-dir: .stack-work-bench
1010
packages:
1111
- benchmarks
1212
extra-deps:
13-
- aeson-1.2.1.0
14-
- quickcheck-instances-0.3.14
15-
- th-abstraction-0.2.2.0
13+
- aeson-1.2.2.0

stack-ffi-unescape.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: nightly-2017-09-04
1+
resolver: nightly-2017-10-18
22
packages:
33
- '.'
44
flags:

stack-lts6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-6.30
1+
resolver: lts-6.35
22
packages:
33
- '.'
44
- attoparsec-iso8601

stack-lts7.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-7.19
1+
resolver: lts-7.24
22
packages:
33
- '.'
44
- attoparsec-iso8601

stack-lts8.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-8.5
1+
resolver: lts-8.24
22
packages:
33
- '.'
44
- attoparsec-iso8601

stack-lts9.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-9.3
1+
resolver: lts-9.9
22
packages:
33
- '.'
44
- attoparsec-iso8601

0 commit comments

Comments
 (0)