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
Describe the solution you'd like
I would love it if MonadIO instances were provided for the aforementioned monads. Those monads run in the IO monad anyways, so I don't think this is harmful.
Describe alternatives you've considered
Since running the aforementioned monads runs in IO in the end anyways, one could do something like
do
blah <- runGYTxMonadIO ....<some computation>
blargh <- randomIOAction
runGYTxMonadIO ...<some other computation>
to achieve the same effect as doing something like the following (assuming the MonadIO instances are implemented)
do
runGYTxMonadIO ....do
blah <-<some computation>
blargh <- liftIO $ randomIOAction
<some other computation>
Additional context
Not sure if more context is needed, but would be happy to provide any context required :)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm always frustrated when I'd like to do arbitrary IO in the monads provided in https://haddock.atlas-app.io/GeniusYield-TxBuilder-IO.html (e.g.
GYTxMonadIO
) and since these aren't instances ofMonadIO
(https://hackage.haskell.org/package/base-4.20.0.0/candidate/docs/Control-Monad-IO-Class.html) we can't do arbitrary IO in these monads.Describe the solution you'd like
I would love it if
MonadIO
instances were provided for the aforementioned monads. Those monads run in the IO monad anyways, so I don't think this is harmful.Describe alternatives you've considered
Since running the aforementioned monads runs in IO in the end anyways, one could do something like
to achieve the same effect as doing something like the following (assuming the MonadIO instances are implemented)
Additional context
Not sure if more context is needed, but would be happy to provide any context required :)
The text was updated successfully, but these errors were encountered: