@@ -254,8 +254,15 @@ null t = S.null (stream t)
254-- | /O(n)/ Returns the number of characters in a text.
254-- | /O(n)/ Returns the number of characters in a text.
255-- Subject to array fusion.
255-- Subject to array fusion.
256length :: Text -> Int
256length :: Text -> Int
257−length t = S.length (stream t)
257+length (Text _arr _off len) = len
258−{-# INLINE length #-}
258+{-# INLINE [1] length #-}
261+"TEXT length -> fused" [~1] forall t.
262+ length t = S.length (stream t)
263+"TEXT length -> unfused" [1] forall t.
264+ S.length (stream t) = length t
260-- -----------------------------------------------------------------------------
267-- -----------------------------------------------------------------------------
261-- * Transformations
268-- * Transformations