Skip to content

Commit

Permalink
Update vector/src/Data/Vector/Generic.hs
Browse files Browse the repository at this point in the history
Co-authored-by: konsumlamm <[email protected]>
  • Loading branch information
lehins and konsumlamm authored Aug 4, 2021
1 parent a11bef5 commit b1fbb23
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vector/src/Data/Vector/Generic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,10 @@ unsafeLastM v = unsafeIndexM v (length v - 1)
-- | /O(1)/ Yield a slice of the vector without copying it. The vector must
-- contain at least @i+n@ elements.
slice :: (HasCallStack, Vector v a)
=> Int -- ^ @i@ starting index
-> Int -- ^ @n@ length
-> v a
-> v a
=> Int -- ^ @i@ starting index
-> Int -- ^ @n@ length
-> v a
-> v a
{-# INLINE_FUSED slice #-}
slice i n v = checkSlice Bounds i n (length v) $ basicUnsafeSlice i n v

Expand Down

0 comments on commit b1fbb23

Please sign in to comment.