free-game-0.9.1: Create graphical applications for free

Safe HaskellSafe-Inferred

Graphics.UI.FreeGame.Internal.Finalizer

Synopsis

Documentation

newtype FinalizerT m a Source

An action with explicit releasing action.

Constructors

FinalizerT 

Fields

unFinalizerT :: forall r. (a -> m r) -> (IO () -> r -> m r) -> m r
 

finalizer :: Monad m => IO () -> FinalizerT m ()Source

Add a finalizer.

runFinalizerT :: MonadIO m => FinalizerT m a -> m aSource

Run the action and run all associated finalizers.