on master help sign in
Merge
9e6efb2Bryan O'Sullivan
Data/Text/Lazy.hs+1−3
@@ -475,9 +475,7 @@ fromStrict t = chunk t Empty
475-- -----------------------------------------------------------------------------
475-- -----------------------------------------------------------------------------
476-- * Basic functions
476-- * Basic functions
477
477
478−-- | /O(n)/ Adds a character to the front of a 'Text'. This function
478+-- | /O(1)/ Adds a character to the front of a 'Text'. Subject to fusion.
479−-- is more costly than its 'List' counterpart because it requires
480−-- copying a new array. Subject to fusion.
481cons :: Char -> Text -> Text
479cons :: Char -> Text -> Text
482cons c t = Chunk (T.singleton c) t
480cons c t = Chunk (T.singleton c) t
483{-# INLINE [1] cons #-}
481{-# INLINE [1] cons #-}