serokell-util-0.8.0: General-purpose functions by Serokell

Safe HaskellNone
LanguageHaskell2010

Serokell.Util.Base

Description

Util for MonadBaseControl

Synopsis

Documentation

inCurrentContext :: (MonadBaseControl IO m, MonadIO n) => m () -> m (n ()) Source #

Remembers monadic context of an action and transforms it to IO. Note that any changes in context would be lost.