halive-0.1.3: A live recompiler

Safe HaskellSafe
LanguageHaskell2010

Halive.Utils

Synopsis

Documentation

reacquire :: forall a m. MonadIO m => Word32 -> m a -> m a Source #

Takes a unique integer representing your value, along with an IO action to create the first instance of your value to be used on subsequent recompilations.

persist :: MonadIO m => Word32 -> a -> m () Source #

persistState :: (MonadState s m, MonadIO m) => Word32 -> m () Source #