Closed akrmn closed 4 years ago
Good call, it's about time. I'm testing a few other packages, and then I'll release.
Thanks a lot!
Now that askUnliftIO
is no longer a method in the MonadUnliftIO
class, would it be possible to remove or deprecate wrappedWithRunInIO
? I wasn't aware you could just derive MonadUnliftIO
for newtypes (and get a correct instance) because of the example for wrappedWithRunInIO
saying you can't.
I'm OK with deprecating, but I think the more direct fix here is fixing the documentation, which is simply out of date.
When defining monad transformers as newtypes over
IdentityT
orReaderT r
, I'd like to simply derive an instance forUnliftIO
with thenewtype
strategy,However, this currently fails with the error
This could be avoided by moving the
askUnliftIO
method out of the class definition. This is pretty much the breaking part of #13.