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 @@ -768,8 +768,9 @@ set = basicSet
768
768
769
769
-- | Copy a vector. The two vectors must have the same length and may not
770
770
-- overlap.
771
- copy :: (PrimMonad m , MVector v a )
772
- => v (PrimState m ) a -> v (PrimState m ) a -> m ()
771
+ copy :: (PrimMonad m , MVector v a ) => v (PrimState m ) a -- ^ target
772
+ -> v (PrimState m ) a -- ^ source
773
+ -> m ()
773
774
{-# INLINE copy #-}
774
775
copy dst src = BOUNDS_CHECK (check) " copy" " overlapping vectors"
775
776
(not (dst `overlaps` src))
Original file line number Diff line number Diff line change @@ -317,7 +317,9 @@ set = G.set
317
317
-- | Copy a vector. The two vectors must have the same length and may not
318
318
-- overlap.
319
319
copy :: (PrimMonad m , Prim a )
320
- => MVector (PrimState m ) a -> MVector (PrimState m ) a -> m ()
320
+ => MVector (PrimState m ) a -- ^ target
321
+ -> MVector (PrimState m ) a -- ^ source
322
+ -> m ()
321
323
{-# INLINE copy #-}
322
324
copy = G. copy
323
325
Original file line number Diff line number Diff line change @@ -401,7 +401,9 @@ set = G.set
401
401
-- | Copy a vector. The two vectors must have the same length and may not
402
402
-- overlap.
403
403
copy :: (PrimMonad m , Storable a )
404
- => MVector (PrimState m ) a -> MVector (PrimState m ) a -> m ()
404
+ => MVector (PrimState m ) a -- ^ target
405
+ -> MVector (PrimState m ) a -- ^ source
406
+ -> m ()
405
407
{-# INLINE copy #-}
406
408
copy = G. copy
407
409
Original file line number Diff line number Diff line change @@ -255,7 +255,9 @@ set = G.set
255
255
-- | Copy a vector. The two vectors must have the same length and may not
256
256
-- overlap.
257
257
copy :: (PrimMonad m , Unbox a )
258
- => MVector (PrimState m ) a -> MVector (PrimState m ) a -> m ()
258
+ => MVector (PrimState m ) a -- ^ target
259
+ -> MVector (PrimState m ) a -- ^ source
260
+ -> m ()
259
261
{-# INLINE copy #-}
260
262
copy = G. copy
261
263
You can’t perform that action at this time.
0 commit comments