on 0.11.0.0 help sign in
typeable/aeson/aeson.cabal
176 lines 4.3 kB history raw
1name: aeson
2version: 0.11.0.0
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 template-haskell >= 2.7,
104 text >= 1.1.1.0,
105 transformers,
106 unordered-containers >= 0.2.5.0,
107 vector >= 0.7.1
109 if !impl(ghc >= 8.0)
110 -- `Data.Semigroup` is available in base only since GHC 8.0
111 build-depends: semigroups >= 0.16.1
113 if flag(old-locale)
114 build-depends: time < 1.5, old-locale
115 else
116 build-depends: time >= 1.5
118 if flag(developer)
119 ghc-options: -Werror
120 ghc-prof-options: -auto-all
122 ghc-options: -O2 -Wall
124 include-dirs: include
126test-suite tests
127 default-language: Haskell2010
128 type: exitcode-stdio-1.0
129 hs-source-dirs: tests
130 main-is: Tests.hs
131 other-modules:
132 DataFamilies.Properties
133 DataFamilies.Instances
134 DataFamilies.Encoders
135 DataFamilies.Types
136 Encoders
137 Functions
138 Instances
139 Options
140 Properties
141 Types
142 UnitTests
144 ghc-options: -Wall -threaded -rtsopts
146 build-depends:
147 HUnit,
148 QuickCheck >= 2.7,
149 aeson,
150 attoparsec,
151 base,
152 bytestring,
153 containers,
154 ghc-prim >= 0.2,
155 template-haskell,
156 test-framework,
157 test-framework-hunit,
158 test-framework-quickcheck2,
159 text,
160 time,
161 unordered-containers,
162 vector,
163 quickcheck-instances >=0.3.12
165 if flag(old-locale)
166 build-depends: time < 1.5, old-locale
167 else
168 build-depends: time >= 1.5
170source-repository head
171 type: git
172 location: git://github.com/bos/aeson.git
174source-repository head
175 type: mercurial
176 location: https://bitbucket.org/bos/aeson