Fix for new bytearray ffi type
ByteArray# is now two things $1_1 & $1_2.
commit2caf7436209942e92c47c210c99c37d3c75745f6
authorMatthew Bauer <matthew.bauer@obsidian.systems>
dateFri 3 Aug 2018, 01:58 (8 years ago)
parent49c86ff
Data/Text/Internal.hs+1−1
@@ -52,7 +52,7 @@ foreign import javascript unsafe
5252 js_decodeBytes :: ByteArray# -> JSString
5353
5454foreign import javascript unsafe
55− "h$textToString($1,$2,$3)"
55+ "h$textToString($1_1,$2,$3)"
5656 js_textToString :: ByteArray# -> Int# -> Int# -> JSString
5757
5858-- | Construct a 'Text' without invisibly pinning its byte array in
Data/Text/Internal/Builder.hs+1−1
@@ -367,5 +367,5 @@ foreign import javascript unsafe
367367 js_fromString :: JSString -> (# ByteArray#, Int# #)
368368
369369foreign import javascript unsafe
370− "h$textToString($1,$2,$3)"
370+ "h$textToString($1_1,$2,$3)"
371371 js_toString :: ByteArray# -> Int# -> Int# -> JSString