haskell-servant / haskell-servant/servant
Alternative pattern for client streaming ?
- Dominant language
- Haskell
- Stars
- 2k
- Forks
- 427
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 5
Description
Hi,
I need to do a remote streaming call inside a local streaming process. It's a `concatMap` basically ... I wanted to use the servant streaming API for this but I need to handle the connection resource with a bracket pattern somehow and it looks like this is an issue of composability in my use case :
I would like to do something like this (in `Pipes`)
```
myStream >-> myRemotePipe >-> processDownTheStream
```
but I have to wrap my remotePipe into that layer :
``` withClientM (cli n) (mkClientEnv mgr burl) $ \me -> ... ```
and therefore I don't see how I could compose my nested remote pipe ...
How would you implement `myRemotePipe` ?
Contributor guide
Assessment
This issue has not been assessed yet.