You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For every effect I think it would be good to have one or more "IO escape hatches" for anyone who has some Bluefin effectful operation but doesn't know what to do with it. For example, we could have
escapeState::e1:>es=>IOEe1->IORefs->
(foralle.Statese->Eff (e:&es) r) ->Effesr
escapeState io ref k =do
s <- readIORef ref
(r, s') <- runState s k
writeIORef ref r
pure s'
escapeIOException::e1:>es=>Control.Exception.Exceptionex=>IOEe1->
(foralle.Exceptionexe->Eff (e:&es) r) ->Effesr
escapeIOException io k =
handle (effIO io . throwIO) k
escapeErrorShow::e1:>es=>Showex=>IOEe1->
(foralle.Exceptionexe->Eff (e:&es) r) ->Effesr
escapeIOException io k =
handle (effIO io .error.show) k
The text was updated successfully, but these errors were encountered:
For every effect I think it would be good to have one or more "IO escape hatches" for anyone who has some Bluefin effectful operation but doesn't know what to do with it. For example, we could have
The text was updated successfully, but these errors were encountered: