on 0.1.0.0 help sign in
typeable/aeson/aeson.cabal
94 lines 2.4 kB history raw
1name: aeson
2version: 0.1.0.0
3license: BSD3
4license-file: LICENSE
5category: Text, Web, JSON
6copyright: Copyright 2011 MailRank, Inc.
7author: Bryan O'Sullivan <bos@mailrank.com>
8maintainer: Bryan O'Sullivan <bos@mailrank.com>
9stability: experimental
10tested-with: GHC == 6.12.3
11synopsis: Fast JSON parsing and generation
12cabal-version: >= 1.8
13homepage: http://github.com/mailrank/aeson
14bug-reports: http://github.com/mailrank/aeson/issues
15build-type: Simple
16description:
17 A JSON parsing and generation library optimized for ease of use
18 and high performance.
19 .
20 Parsing performance with GHC 6.12.3 on a late 2010 MacBook Pro
21 (2.66GHz Core i7), for mostly-English tweets from Twitter's JSON
22 search API:
23 .
24 * 854 bytes: 21054 msg\/sec (17.1 MB/sec)
25 .
26 * 6.4 KB: 4545 msg\/sec (28.6 MB/sec)
27 .
28 * 31.2 KB: 856 msg\/sec (26.1 MB/sec)
29 .
30 * 61.5 KB: 403 msg\/sec (24.2 MB/sec)
31 .
32 Handling heavily-escaped text is a little more work. Here is
33 parsing performance with Japanese tweets, where much of the text
34 is entirely Unicode-escaped:
35 .
36 * 14.6 KB: 1250 msg\/sec (17.9 MB/sec)
37 .
38 * 44.1 KB: 363 msg\/sec (15.6 MB/sec)
39 .
40 Encoding performance on the same machine and data:
41 .
42 * 854 bytes: 10647 msg\/sec (8.7 MB/sec)
43 .
44 * 6.4 KB: 2098 msg\/sec (13.2 MB/sec)
45 .
46 * 31.2 KB: 422 msg\/sec (12.9 MB/sec)
47 .
48 * 61.5 KB: 219 msg\/sec (13.2 MB/sec)
49 .
50 (A note on naming: in Greek mythology, Aeson was the father of Jason.)
52extra-source-files:
53 README.markdown
54 benchmarks/AesonParse.hs
55 benchmarks/EncodeFile.hs
56 benchmarks/JsonParse.hs
57 benchmarks/ReadFile.hs
59flag developer
60 description: operate in developer mode
61 default: False
63library
64 exposed-modules:
65 Data.Aeson
66 Data.Aeson.Encode
67 Data.Aeson.Parser
68 Data.Aeson.Types
70 build-depends:
71 attoparsec >= 0.8.4.0,
72 base == 4.*,
73 blaze-builder >= 0.2.1.4,
74 bytestring,
75 containers,
76 deepseq,
77 old-locale,
78 text >= 0.11.0.2,
79 time,
80 vector >= 0.7
82 if flag(developer)
83 ghc-options: -Werror
84 ghc-prof-options: -auto-all
86 ghc-options: -Wall
88source-repository head
89 type: git
90 location: http://github.com/mailrank/aeson
92source-repository head
93 type: mercurial
94 location: http://bitbucket.org/bos/aeson