Data.ByteString: copyCStringLen not in the IO monad
Donald Bruce Stewart
dons at cse.unsw.edu.au
Wed May 17 21:11:19 EDT 2006
tomasz.zielonka:
> Hello!
>
> Why copyCStringLen :: CStringLen -> ByteString? It seems pretty
> dangerous, because at the time of forcing (copyCStringLen csLen),
> csLen may no longer be valid. I think it would be better if this
> and other similar functions returned their results in the IO monad.
>
That's reasonable. I'll look at this.
-- Don
More information about the Libraries
mailing list