@@ -30,8 +30,8 @@ module Data.Text.Array
32 -- * Functions
32 -- * Functions
33− , partialCopyM
33+ , copyM
34− , partialCopyI
34+ , copyI
@@ -205,13 +205,13 @@ wordAligned :: Int -> Bool
205wordAligned i = i .&. (wordFactor - 1) == 0
205wordAligned i = i .&. (wordFactor - 1) == 0
207-- | Copy some elements of a mutable array.
207-- | Copy some elements of a mutable array.
208−partialCopyM :: MArray s -- ^ Destination
208+copyM :: MArray s -- ^ Destination
209− -> Int -- ^ Destination offset
209+ -> Int -- ^ Destination offset
210− -> MArray s -- ^ Source
210+ -> MArray s -- ^ Source
211− -> Int -- ^ Source offset
211+ -> Int -- ^ Source offset
212− -> Int -- ^ Count
212+ -> Int -- ^ Count
213− -> ST s ()
213+ -> ST s ()
214−partialCopyM dest didx src sidx count =
214+copyM dest didx src sidx count =
215#if defined(ASSERTS)
215#if defined(ASSERTS)
216 assert (sidx + count <= length src) .
216 assert (sidx + count <= length src) .
217 assert (didx + count <= length dest) $
217 assert (didx + count <= length dest) $
@@ -234,14 +234,14 @@ partialCopyM dest didx src sidx count =
234 slow_loop (i+1)
234 slow_loop (i+1)
236-- | Copy some elements of an immutable array.
236-- | Copy some elements of an immutable array.
237−partialCopyI :: MArray s -- ^ Destination
237+copyI :: MArray s -- ^ Destination
238− -> Int -- ^ Destination offset
238+ -> Int -- ^ Destination offset
239− -> Array -- ^ Source
239+ -> Array -- ^ Source
240− -> Int -- ^ Source offset
240+ -> Int -- ^ Source offset
241− -> Int -- ^ First offset in source /not/ to
241+ -> Int -- ^ First offset in source /not/ to
242 -- copy (i.e. /not/ length)
242 -- copy (i.e. /not/ length)
243− -> ST s ()
243+ -> ST s ()
244−partialCopyI dest i0 src j0 top
244+copyI dest i0 src j0 top
245 | wordAligned i0 && wordAligned j0 = fast (i0 `div` wordFactor) (j0 `div` wordFactor)
245 | wordAligned i0 && wordAligned j0 = fast (i0 `div` wordFactor) (j0 `div` wordFactor)
246 | otherwise = slow i0 j0
246 | otherwise = slow i0 j0