@@ -30,8 +30,8 @@ module Data.Text.Array
3030 , MArray
3131
3232 -- * Functions
33− , partialCopyM
34− , partialCopyI
33+ , copyM
34+ , copyI
3535 , empty
3636 , run
3737 , run2
@@ -205,13 +205,13 @@ wordAligned :: Int -> Bool
205205wordAligned i = i .&. (wordFactor - 1) == 0
206206
207207-- | Copy some elements of a mutable array.
208−partialCopyM :: MArray s -- ^ Destination
209− -> Int -- ^ Destination offset
210− -> MArray s -- ^ Source
211− -> Int -- ^ Source offset
212− -> Int -- ^ Count
213− -> ST s ()
214−partialCopyM dest didx src sidx count =
208+copyM :: MArray s -- ^ Destination
209+ -> Int -- ^ Destination offset
210+ -> MArray s -- ^ Source
211+ -> Int -- ^ Source offset
212+ -> Int -- ^ Count
213+ -> ST s ()
214+copyM dest didx src sidx count =
215215#if defined(ASSERTS)
216216 assert (sidx + count <= length src) .
217217 assert (didx + count <= length dest) $
@@ -234,14 +234,14 @@ partialCopyM dest didx src sidx count =
234234 slow_loop (i+1)
235235
236236-- | Copy some elements of an immutable array.
237−partialCopyI :: MArray s -- ^ Destination
238− -> Int -- ^ Destination offset
239− -> Array -- ^ Source
240− -> Int -- ^ Source offset
241− -> Int -- ^ First offset in source /not/ to
237+copyI :: MArray s -- ^ Destination
238+ -> Int -- ^ Destination offset
239+ -> Array -- ^ Source
240+ -> Int -- ^ Source offset
241+ -> Int -- ^ First offset in source /not/ to
242242 -- copy (i.e. /not/ length)
243− -> ST s ()
244−partialCopyI dest i0 src j0 top
243+ -> ST s ()
244+copyI dest i0 src j0 top
245245 | wordAligned i0 && wordAligned j0 = fast (i0 `div` wordFactor) (j0 `div` wordFactor)
246246 | otherwise = slow i0 j0
247247 where