@@ -22,7 +22,7 @@ module Streamly.Internal.Data.Array.Foreign.Type
22 , unsafeThaw
22 , unsafeThaw
24 -- * Construction
24 -- * Construction
25− , spliceTwo
25+ , splice
28 , fromAddr#
28 , fromAddr#
@@ -194,10 +194,10 @@ unsafeThaw (Array as ae) = MA.Array as ae ae
194-------------------------------------------------------------------------------
194-------------------------------------------------------------------------------
196-- Splice two immutable arrays creating a new array.
196-- Splice two immutable arrays creating a new array.
197−{-# INLINE spliceTwo #-}
197+{-# INLINE splice #-}
198−spliceTwo :: (MonadIO m, Storable a) => Array a -> Array a -> m (Array a)
198+splice :: (MonadIO m, Storable a) => Array a -> Array a -> m (Array a)
199−spliceTwo arr1 arr2 =
199+splice arr1 arr2 =
200− unsafeFreeze <$> MA.spliceTwo (unsafeThaw arr1) (unsafeThaw arr2)
200+ unsafeFreeze <$> MA.splice (unsafeThaw arr1) (unsafeThaw arr2)
202-- | Create an 'Array' of the given number of elements of type @a@ from a read
202-- | Create an 'Array' of the given number of elements of type @a@ from a read
203-- only pointer @Ptr a@. The pointer is not freed when the array is garbage
203-- only pointer @Ptr a@. The pointer is not freed when the array is garbage
@@ -671,7 +671,7 @@ instance Foldable Array where
671-------------------------------------------------------------------------------
671-------------------------------------------------------------------------------
673instance Storable a => Semigroup (Array a) where
673instance Storable a => Semigroup (Array a) where
674− arr1 <> arr2 = unsafePerformIO $ spliceTwo arr1 arr2
674+ arr1 <> arr2 = unsafePerformIO $ splice arr1 arr2
676nullForeignPtr :: ForeignPtr a
676nullForeignPtr :: ForeignPtr a
677nullForeignPtr = ForeignPtr nullAddr# (error "nullForeignPtr")
677nullForeignPtr = ForeignPtr nullAddr# (error "nullForeignPtr")