on 0.10.0.0 help sign in
typeable/aeson/aeson.cabal
161 lines 3.9 kB history raw
1name: aeson
2version: 0.10.0.0
3license: BSD3
4license-file: LICENSE
5category: Text, Web, JSON
6copyright: (c) 2011-2015 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.4, GHC == 7.6, GHC == 7.8, GHC == 7.10
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 a late 2013 MacBook Pro (2.6GHz Core i7),
25 running 64-bit GHC 7.10.1, for mostly-English tweets from Twitter's
26 JSON search API:
27 .
28 * 6.4 KB payloads, English: 7570 msg\/sec (47.6 MB\/sec)
29 .
30 * 14.6 KB payloads, Japanese: 3261 msg\/sec (46.6 MB\/sec)
31 .
32 Encoding performance on the same machine and data:
33 .
34 * 6.4 KB payloads, English: 22738 msg\/sec (142.9 MB\/sec)
35 .
36 * 14.6 KB payloads, Japanese: 15911 msg\/sec (227.4 MB\/sec)
37 .
38 (A note on naming: in Greek mythology, Aeson was the father of Jason.)
40extra-source-files:
41 README.markdown
42 benchmarks/*.cabal
43 benchmarks/*.hs
44 benchmarks/*.py
45 benchmarks/Compare/*.hs
46 benchmarks/Makefile
47 benchmarks/Typed/*.hs
48 benchmarks/json-data/*.json
49 changelog.md
50 examples/*.cabal
51 examples/*.hs
52 examples/Twitter/*.hs
54flag developer
55 description: operate in developer mode
56 default: False
57 manual: True
59flag old-locale
60 description: If false then depend on time >= 1.5.
61 .
62 If true then depend on time < 1.5 together with old-locale.
63 default: False
65library
66 exposed-modules:
67 Data.Aeson
68 Data.Aeson.Encode
69 Data.Aeson.Internal
70 Data.Aeson.Internal.Time
71 Data.Aeson.Parser
72 Data.Aeson.Types
73 Data.Aeson.TH
75 other-modules:
76 Data.Aeson.Encode.Builder
77 Data.Aeson.Encode.Functions
78 Data.Aeson.Functions
79 Data.Aeson.Parser.Internal
80 Data.Aeson.Parser.Time
81 Data.Aeson.Types.Class
82 Data.Aeson.Types.Generic
83 Data.Aeson.Types.Instances
84 Data.Aeson.Types.Internal
86 build-depends:
87 attoparsec >= 0.13.0.1,
88 base >= 4.5 && < 5,
89 bytestring >= 0.10.4.0,
90 containers,
91 deepseq,
92 dlist >= 0.2,
93 ghc-prim >= 0.2,
94 hashable >= 1.1.2.0,
95 mtl,
96 scientific >= 0.3.1 && < 0.4,
97 syb,
98 template-haskell >= 2.7,
99 text >= 1.1.1.0,
100 transformers,
101 unordered-containers >= 0.2.5.0,
102 vector >= 0.7.1
104 if flag(old-locale)
105 build-depends: time < 1.5, old-locale
106 else
107 build-depends: time >= 1.5
109 if flag(developer)
110 ghc-options: -Werror
111 ghc-prof-options: -auto-all
113 ghc-options: -O2 -Wall
115test-suite tests
116 type: exitcode-stdio-1.0
117 hs-source-dirs: tests
118 main-is: Tests.hs
119 other-modules:
120 DataFamilies.Encoders
121 DataFamilies.Types
122 Encoders
123 Functions
124 Instances
125 Options
126 Properties
127 Types
128 UnitTests
130 ghc-options: -Wall -threaded -rtsopts
132 build-depends:
133 HUnit,
134 QuickCheck >= 2.7,
135 aeson,
136 attoparsec,
137 base,
138 bytestring,
139 containers,
140 ghc-prim >= 0.2,
141 template-haskell,
142 test-framework,
143 test-framework-hunit,
144 test-framework-quickcheck2,
145 text,
146 time,
147 unordered-containers,
148 vector
150 if flag(old-locale)
151 build-depends: time < 1.5, old-locale
152 else
153 build-depends: time >= 1.5
155source-repository head
156 type: git
157 location: git://github.com/bos/aeson.git
159source-repository head
160 type: mercurial
161 location: https://bitbucket.org/bos/aeson