Replace blaze-builder with bsb-http-chunked#109
Replace blaze-builder with bsb-http-chunked#109sjakobi wants to merge 3 commits intosnapframework:masterfrom
Conversation
| import System.IO.Streams (InputStream, OutputStream) | ||
| import qualified System.IO.Streams as Streams | ||
| import System.IO.Streams.Attoparsec (parseFromStream) | ||
| import Data.ByteString.Builder.HTTP.Chunked (chunkedTransferEncoding, chunkedTransferTerminator) |
There was a problem hiding this comment.
This is the main change.
|
The Travis failure seems to be due to |
|
Yeah, I already opened this PR. basvandijk/threads#15 @gregorycollins Thoughts? |
|
@sjakobi Hmmm, when testing with GHC 8.4.1 |
|
Oof! For http-streams, I have already opened aesiniath/http-streams#108. I'll wait for any feedback there until (maybe) I do more work. http-common looks easy to fix but as with http-streams it's probably better to use a faster strict bytestring builder. I have opened aesiniath/http-common#14 |
|
Thanks for doing this work BTW. I was recently thinking that we should probably make the switch from blaze-builder to bytestring. Any chance you can modify |
Can you explain why that's important to you? I use bytestring-builder only to stay compatible with GHC < 7.8. I can hide the dependency again for recent GHCs like this if you prefer. |
|
Well, in general I like to minimize dependencies. I was thinking it wasn't buying us enough, but if it's buying us compatibility with < 7.8, then I think you're right, we should keep it for awhile longer. With snap we have a strong commitment to backwards compatibility. I just ditched 7.4 compatibility for |
Aren't you going to adjust your lower bound on base then? |
|
Oh, good point. I had removed the Travis test, but not bumped the lower bound. Just did that. |
|
@sjakobi It looks like your merge has an error in the cabal file. (The master branch is now building with GHC 8.4 btw.) |
|
I shouldn't have used the GitHub interface to fix the merge conflict… :) BTW, now that |
I have extracted
Blaze.ByteString.Builder.HTTPinto a new package.