File tree Expand file tree Collapse file tree 7 files changed +10
-243
lines changed
src-ffi/Data/Aeson/Parser Expand file tree Collapse file tree 7 files changed +10
-243
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ jobs:
280
280
cabal-docspec $ARG_COMPILER
281
281
- name : hlint
282
282
run : |
283
- if [ $((HCNUMVER >= 90200 && HCNUMVER < 90400)) -ne 0 ] ; then (cd ${PKGDIR_aeson} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml -XHaskell2010 src attoparsec-iso8601/src src-pure src-ffi ) ; fi
283
+ if [ $((HCNUMVER >= 90200 && HCNUMVER < 90400)) -ne 0 ] ; then (cd ${PKGDIR_aeson} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml -XHaskell2010 src attoparsec-iso8601/src src-pure) ; fi
284
284
if [ $((HCNUMVER >= 90200 && HCNUMVER < 90400)) -ne 0 ] ; then (cd ${PKGDIR_attoparsec_iso8601} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml -XHaskell2010 src) ; fi
285
285
if [ $((HCNUMVER >= 90200 && HCNUMVER < 90400)) -ne 0 ] ; then (cd ${PKGDIR_aeson_examples} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml -XHaskell2010 src/) ; fi
286
286
if [ $((HCNUMVER >= 90200 && HCNUMVER < 90400)) -ne 0 ] ; then (cd ${PKGDIR_aeson_benchmarks} && hlint -h ${GITHUB_WORKSPACE}/source/.hlint.yaml -XHaskell2010 .) ; fi
@@ -314,10 +314,6 @@ jobs:
314
314
run : |
315
315
$CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson +ordered-keymap' all
316
316
$CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson +ordered-keymap' all
317
- - name : constraint set cffi
318
- run : |
319
- if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-build $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson +cffi' all ; fi
320
- if [ $((HCNUMVER < 90400)) -ne 0 ] ; then $CABAL v2-test $ARG_COMPILER --enable-tests --disable-benchmarks --constraint='aeson +cffi' all ; fi
321
317
- name : save cache
322
318
uses : actions/cache/save@v3
323
319
if : always()
Original file line number Diff line number Diff line change 1
1
name : aeson
2
- version : 2.1.2.1
3
- x-revision : 3
2
+ version : 2.2
4
3
license : BSD3
5
4
license-file : LICENSE
6
5
category : Text, Web, JSON
@@ -39,24 +38,15 @@ description:
39
38
extra-source-files :
40
39
*.yaml
41
40
benchmarks/json-data/*.json
42
- cbits/*.c
43
41
changelog.md
44
42
README.markdown
45
- src-ffi/Data/Aeson/Parser/*.hs
46
43
src-pure/Data/Aeson/Parser/*.hs
47
44
tests/golden/*.expected
48
45
tests/JSONTestSuite/results/*.tok
49
46
tests/JSONTestSuite/results/*.txt
50
47
tests/JSONTestSuite/test_parsing/*.json
51
48
tests/JSONTestSuite/test_transform/*.json
52
49
53
- flag cffi
54
- description :
55
- Controls whether to include c-ffi bits or pure haskell. Default to False for security.
56
-
57
- default : False
58
- manual : True
59
-
60
50
flag ordered-keymap
61
51
description : Use ordered @Data.Map.Strict@ for KeyMap implementation.
62
52
default : True
@@ -148,16 +138,9 @@ library
148
138
149
139
ghc-options : -Wall
150
140
151
- if (impl(ghcjs) || !flag(cffi))
152
- hs-source-dirs : src-pure
153
- other-modules : Data.Aeson.Parser.UnescapePure
154
-
155
- else
156
- c-sources : cbits/unescape_string.c
157
- cpp-options : -DCFFI
158
- hs-source-dirs : src-ffi
159
- other-modules : Data.Aeson.Parser.UnescapeFFI
160
- build-depends : text < 2.0
141
+ -- String unescaping
142
+ hs-source-dirs : src-pure
143
+ other-modules : Data.Aeson.Parser.UnescapePure
161
144
162
145
if flag(ordered-keymap)
163
146
cpp-options : -DUSE_ORDEREDMAP= 1
Original file line number Diff line number Diff line change @@ -12,12 +12,6 @@ hlint: True
12
12
hlint-job: 9.2.8
13
13
hlint-yaml: .hlint.yaml
14
14
15
- constraint-set cffi
16
- ghc: <9.4
17
- constraints: aeson +cffi
18
- tests: True
19
- run-tests: True
20
-
21
15
constraint-set ordered-keymap-on
22
16
constraints: aeson +ordered-keymap
23
17
tests: True
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
For the latest version of this document, please see [ https://github.com/haskell/aeson/blob/master/changelog.md ] ( https://github.com/haskell/aeson/blob/master/changelog.md ) .
2
2
3
+ ### 2.2
4
+
5
+ * Remove ` cffi ` flag. Then the C implementation for string unescaping was used for ` text <2 ` versions.
6
+ The new native Haskell implementation introduced in version 2.0.3.0 is at least as fast.
7
+
3
8
### 2.1.2.1
4
9
5
10
* Support ` th-abstraction-0.5 `
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,8 +4,4 @@ module Data.Aeson.Parser.Unescape
4
4
unescapeText
5
5
) where
6
6
7
- #ifdef CFFI
8
- import Data.Aeson.Parser.UnescapeFFI (unescapeText )
9
- #else
10
7
import Data.Aeson.Parser.UnescapePure (unescapeText )
11
- #endif
You can’t perform that action at this time.
0 commit comments