on 0.11.2.1 help sign in
typeable/aeson/benchmarks/aeson-benchmarks.cabal
164 lines 3.3 kB history raw
1name: aeson-benchmarks
2version: 0
3build-type: Simple
5cabal-version: >=1.8
7flag 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
13library
14 hs-source-dirs: .. .
16 exposed-modules:
17 Data.Aeson
18 Data.Aeson.Encode
19 Data.Aeson.Encode.Builder
20 Data.Aeson.Encode.Functions
21 Data.Aeson.Functions
22 Data.Aeson.Internal
23 Data.Aeson.Internal.Time
24 Data.Aeson.Parser
25 Data.Aeson.Parser.Internal
26 Data.Aeson.Parser.Time
27 Data.Aeson.TH
28 Data.Aeson.Types
29 Data.Aeson.Types.Class
30 Data.Aeson.Types.Generic
31 Data.Aeson.Types.Instances
32 Data.Aeson.Types.Internal
34 build-depends:
35 attoparsec >= 0.13.0.1,
36 base == 4.*,
37 bytestring >= 0.10.4.0,
38 containers,
39 deepseq,
40 dlist >= 0.2,
41 fail == 4.9.*,
42 ghc-prim >= 0.2,
43 hashable >= 1.1.2.0,
44 mtl,
45 scientific >= 0.3.1 && < 0.4,
46 syb,
47 tagged >=0.8.3 && <0.9,
48 template-haskell >= 2.4,
49 text >= 1.1.1.0,
50 time,
51 transformers,
52 unordered-containers >= 0.2.3.0,
53 vector >= 0.7.1
55 if !impl(ghc >= 8.0)
56 -- `Data.Semigroup` is available in base only since GHC 8.0 / base 4.9
57 build-depends: semigroups >= 0.16.1 && < 0.19
59 if flag(old-locale)
60 build-depends: time < 1.5, old-locale
61 else
62 build-depends: time >= 1.5
64 include-dirs: ../include
66 ghc-options: -O2 -Wall
67 cpp-options: -DGENERICS
69executable aeson-benchmark-compare
70 main-is: Compare.hs
71 hs-source-dirs: ../examples .
72 ghc-options: -Wall -O2 -rtsopts
73 build-depends:
74 aeson-benchmarks,
75 base,
76 buffer-builder,
77 bytestring,
78 criterion >= 1.0,
79 deepseq,
80 ghc-prim,
81 json-builder,
82 text
84executable aeson-benchmark-micro
85 main-is: Micro.hs
86 hs-source-dirs: ../examples .
87 ghc-options: -Wall -O2 -rtsopts
88 build-depends:
89 aeson-benchmarks,
90 base,
91 bytestring,
92 criterion >= 1.0,
93 deepseq,
94 ghc-prim,
95 text
97executable aeson-benchmark-typed
98 main-is: Typed.hs
99 hs-source-dirs: ../examples .
100 ghc-options: -Wall -O2 -rtsopts
101 build-depends:
102 aeson-benchmarks,
103 base,
104 bytestring,
105 criterion >= 1.0,
106 deepseq,
107 ghc-prim,
108 text,
109 time
111executable aeson-benchmark-compare-with-json
112 main-is: CompareWithJSON.hs
113 ghc-options: -Wall -O2 -rtsopts
114 build-depends:
115 aeson-benchmarks,
116 base,
117 blaze-builder,
118 bytestring,
119 criterion,
120 deepseq,
121 json,
122 text
124executable aeson-benchmark-aeson-encode
125 main-is: AesonEncode.hs
126 ghc-options: -Wall -O2 -rtsopts
127 build-depends:
128 aeson-benchmarks,
129 attoparsec,
130 base,
131 bytestring,
132 deepseq,
133 time
135executable aeson-benchmark-aeson-parse
136 main-is: AesonParse.hs
137 ghc-options: -Wall -O2 -rtsopts
138 build-depends:
139 aeson-benchmarks,
140 attoparsec,
141 base,
142 bytestring,
143 time
145executable aeson-benchmark-json-parse
146 main-is: JsonParse.hs
147 ghc-options: -Wall -O2 -rtsopts
148 build-depends:
149 base,
150 deepseq,
151 json,
152 time
154executable aeson-benchmark-dates
155 main-is: Dates.hs
156 ghc-options: -Wall -O2 -rtsopts
157 build-depends:
158 base,
159 bytestring,
160 criterion,
161 deepseq,
162 aeson-benchmarks,
163 text,
164 time