mirror of
https://github.com/composewell/streamly.git
synced 2024-10-06 15:58:20 +03:00
Fix commented code for drain
This commit is contained in:
parent
513eb1c2bd
commit
2f31747c36
@ -623,7 +623,7 @@ foldlS fstep begin (Stream step state) = Stream step' (Left (state, begin))
|
||||
-- | Run a streaming composition, discard the results.
|
||||
{-# INLINE_LATE drain #-}
|
||||
drain :: Monad m => Stream m a -> m ()
|
||||
-- drain m = foldrM (\x xs -> x `seq` xs) (return ()) m
|
||||
-- drain = foldrM (\_ xs -> xs) (return ())
|
||||
drain (Stream step state) = go SPEC state
|
||||
where
|
||||
go !_ st = do
|
||||
|
Loading…
Reference in New Issue
Block a user