@@ -571,7 +571,9 @@ isSingleton = S.isSingleton . stream
571571-- Subject to fusion.
572572length :: Text -> Int
573573length t = S.length (stream t)
574−{-# INLINE length #-}
574+{-# INLINE [0] length #-}
575+-- length needs to be phased after the compareN/length rules otherwise
576+-- it may inline before the rules have an opportunity to fire.
575577
576578-- | /O(n)/ Compare the count of characters in a 'Text' to a number.
577579-- Subject to fusion.