Closed akrmn closed 4 years ago
Forgot to mention, a consequence of #55 is that this default implementation will make withRunInIO loop through askUnliftIO for people who define an empty instance (or who derive anyclass).
withRunInIO
askUnliftIO
anyclass
https://github.com/fpco/unliftio/blob/d9946e6907289e222f078c26563758bcf6ffb7d9/unliftio-core/src/Control/Monad/IO/Unlift.hs#L60-L62
Good catch, thanks! That was a stupid mistake on my part. Releasing a fix shortly.
Forgot to mention, a consequence of #55 is that this default implementation will make
withRunInIO
loop throughaskUnliftIO
for people who define an empty instance (or who deriveanyclass
).https://github.com/fpco/unliftio/blob/d9946e6907289e222f078c26563758bcf6ffb7d9/unliftio-core/src/Control/Monad/IO/Unlift.hs#L60-L62