on 0.11.1.2 help sign in
typeable/aeson/aeson.cabal
190 lines 4.7 kB history raw
1name: aeson
2version: 0.11.1.2
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.7.1
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.1
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-options: -Werror
125 ghc-prof-options: -auto-all
127 ghc-options: -O2 -Wall
129 include-dirs: include
131test-suite tests
132 default-language: Haskell2010
133 type: exitcode-stdio-1.0
134 hs-source-dirs: tests
135 main-is: Tests.hs
136 other-modules:
137 DataFamilies.Properties
138 DataFamilies.Instances
139 DataFamilies.Encoders
140 DataFamilies.Types
141 Encoders
142 Functions
143 Instances
144 Options
145 Properties
146 Types
147 UnitTests
149 ghc-options: -Wall -threaded -rtsopts
151 build-depends:
152 HUnit,
153 QuickCheck >= 2.7 && <2.8.3,
154 aeson,
155 attoparsec,
156 base,
157 base-orphans >=0.5.3 && <0.6,
158 bytestring,
159 containers,
160 ghc-prim >= 0.2,
161 hashable >= 1.1.2.0,
162 tagged,
163 template-haskell,
164 test-framework,
165 test-framework-hunit,
166 test-framework-quickcheck2,
167 text,
168 time,
169 unordered-containers,
170 vector,
171 quickcheck-instances >=0.3.12
173 if !impl(ghc >= 8.0)
174 build-depends: semigroups >= 0.16.1 && < 0.19
176 if flag(old-locale)
177 build-depends: time < 1.5, old-locale
178 else
179 build-depends: time >= 1.5
181 if !impl(ghc >= 7.10)
182 build-depends: nats >=1 && <1.1
184source-repository head
185 type: git
186 location: git://github.com/bos/aeson.git
188source-repository head
189 type: mercurial
190 location: https://bitbucket.org/bos/aeson