Skip to content

Rename afterIO to finallyIO in Fold.Exception #3049

@harendra-kumar

Description

@harendra-kumar

In the Fold.Exception module:

-- | Run a side effect whenever the fold stops normally, aborts due to an
-- exception or is garbage collected.
--
{-# INLINE afterIO #-}
afterIO :: (MonadIO m, MonadCatch m) => IO b -> Fold m a b -> Fold m a b
afterIO aft (Fold step1 initial1 extract1 final1) =
    Fold step initial extract final

This was called finally in the original PR - https://github.com/composewell/streamly/pull/531/files . Shouldn't it be finally?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions