ondrap / json-stream

Incremental applicative JSON Haskell parser
BSD 3-Clause "New" or "Revised" License
58 stars 13 forks source link

Fails to build with text-2.0 #34

Closed Bodigrim closed 2 years ago

Bodigrim commented 2 years ago
$ cabal build --constraint 'text >= 2.0'
[3 of 5] Compiling Data.JsonStream.Unescape

Data/JsonStream/Unescape.hs:36:37: error:
    Not in scope: ‘A.maBA’
    Module ‘Data.Text.Array’ does not export ‘maBA’.
   |
36 |                 res <- c_js_decode (A.maBA dest) destOffPtr curPtr end
   |                                     ^^^^^^
ondrap commented 2 years ago

Well...yes. text-2.0 is in UTF-8 and json-stream is doing UTF-8 -> UTF-16 decoding in the background. This part would need to be rewritten.