on master help sign in
Get benchmarks building in-place
deb5982Bryan O'Sullivan
benchmarks/aeson-benchmarks.cabal+65−6
@@ -2,17 +2,70 @@ name: aeson-benchmarks
2version: 0
2version: 0
3build-type: Simple
3build-type: Simple
4
4
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
6
58
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,
12 base,
64 base,
13 blaze-builder,
65 blaze-builder,
14 bytestring,
66 bytestring,
15 criterion,
67 criterion,
68+ deepseq,
16 json,
69 json,
17 text
70 text
18
71
@@ -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,
77+ attoparsec,
24− base
78+ base,
79+ bytestring,
80+ deepseq,
81+ time
25
82
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,
32− base
89+ base,
90+ bytestring,
91+ time
33
92
34executable aeson-benchmark-json-parse
93executable aeson-benchmark-json-parse
35 main-is: JsonParse.hs
94 main-is: JsonParse.hs