File tree Expand file tree Collapse file tree
core/src/Streamly/Internal/Data/Fold Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99module Streamly.Internal.Data.Fold.Exception
1010 (
1111 -- * Resources
12- afterIO
13- , before
12+ before
1413 , bracketIO
14+ , finallyIO
1515
1616 -- * Exceptions
1717 , onException
@@ -163,9 +163,9 @@ bracketIO bef aft bet = Fold step initial extract final
163163-- | Run a side effect whenever the fold stops normally, aborts due to an
164164-- exception or is garbage collected.
165165--
166- {-# INLINE afterIO #-}
167- afterIO :: (MonadIO m , MonadCatch m ) => IO b -> Fold m a b -> Fold m a b
168- afterIO aft (Fold step1 initial1 extract1 final1) =
166+ {-# INLINE finallyIO #-}
167+ finallyIO :: (MonadIO m , MonadCatch m ) => IO b -> Fold m a b -> Fold m a b
168+ finallyIO aft (Fold step1 initial1 extract1 final1) =
169169 Fold step initial extract final
170170
171171 where
You can’t perform that action at this time.
0 commit comments