on 0.11.2.1 help sign in
typeable/aeson/aeson.cabal
189 lines 4.6 kB history raw
1name: aeson
2version: 0.11.2.1
3license: BSD3
4license-file: LICENSE
5category: Text, Web, JSON
6copyright: (c) 2011-2016 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.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.2
12synopsis: Fast JSON parsing and encoding
13cabal-version: >= 1.10
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 include/overlapping-compat.h
50 changelog.md
51 examples/*.cabal
52 examples/*.hs
53 examples/Twitter/*.hs
54 include/*.h
56flag developer
57 description: operate in developer mode
58 default: False
59 manual: True
61flag old-locale
62 description: If false then depend on time >= 1.5.
63 .
64 If true then depend on time < 1.5 together with old-locale.
65 default: False
67library
68 default-language: Haskell2010
70 exposed-modules:
71 Data.Aeson
72 Data.Aeson.Encode
73 Data.Aeson.Internal
74 Data.Aeson.Internal.Time
75 Data.Aeson.Parser
76 Data.Aeson.Types
77 Data.Aeson.TH
79 other-modules:
80 Data.Aeson.Encode.Builder
81 Data.Aeson.Encode.Functions
82 Data.Aeson.Functions
83 Data.Aeson.Parser.Internal
84 Data.Aeson.Parser.Time
85 Data.Aeson.Types.Class
86 Data.Aeson.Types.Generic
87 Data.Aeson.Types.Instances
88 Data.Aeson.Types.Internal
90 build-depends:
91 attoparsec >= 0.13.0.1,
92 base >= 4.5 && < 5,
93 bytestring >= 0.10.4.0,
94 containers,
95 deepseq,
96 dlist >= 0.2,
97 fail == 4.9.*,
98 ghc-prim >= 0.2,
99 hashable >= 1.1.2.0,
100 mtl,
101 scientific >= 0.3.1 && < 0.4,
102 syb,
103 tagged >=0.8.3 && <0.9,
104 template-haskell >= 2.7,
105 text >= 1.1.1.0,
106 transformers,
107 unordered-containers >= 0.2.5.0,
108 vector >= 0.8
110 if !impl(ghc >= 8.0)
111 -- `Data.Semigroup` is available in base only since GHC 8.0 / base 4.9
112 build-depends: semigroups >= 0.16.1 && < 0.19
114 if !impl(ghc >= 7.10)
115 -- `Numeric.Natural` is available in base only since GHC 7.10 / base 4.8
116 build-depends: nats >=1 && <1.2
118 if flag(old-locale)
119 build-depends: time < 1.5, old-locale
120 else
121 build-depends: time >= 1.5
123 if flag(developer)
124 ghc-prof-options: -auto-all
126 ghc-options: -O2 -Wall
128 include-dirs: include
130test-suite tests
131 default-language: Haskell2010
132 type: exitcode-stdio-1.0
133 hs-source-dirs: tests
134 main-is: Tests.hs
135 other-modules:
136 DataFamilies.Properties
137 DataFamilies.Instances
138 DataFamilies.Encoders
139 DataFamilies.Types
140 Encoders
141 Functions
142 Instances
143 Options
144 Properties
145 Types
146 UnitTests
148 ghc-options: -Wall -threaded -rtsopts
150 build-depends:
151 HUnit,
152 QuickCheck >= 2.7 && <2.10,
153 aeson,
154 attoparsec,
155 base,
156 base-orphans >=0.5.3 && <0.6,
157 bytestring,
158 containers,
159 ghc-prim >= 0.2,
160 hashable >= 1.1.2.0,
161 tagged,
162 template-haskell,
163 test-framework,
164 test-framework-hunit,
165 test-framework-quickcheck2,
166 text,
167 time,
168 unordered-containers,
169 vector,
170 quickcheck-instances >=0.3.12
172 if !impl(ghc >= 8.0)
173 build-depends: semigroups >= 0.16.1 && < 0.19
175 if flag(old-locale)
176 build-depends: time < 1.5, old-locale
177 else
178 build-depends: time >= 1.5
180 if !impl(ghc >= 7.10)
181 build-depends: nats >=1 && <1.2
183source-repository head
184 type: git
185 location: git://github.com/bos/aeson.git
187source-repository head
188 type: mercurial
189 location: https://bitbucket.org/bos/aeson