Data.ByteString: copyCStringLen not in the IO monad
17 May
2006
17 May
'06
11:16 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
18 May
18 May
6:41 a.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
7180
Age (days ago)
7181
Last active (days ago)
1 comments
2 participants
participants (2)
-
dons@cse.unsw.edu.au -
Tomasz Zielonka