Data.ByteString: copyCStringLen not in the IO monad

17 May
2006
17 May
'06
5: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

18 May
18 May
1:11 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
6993
Age (days ago)
6994
Last active (days ago)
1 comments
2 participants
participants (2)
-
dons@cse.unsw.edu.au
-
Tomasz Zielonka