on master help sign in
Get benchmarks building in-place
commitdeb59828ac24cc4feb859a711ca16b257078ffbb authorBryan O'Sullivan <bos@serpentine.com> dateSun 10 May 2015, 22:23 (11 years ago) parent0c907c7
1 file changed+65−6
benchmarks/aeson-benchmarks.cabal+65−6
benchmarks/aeson-benchmarks.cabal+65−6
@@ -2,17 +2,70 @@ name: aeson-benchmarks
22version: 0
33build-type: Simple
44
5−cabal-version: >=1.2
5+cabal-version: >=1.8
6+
7+flag old-locale
8+ description: If false then depend on time >= 1.5.
9+ .
10+ If true then depend on time < 1.5 together with old-locale.
11+ default: False
12+
13+library
14+ hs-source-dirs: ..
15+
16+ exposed-modules:
17+ Data.Aeson
18+ Data.Aeson.Encode
19+ Data.Aeson.Generic
20+ Data.Aeson.Parser
21+ Data.Aeson.Types
22+ Data.Aeson.TH
23+
24+ other-modules:
25+ Data.Aeson.Encode.ByteString
26+ Data.Aeson.Functions
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
32+
33+ build-depends:
34+ attoparsec >= 0.13.0.0,
35+ base == 4.*,
36+ bytestring >= 0.10.4.0,
37+ containers,
38+ deepseq,
39+ dlist >= 0.2,
40+ ghc-prim >= 0.2,
41+ hashable >= 1.1.2.0,
42+ mtl,
43+ scientific >= 0.3.1 && < 0.4,
44+ syb,
45+ template-haskell >= 2.4,
46+ text >= 1.1.1.0,
47+ transformers,
48+ unordered-containers >= 0.2.3.0,
49+ vector >= 0.7.1
50+
51+ if flag(old-locale)
52+ build-depends: time < 1.5, old-locale
53+ else
54+ build-depends: time >= 1.5
55+
56+ ghc-options: -O2 -Wall
57+ cpp-options: -DGENERICS
658
759executable aeson-benchmark-compare-with-json
860 main-is: CompareWithJSON.hs
961 ghc-options: -Wall -O2 -rtsopts
1062 build-depends:
11− aeson,
63+ aeson-benchmarks,
1264 base,
1365 blaze-builder,
1466 bytestring,
1567 criterion,
68+ deepseq,
1669 json,
1770 text
1871
@@ -20,16 +73,22 @@ executable aeson-benchmark-aeson-encode
2073 main-is: AesonEncode.hs
2174 ghc-options: -Wall -O2 -rtsopts
2275 build-depends:
23− aeson,
24− base
76+ aeson-benchmarks,
77+ attoparsec,
78+ base,
79+ bytestring,
80+ deepseq,
81+ time
2582
2683executable aeson-benchmark-aeson-parse
2784 main-is: AesonParse.hs
2885 ghc-options: -Wall -O2 -rtsopts
2986 build-depends:
30− aeson,
87+ aeson-benchmarks,
3188 attoparsec,
32− base
89+ base,
90+ bytestring,
91+ time
3392
3493executable aeson-benchmark-json-parse
3594 main-is: JsonParse.hs