on 0.7.0.2 help sign in
typeable/aeson/aeson.cabal
184 lines 4.6 kB history raw
1name: aeson
2version: 0.7.0.2
3license: BSD3
4license-file: LICENSE
5category: Text, Web, JSON
6copyright: (c) 2011-2014 Bryan O'Sullivan
7 (c) 2011 MailRank, Inc.
8author: Bryan O'Sullivan <bos@serpentine.com>
9maintainer: Bryan O'Sullivan <bos@serpentine.com>
10stability: experimental
11tested-with: GHC == 7.0, GHC == 7.2, GHC == 7.4, GHC == 7.6
12synopsis: Fast JSON parsing and encoding
13cabal-version: >= 1.8
14homepage: https://github.com/bos/aeson
15bug-reports: https://github.com/bos/aeson/issues
16build-type: Simple
17description:
18 A JSON parsing and encoding library optimized for ease of use
19 and high performance.
20 .
21 To get started, see the documentation for the @Data.Aeson@ module
22 below.
23 .
24 Parsing performance on an early 2011 MacBook Pro (2.2GHz Core i7),
25 running 64-bit GHC 7.6.3, for mostly-English tweets from Twitter's
26 JSON search API:
27 .
28 * 0.8 KB: 34124 msg\/sec (27.8 MB\/sec)
29 .
30 * 6.4 KB: 6833 msg\/sec (43.0 MB\/sec)
31 .
32 * 11.8 KB: 3410 msg\/sec (39.2 MB\/sec)
33 .
34 * 31.2 KB: 1157 msg\/sec (35.3 MB\/sec)
35 .
36 * 61.5 KB: 542 msg\/sec (32.5 MB\/sec)
37 .
38 Handling heavily-escaped text is a little more work. Here is
39 parsing performance with Japanese tweets, where much of the text
40 is entirely Unicode-escaped.
41 .
42 * 14.6 KB: 2101 msg\/sec (30.0 MB\/sec)
43 .
44 * 44.1 KB: 667 msg\/sec (28.7 MB\/sec)
45 .
46 * 82.9 KB: 360 msg\/sec (29.2 MB\/sec)
47 .
48 Encoding performance on the same machine and data:
49 .
50 * English, 0.8 KB: 109697 msg\/sec (89.3 MB\/sec)
51 .
52 * English, 6.4 KB: 18517 msg\/sec (116.4 MB\/sec)
53 .
54 * Engish, 61.5 KB: 1963 msg\/sec (118.0 MB\/sec)
55 .
56 * Japanese, 14.6 KB: 12140 msg\/sec (173.5 MB\/sec)
57 .
58 * Japanese, 44.1 KB: 3980 msg\/sec (171.3 MB\/sec)
59 .
60 (A note on naming: in Greek mythology, Aeson was the father of Jason.)
62extra-source-files:
63 README.markdown
64 benchmarks/*.cabal
65 benchmarks/*.hs
66 benchmarks/*.py
67 benchmarks/Makefile
68 benchmarks/json-data/*.json
69 changelog
70 examples/*.hs
72flag developer
73 description: operate in developer mode
74 default: False
76flag blaze-builder
77 description: Use blaze-builder instead of bytestring >= 0.10
78 default: False
80flag new-bytestring-builder
81 description: Use the new bytestring builder available in bytestring >= 0.10.4.0
82 default: False
84library
85 exposed-modules:
86 Data.Aeson
87 Data.Aeson.Encode
88 Data.Aeson.Generic
89 Data.Aeson.Parser
90 Data.Aeson.Types
91 Data.Aeson.TH
93 other-modules:
94 Data.Aeson.Functions
95 Data.Aeson.Parser.Internal
96 Data.Aeson.Types.Class
97 Data.Aeson.Types.Instances
98 Data.Aeson.Types.Internal
100 if flag(new-bytestring-builder)
101 other-modules: Data.Aeson.Encode.ByteString
102 build-depends: bytestring >= 0.10.4.0,
103 text >= 1.1.0.0
104 else
105 build-depends: bytestring < 0.10.4.0,
106 text >= 0.11.1.0
108 if impl(ghc >= 7.2.1)
109 cpp-options: -DGENERICS
110 build-depends: ghc-prim >= 0.2, dlist >= 0.2
111 other-modules:
112 Data.Aeson.Types.Generic
114 build-depends:
115 attoparsec >= 0.10.2.1,
116 base == 4.*,
117 containers,
118 deepseq,
119 hashable >= 1.1.2.0,
120 mtl,
121 old-locale,
122 syb,
123 template-haskell >= 2.4,
124 time,
125 unordered-containers >= 0.2.3.0,
126 vector >= 0.7.1,
127 scientific >= 0.2
129 if flag(blaze-builder)
130 build-depends: blaze-builder >= 0.2.1.4
131 cpp-options: -DUSE_BLAZE_BUILDER
132 else
133 build-depends: bytestring >= 0.10
135 if flag(developer)
136 ghc-options: -Werror
137 ghc-prof-options: -auto-all
139 ghc-options: -O2 -Wall
141test-suite tests
142 type: exitcode-stdio-1.0
143 hs-source-dirs: tests
144 main-is: Properties.hs
145 other-modules:
146 Encoders
147 Functions
148 Instances
149 Options
150 Properties.Deprecated
151 Types
153 ghc-options:
154 -Wall -threaded -rtsopts
155 if impl(ghc < 7.4)
156 ghc-options: -fcontext-stack=40
157 if impl(ghc >= 7.2)
158 cpp-options: -DGHC_GENERICS
160 build-depends:
161 QuickCheck,
162 aeson,
163 attoparsec,
164 base,
165 containers,
166 bytestring,
167 template-haskell,
168 test-framework,
169 test-framework-quickcheck2,
170 test-framework-hunit,
171 HUnit,
172 text,
173 time,
174 unordered-containers,
175 vector,
176 ghc-prim >= 0.2
178source-repository head
179 type: git
180 location: git://github.com/bos/aeson.git
182source-repository head
183 type: mercurial
184 location: https://bitbucket.org/bos/aeson