
28 Jan
2007
28 Jan
'07
2:22 p.m.
On Sun, 2007-01-28 at 09:58 -0800, Iavor Diatchki wrote:
Hello, The "packCString" function (and other similar functions) in the ByteString library break referential transperancy, which is one of the big selling points of Haskell (and its libraries).
I think that because of this we should either remove these functions, or at least follow the convention of other libraries and give them "unsafe" names.
We can put them in the IO monad. The same applies to packCStringLen and packMallocCString. Duncan