@@ -105,7 +105,7 @@ unstream (Stream next0 s0 len) = I.textP (P.fst a) 0 (P.snd a)
105 | j >= top -> {-# SCC "unstream/resize" #-} do
105 | j >= top -> {-# SCC "unstream/resize" #-} do
106 let top' = (top + 1) `shiftL` 1
106 let top' = (top + 1) `shiftL` 1
107 arr' <- A.unsafeNew top'
107 arr' <- A.unsafeNew top'
108− A.copy arr arr' >> outer arr' top' s i
108+ A.copy arr' arr >> outer arr' top' s i
109 | otherwise -> unsafeWrite arr i x >>= loop s'
109 | otherwise -> unsafeWrite arr i x >>= loop s'
110 where j | ord x < 0x10000 = i
110 where j | ord x < 0x10000 = i
111 | otherwise = i + 1
111 | otherwise = i + 1