@@ -51,9 +51,11 @@ extra-source-files:
51 examples/*.cabal
51 examples/*.cabal
52 examples/*.hs
52 examples/*.hs
53 examples/Twitter/*.hs
53 examples/Twitter/*.hs
54+ ffi/Data/Aeson/Parser/*.hs
54 include/*.h
55 include/*.h
55 tests/JSONTestSuite/test_parsing/*.json
56 tests/JSONTestSuite/test_parsing/*.json
56 tests/JSONTestSuite/test_transform/*.json
57 tests/JSONTestSuite/test_transform/*.json
58+ pure/Data/Aeson/Parser/*.hs
58flag developer
60flag developer
59 description: operate in developer mode
61 description: operate in developer mode
@@ -77,6 +79,7 @@ flag cffi
79 default-language: Haskell2010
81 default-language: Haskell2010
81 exposed-modules:
84 exposed-modules:
82 Data.Aeson
85 Data.Aeson
@@ -156,18 +159,25 @@ library
157 include-dirs: include
160 include-dirs: include
158 if impl(ghcjs) || !flag(cffi)
161 if impl(ghcjs) || !flag(cffi)
159− hs-source-dirs: . pure
162+ hs-source-dirs: pure
163+ other-modules: Data.Aeson.Parser.UnescapePure
161− c-sources: cbits/unescape_string.c
165+ c-sources: cbits/unescape_string.c
162 cpp-options: -DCFFI
166 cpp-options: -DCFFI
163− hs-source-dirs: . ffi
167+ hs-source-dirs: ffi
168+ other-modules: Data.Aeson.Parser.UnescapeFFI
165test-suite tests
170test-suite tests
166 default-language: Haskell2010
171 default-language: Haskell2010
167− type: exitcode-stdio-1.0
172+ type: exitcode-stdio-1.0
168− hs-source-dirs: tests
173+ hs-source-dirs: tests ffi pure
169− main-is: Tests.hs
174+ main-is: Tests.hs
175+ c-sources: cbits/unescape_string.c
176+ ghc-options: -Wall -threaded -rtsopts
170 other-modules:
178 other-modules:
179+ Data.Aeson.Parser.UnescapeFFI
180+ Data.Aeson.Parser.UnescapePure
171 DataFamilies.Properties
181 DataFamilies.Properties
172 DataFamilies.Instances
182 DataFamilies.Instances
173 DataFamilies.Encoders
183 DataFamilies.Encoders
@@ -183,8 +193,6 @@ test-suite tests
183 UnitTests
193 UnitTests
184 UnitTests.NullaryConstructors
194 UnitTests.NullaryConstructors
186− ghc-options: -Wall -threaded -rtsopts
188 build-depends:
196 build-depends:
190 QuickCheck >= 2.8 && <2.9.3,
198 QuickCheck >= 2.8 && <2.9.3,