Skip to content

Commit 6f2f10b

Browse files
committed
Indentation
1 parent c43104f commit 6f2f10b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

vector/src/Data/Vector/Generic/Mutable.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,8 @@ exchange v i x = checkIndex Bounds i (length v) $ unsafeExchange v i x
701701
unsafeRead :: (PrimMonad m, MVector v a) => v (PrimState m) a -> Int -> m a
702702
{-# INLINE unsafeRead #-}
703703
unsafeRead v !i = checkIndex Unsafe i (length v)
704-
$ stToPrim
705-
$ basicUnsafeRead v i
704+
$ stToPrim
705+
$ basicUnsafeRead v i
706706
-- Why do we need ! before i?
707707
-- The reason is that 'basicUnsafeRead' is a class member and, unless 'unsafeRead' was
708708
-- already specialised to a specific v, GHC has no clue that i is most certainly
@@ -712,16 +712,16 @@ unsafeRead v !i = checkIndex Unsafe i (length v)
712712
unsafeWrite :: (PrimMonad m, MVector v a) => v (PrimState m) a -> Int -> a -> m ()
713713
{-# INLINE unsafeWrite #-}
714714
unsafeWrite v !i x = checkIndex Unsafe i (length v)
715-
$ stToPrim
716-
$ basicUnsafeWrite v i x
715+
$ stToPrim
716+
$ basicUnsafeWrite v i x
717717

718718
-- | Modify the element at the given position. No bounds checks are performed.
719719
unsafeModify :: (PrimMonad m, MVector v a) => v (PrimState m) a -> (a -> a) -> Int -> m ()
720720
{-# INLINE unsafeModify #-}
721721
unsafeModify v f !i = checkIndex Unsafe i (length v)
722-
$ stToPrim
723-
$ basicUnsafeRead v i >>= \x ->
724-
basicUnsafeWrite v i (f x)
722+
$ stToPrim
723+
$ basicUnsafeRead v i >>= \x ->
724+
basicUnsafeWrite v i (f x)
725725

726726
-- | Modify the element at the given position using a monadic
727727
-- function. No bounds checks are performed.
@@ -730,7 +730,7 @@ unsafeModify v f !i = checkIndex Unsafe i (length v)
730730
unsafeModifyM :: (PrimMonad m, MVector v a) => v (PrimState m) a -> (a -> m a) -> Int -> m ()
731731
{-# INLINE unsafeModifyM #-}
732732
unsafeModifyM v f !i = checkIndex Unsafe i (length v)
733-
$ stToPrim . basicUnsafeWrite v i =<< f =<< stToPrim (basicUnsafeRead v i)
733+
$ stToPrim . basicUnsafeWrite v i =<< f =<< stToPrim (basicUnsafeRead v i)
734734

735735
-- | Swap the elements at the given positions. No bounds checks are performed.
736736
unsafeSwap :: (PrimMonad m, MVector v a) => v (PrimState m) a -> Int -> Int -> m ()

0 commit comments

Comments
 (0)