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
> 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.
More information about the Libraries