@@ -189,7 +189,7 @@ import Prelude (Char, Bool(..), Int, Maybe(..), String,
189 Eq(..), Ord(..), Ordering(..), (++),
189 Eq(..), Ord(..), Ordering(..), (++),
190 Read(..), Show(..),
190 Read(..), Show(..),
191 (&&), (||), (+), (-), (.), ($), ($!), (>>), (*),
191 (&&), (||), (+), (-), (.), ($), ($!), (>>), (*),
192− div, maxBound, not, return, otherwise)
192+ maxBound, not, return, otherwise, quot)
193#if defined(HAVE_DEEPSEQ)
193#if defined(HAVE_DEEPSEQ)
194import Control.DeepSeq (NFData)
194import Control.DeepSeq (NFData)
@@ -734,7 +734,7 @@ center k c t
734 | otherwise = replicateChar l c `append` t `append` replicateChar r c
734 | otherwise = replicateChar l c `append` t `append` replicateChar r c
735 where len = length t
735 where len = length t
736 d = k - len
736 d = k - len
737− r = d `div` 2
737+ r = d `quot` 2
738 l = d - r
738 l = d - r
739{-# INLINE center #-}
739{-# INLINE center #-}
@@ -906,11 +906,11 @@ mapAccumR f z0 = second reverse . S.mapAccumL g z0 . reverseStream
906-- @t@ repeated @n@ times.
906-- @t@ repeated @n@ times.
907replicate :: Int -> Text -> Text
907replicate :: Int -> Text -> Text
908replicate n t@(Text a o l)
908replicate n t@(Text a o l)
909− | n <= 0 || l <= 0 = empty
909+ | n <= 0 || l <= 0 = empty
910− | n == 1 = t
910+ | n == 1 = t
911− | isSingleton t = replicateChar n (unsafeHead t)
911+ | isSingleton t = replicateChar n (unsafeHead t)
912− | n <= maxBound `div` l = Text (A.run x) 0 len
912+ | n <= maxBound `quot` l = Text (A.run x) 0 len
913− | otherwise = overflowError "replicate"
913+ | otherwise = overflowError "replicate"
915 len = l * n
915 len = l * n