-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjsonifier.cabal
135 lines (124 loc) · 3.1 KB
/
jsonifier.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
cabal-version: 3.0
name: jsonifier
version: 0.2.1.3
synopsis: Fast and simple JSON encoding toolkit
description:
Minimalistic library for encoding JSON directly to strict bytestring,
which is up to 3x faster than \"aeson\".
.
For introduction, benchmark results and demo please skip to Readme.
category: JSON
homepage: https://github.com/nikita-volkov/jsonifier
bug-reports: https://github.com/nikita-volkov/jsonifier/issues
author: Nikita Volkov <nikita.y.volkov@mail.ru>
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
copyright: (c) 2020 Nikita Volkov
license: MIT
license-file: LICENSE
extra-source-files:
README.md
samples/*.json
source-repository head
type: git
location: git://github.com/nikita-volkov/jsonifier.git
common base-settings
default-language: Haskell2010
default-extensions:
NoImplicitPrelude
NoMonomorphismRestriction
BangPatterns
ConstraintKinds
DataKinds
DefaultSignatures
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
EmptyDataDecls
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
InstanceSigs
LambdaCase
LiberalTypeSynonyms
MagicHash
MultiParamTypeClasses
MultiWayIf
OverloadedStrings
ParallelListComp
PatternGuards
QuasiQuotes
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
StrictData
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeOperators
UnboxedTuples
ViewPatterns
common executable-settings
import: base-settings
ghc-options: -O2 -threaded "-with-rtsopts=-N -I0 -qg"
library
import: base-settings
hs-source-dirs: library
exposed-modules: Jsonifier
other-modules:
Jsonifier.Ffi
Jsonifier.Poke
Jsonifier.Prelude
Jsonifier.Size
Jsonifier.Text
Jsonifier.Write
c-sources:
cbits/json_allocation.c
cbits/json_encoding.c
build-depends:
, base >=4.11 && <5
, bytestring >=0.10.10 && <0.13
, ptr-poker ^>=0.1.2.3
, scientific ^>=0.3.6.2
, text >=1 && <3
test-suite demo
import: base-settings
type: exitcode-stdio-1.0
hs-source-dirs: demo
main-is: Main.hs
default-language: Haskell2010
build-depends:
, jsonifier
, rerebase
test-suite test
import: base-settings
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
other-modules: Main.Util.HedgehogGens
build-depends:
, aeson >=2 && <3
, hedgehog >=1.0.3 && <2
, jsonifier
, numeric-limits ^>=0.1
, rerebase >=1.10.0.1 && <2
benchmark bench
import: executable-settings
type: exitcode-stdio-1.0
hs-source-dirs: bench
main-is: Main.hs
other-modules:
Main.Aeson
Main.Jsonifier
Main.Model
build-depends:
, aeson >=2 && <3
, criterion >=1.6.3 && <2
, jsonifier
, rerebase >=1.10.0.1 && <2
, text-builder ^>=0.6.6.1