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

Derive Stream instances

parent acad770f
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,7 @@ serverHandleChannelMessage protocolImpl channel resources msg = case decodeOrFai
newtype Stream up down = Stream Channel
deriving newtype (IsDisposable, HasResourceManager)
newStream :: MonadIO m => Channel -> m (Stream up down)
newStream = liftIO . pure . Stream
......
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