Skip to content
Snippets Groups Projects
Commit ff90e339 authored by Jens Nolte's avatar Jens Nolte
Browse files

Add HasResourceManager instance for ReaderT

parent fe167cba
No related branches found
No related tags found
No related merge requests found
Pipeline #2353 passed
......@@ -84,6 +84,9 @@ class MonadIO m => HasResourceManager m where
instance HasResourceManager AsyncIO where
askResourceManager = AsyncIO ask
instance MonadIO m => HasResourceManager (ReaderT ResourceManager m) where
askResourceManager = ask
awaitResult :: IsAwaitable r a => AsyncIO a -> AsyncIO r
awaitResult = (await =<<)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment