@@ -381,7 +381,7 @@ unsafeIndexIO arr = MA.unsafeIndexIO (unsafeThaw arr)
381-- | Return element at the specified index without checking the bounds.
381-- | Return element at the specified index without checking the bounds.
382{-# INLINE_NORMAL unsafeIndex #-}
382{-# INLINE_NORMAL unsafeIndex #-}
383unsafeIndex :: forall a. Storable a => Array a -> Int -> a
383unsafeIndex :: forall a. Storable a => Array a -> Int -> a
384−unsafeIndex arr = MA.unsafeIndex (unsafeThaw arr)
384+unsafeIndex arr i = let !r = MA.unsafeInlineIO $ unsafeIndexIO arr i in r
386-- | /O(1)/ Get the byte length of the array.
386-- | /O(1)/ Get the byte length of the array.