@@ -91,7 +91,7 @@ module Streamly.Internal.Data.Array.Foreign
9191 -- * Casting
9292 , cast
9393 , asBytes
94− , unsafeCast -- castUnsafe?
94+ , castUnsafe
9595 , asPtrUnsafe
9696 , unsafeAsCString -- asCStringUnsafe?
9797 , A.unsafeFreeze -- asImmutableUnsafe?
@@ -525,12 +525,12 @@ streamTransform f arr =
525525--
526526-- /Pre-release/
527527--
528−unsafeCast ::
528+castUnsafe ::
529529#ifdef DEVBUILD
530530 Storable b =>
531531#endif
532532 Array a -> Array b
533−unsafeCast (Array contents start end) =
533+castUnsafe (Array contents start end) =
534534 Array contents (castPtr start) (castPtr end)
535535
536536-- | Cast an @Array a@ into an @Array Word8@.
@@ -538,7 +538,7 @@ unsafeCast (Array contents start end) =
538538-- @since 0.8.0
539539--
540540asBytes :: Array a -> Array Word8
541−asBytes = unsafeCast
541+asBytes = castUnsafe
542542
543543-- | Cast an array having elements of type @a@ into an array having elements of
544544-- type @b@. The length of the array should be a multiple of the size of the
@@ -552,7 +552,7 @@ cast arr =
552552 r = len `mod` SIZE_OF(b)
553553 in if r /= 0
554554 then Nothing
555− else Just $ unsafeCast arr
555+ else Just $ castUnsafe arr
556556
557557-- | Convert an array of any type into a null terminated CString Ptr.
558558--