File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -769,8 +769,9 @@ set = basicSet
769
769
770
770
-- | Copy a vector. The two vectors must have the same length and may not
771
771
-- overlap.
772
- copy :: (PrimMonad m , MVector v a )
773
- => v (PrimState m ) a -> v (PrimState m ) a -> m ()
772
+ copy :: (PrimMonad m , MVector v a ) => v (PrimState m ) a -- ^ target
773
+ -> v (PrimState m ) a -- ^ source
774
+ -> m ()
774
775
{-# INLINE copy #-}
775
776
copy dst src = BOUNDS_CHECK (check) " copy" " overlapping vectors"
776
777
(not (dst `overlaps` src))
Original file line number Diff line number Diff line change @@ -318,7 +318,9 @@ set = G.set
318
318
-- | Copy a vector. The two vectors must have the same length and may not
319
319
-- overlap.
320
320
copy :: (PrimMonad m , Prim a )
321
- => MVector (PrimState m ) a -> MVector (PrimState m ) a -> m ()
321
+ => MVector (PrimState m ) a -- ^ target
322
+ -> MVector (PrimState m ) a -- ^ source
323
+ -> m ()
322
324
{-# INLINE copy #-}
323
325
copy = G. copy
324
326
Original file line number Diff line number Diff line change @@ -421,7 +421,9 @@ set = G.set
421
421
-- | Copy a vector. The two vectors must have the same length and may not
422
422
-- overlap.
423
423
copy :: (PrimMonad m , Storable a )
424
- => MVector (PrimState m ) a -> MVector (PrimState m ) a -> m ()
424
+ => MVector (PrimState m ) a -- ^ target
425
+ -> MVector (PrimState m ) a -- ^ source
426
+ -> m ()
425
427
{-# INLINE copy #-}
426
428
copy = G. copy
427
429
Original file line number Diff line number Diff line change @@ -256,7 +256,9 @@ set = G.set
256
256
-- | Copy a vector. The two vectors must have the same length and may not
257
257
-- overlap.
258
258
copy :: (PrimMonad m , Unbox a )
259
- => MVector (PrimState m ) a -> MVector (PrimState m ) a -> m ()
259
+ => MVector (PrimState m ) a -- ^ target
260
+ -> MVector (PrimState m ) a -- ^ source
261
+ -> m ()
260
262
{-# INLINE copy #-}
261
263
copy = G. copy
262
264
You can’t perform that action at this time.
0 commit comments