
19 Mar
2009
19 Mar
'09
9:48 a.m.
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...
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