Skip to content

Conversation

@wedens
Copy link

@wedens wedens commented Mar 5, 2019

I think it makes sense considering toInputStream returned singleton stream.

Not sure what to do with bin compat though. Is there some branch for breaking changes?

@mpilquist
Copy link
Member

This is a great idea. If we want to fix this in the 1.0 series, we could introduce a new name for the version that returns a resource -- toInputStreamResource perhaps. Then have the pipe version use the toInputStreamResource method in its implementation.

There's no series/1.1 yet -- we're working on a new interpreter on the topic/fs3 branch but it's a bit early to PR stuff there yet unless the changes are related to the interpreter.

@SystemFw
Copy link
Collaborator

SystemFw commented Mar 5, 2019

Data point: for hold, which is in a similar situation, I added holdResource.
Ideally we would just change it, but we can't break the api, as you point out.

EDIT: for the implementation you can choose to change the current code, or keep it as is and add .compile.resource to it

@wedens wedens force-pushed the inputstream-resource branch from 5c6f021 to 7acb465 Compare March 6, 2019 03:36
@wedens wedens changed the title convert toInputStream to Resource add toInputStreamResource Mar 6, 2019
@wedens
Copy link
Author

wedens commented Mar 6, 2019

we could introduce a new name for the version that returns a resource -- toInputStreamResource perhaps. Then have the pipe version use the toInputStreamResource method in its implementation.

I've implemented this suggestion.

@mpilquist
Copy link
Member

@wedens This looks ready to merge to me once we add the mima exclusion for binary compatibility of JavaInputOutputStream.

@wedens wedens force-pushed the inputstream-resource branch 2 times, most recently from 30652bb to dd9d407 Compare March 8, 2019 17:32
@wedens
Copy link
Author

wedens commented Mar 8, 2019

@mpilquist Done.

@wedens wedens force-pushed the inputstream-resource branch from dd9d407 to 0056398 Compare March 8, 2019 17:33
@SystemFw SystemFw merged commit 482b271 into typelevel:series/1.0 Mar 8, 2019
@SystemFw
Copy link
Collaborator

SystemFw commented Mar 8, 2019

Thank you!

@mpilquist mpilquist added this to the 1.0.5 milestone Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants