@@ -2,17 +2,70 @@ name: aeson-benchmarks
3build-type: Simple
3build-type: Simple
5−cabal-version: >=1.2
5+cabal-version: >=1.8
8+ description: If false then depend on time >= 1.5.
10+ If true then depend on time < 1.5 together with old-locale.
25+ Data.Aeson.Encode.ByteString
27+ Data.Aeson.Parser.Internal
28+ Data.Aeson.Types.Class
29+ Data.Aeson.Types.Generic
30+ Data.Aeson.Types.Instances
31+ Data.Aeson.Types.Internal
34+ attoparsec >= 0.13.0.0,
36+ bytestring >= 0.10.4.0,
43+ scientific >= 0.3.1 && < 0.4,
45+ template-haskell >= 2.4,
48+ unordered-containers >= 0.2.3.0,
52+ build-depends: time < 1.5, old-locale
54+ build-depends: time >= 1.5
56+ ghc-options: -O2 -Wall
57+ cpp-options: -DGENERICS
7executable aeson-benchmark-compare-with-json
59executable aeson-benchmark-compare-with-json
8 main-is: CompareWithJSON.hs
60 main-is: CompareWithJSON.hs
9 ghc-options: -Wall -O2 -rtsopts
61 ghc-options: -Wall -O2 -rtsopts
10 build-depends:
62 build-depends:
11− aeson,
63+ aeson-benchmarks,
13 blaze-builder,
65 blaze-builder,
14 bytestring,
66 bytestring,
15 criterion,
67 criterion,
@@ -20,16 +73,22 @@ executable aeson-benchmark-aeson-encode
20 main-is: AesonEncode.hs
73 main-is: AesonEncode.hs
21 ghc-options: -Wall -O2 -rtsopts
74 ghc-options: -Wall -O2 -rtsopts
22 build-depends:
75 build-depends:
23− aeson,
76+ aeson-benchmarks,
26executable aeson-benchmark-aeson-parse
83executable aeson-benchmark-aeson-parse
27 main-is: AesonParse.hs
84 main-is: AesonParse.hs
28 ghc-options: -Wall -O2 -rtsopts
85 ghc-options: -Wall -O2 -rtsopts
29 build-depends:
86 build-depends:
30− aeson,
87+ aeson-benchmarks,
31 attoparsec,
88 attoparsec,
34executable aeson-benchmark-json-parse
93executable aeson-benchmark-json-parse
35 main-is: JsonParse.hs
94 main-is: JsonParse.hs