Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add hGetChunk #26

merged 1 commit into from Sep 9, 2012


None yet
2 participants

jhance commented Apr 8, 2012

Addresses (to a certain extent) the lack of hGetSome. hGetChunk essentially performs the same role which should be helpful to strict IO based on enumerators or conduits.

See issue #25


jhance commented Apr 8, 2012

Also I don't know if it makes sense to implement a similar function in Data.Text.Lazy.IO. It would just be fromChunks <$> Data.Text.IO.hGetChunk h but it really doesn't make sense to begin with to be reading a lazy single chunk.

@bos bos merged commit abf20a8 into haskell:master Sep 9, 2012


bos commented Sep 9, 2012

Sorry it took me a while to respond to this.

I had to make a few changes on top of your commit: be28fb7 removes some code you copy-and-pasted (naughty naughty!), while 24fd53e clarifies what the function actually does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment