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