@@ -189,7 +189,7 @@ import Prelude (Char, Bool(..), Int, Maybe(..), String,
189189 Eq(..), Ord(..), Ordering(..), (++),
190190 Read(..), Show(..),
191191 (&&), (||), (+), (-), (.), ($), ($!), (>>), (*),
192− div, maxBound, not, return, otherwise)
192+ maxBound, not, return, otherwise, quot)
193193#if defined(HAVE_DEEPSEQ)
194194import Control.DeepSeq (NFData)
195195#endif
@@ -734,7 +734,7 @@ center k c t
734734 | otherwise = replicateChar l c `append` t `append` replicateChar r c
735735 where len = length t
736736 d = k - len
737− r = d `div` 2
737+ r = d `quot` 2
738738 l = d - r
739739{-# INLINE center #-}
740740
@@ -906,11 +906,11 @@ mapAccumR f z0 = second reverse . S.mapAccumL g z0 . reverseStream
906906-- @t@ repeated @n@ times.
907907replicate :: Int -> Text -> Text
908908replicate n t@(Text a o l)
909− | n <= 0 || l <= 0 = empty
910− | n == 1 = t
911− | isSingleton t = replicateChar n (unsafeHead t)
912− | n <= maxBound `div` l = Text (A.run x) 0 len
913− | otherwise = overflowError "replicate"
909+ | n <= 0 || l <= 0 = empty
910+ | n == 1 = t
911+ | isSingleton t = replicateChar n (unsafeHead t)
912+ | n <= maxBound `quot` l = Text (A.run x) 0 len
913+ | otherwise = overflowError "replicate"
914914 where
915915 len = l * n
916916 x = do