[Haskell-cafe] Re: doubts about runGetState in the binary package

Manlio Perillo manlio_perillo at libero.it
Thu Mar 19 09:48:45 EDT 2009


ChrisK ha scritto:
> Manlio Perillo wrote:
>> Hi.
>>
>> I have some doubts about the runGetState function in the binary package.
>> The signature is:
>> runGetState :: Get a -> LBS -> Int64 -> (a, LBS, Int64)
>>
>>
>> however the Int64 "input parameter" is not documented.
>> What value should I pass?
>> How will be used?
>>
 > [...]
> 
> hackage has the code at
> http://hackage.haskell.org/packages/archive/binary/0.5.0.1/doc/html/src/Data-Binary-Get.html#runGetState 
> 

Yes, and I have read the code, as the first thing.
And (after some testing) I figured out how it works.

However I wanted to be sure I understand it, since, as I have written, 
IMHO it is not clearly documented; and I can't see how it can be useful, 
there are no usage examples.

 > [...]



Thanks  Manlio Perillo


More information about the Haskell-Cafe mailing list