Data.ByteString: copyCStringLen not in the IO monad

Tomasz Zielonka tomasz.zielonka at gmail.com
Wed May 17 13:46:37 EDT 2006


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.

Best regards
Tomasz


More information about the Libraries mailing list