[Haskell-cafe] Simple binary-protocol through network test

Yves Parès limestrael at gmail.com
Thu Apr 8 17:35:27 EDT 2010


Okay,

Guess I will have to learn how to use git.
I used darcs so far...

Concerning the bug in bytestring, I sent a mail to dons. I just still have
no answer.


Gregory Crosswhite-2 wrote:
> 
> That sounds like a reasonable modification;  if you want, free to fork it
> at http://github.com/gcross/binary-protocol and push me your proposed
> changes.
> 
> Cheers,
> Greg
> 
> 
> On Apr 8, 2010, at 9:12 AM, Yves Parès wrote:
> 
>> 
>> By the way, Gregory, concerning the package binary-protocol, I was
>> wondering
>> if it was possible to turn the BinaryProtocol monad from
>> type BinaryProtocol = StateT (Handle, Handle, ByteString) IO
>> to:
>> type BinaryProtocol = StateT (Handle, Handle, ByteString)
>> 
>> And then the functions, like runProtocol, would become:
>> runProtocol :: (MonadIO m) => BinaryProtocol m a -> Handle -> Handle -> m
>> a
>> 
>> I mean that BinaryProtocol could run within any MonadIO, not only IO.
>> This
>> would turn the BinaryProtocol into a monad trans, which would be more
>> generic (we could for instance stack two BinaryProtocols).
>> 
>> 
>> Yves Parès wrote:
>>> 
>>> Problem tracked!
>>> 
>>> It comes from the last version of bytestring package.
>>> I tried with bytestring-0.9.1.5, and it works perfectly.
>>> 
>>> Do you know where I should submit this bug?
>>> 
>> 
>> 
>> -----
>> Yves Parès
>> 
>> Live long and prosper
>> -- 
>> View this message in context:
>> http://old.nabble.com/Simple-binary-protocol-through-network-test-tp28157883p28180773.html
>> Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
>> 
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
> 
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
> 
> 


-----
Yves Parès

Live long and prosper
-- 
View this message in context: http://old.nabble.com/Simple-binary-protocol-through-network-test-tp28157883p28184890.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list