@@ -151,7 +151,6 @@ where
152import Control.Monad.Catch (MonadThrow)
152import Control.Monad.Catch (MonadThrow)
153import Control.Monad.IO.Class (MonadIO(..))
153import Control.Monad.IO.Class (MonadIO(..))
154−import Data.Functor.Identity (Identity (..))
155import Foreign.Storable (Storable)
154import Foreign.Storable (Storable)
156import Streamly.Internal.Data.Parser (Parser (..))
155import Streamly.Internal.Data.Parser (Parser (..))
157import Streamly.Internal.Data.SVar (MonadAsync, defState)
156import Streamly.Internal.Data.SVar (MonadAsync, defState)
@@ -800,7 +799,7 @@ toHandle h = go
800-- /Pre-release/
799-- /Pre-release/
802{-# INLINE toStream #-}
801{-# INLINE toStream #-}
803−toStream :: Monad m => SerialT m a -> m (SerialT Identity a)
802+toStream :: Monad m => SerialT m a -> m (SerialT n a)
804toStream = foldr K.cons K.nil
803toStream = foldr K.cons K.nil
806-- | Convert a stream to a pure stream in reverse order.
805-- | Convert a stream to a pure stream in reverse order.
@@ -812,7 +811,7 @@ toStream = foldr K.cons K.nil
812-- /Pre-release/
811-- /Pre-release/
814{-# INLINE toStreamRev #-}
813{-# INLINE toStreamRev #-}
815−toStreamRev :: Monad m => SerialT m a -> m (SerialT Identity a)
814+toStreamRev :: Monad m => SerialT m a -> m (SerialT n a)
816toStreamRev = foldl' (flip K.cons) K.nil
815toStreamRev = foldl' (flip K.cons) K.nil
818------------------------------------------------------------------------------
817------------------------------------------------------------------------------