Data.ByteString: copyCStringLen not in the IO monad

17 May
2006
17 May
'06
1:46 p.m.
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

17 May
17 May
9:11 p.m.
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
6946
Age (days ago)
6947
Last active (days ago)
1 comments
2 participants
participants (2)
-
dons@cse.unsw.edu.au
-
Tomasz Zielonka