Fix commented code for drain

This commit is contained in:
Harendra Kumar 2019-06-28 23:20:17 +05:30
parent 513eb1c2bd
commit 2f31747c36

View File

@ -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