Patch: add ByteString.Unsafe.unsafePackMallocCStringLen

Bas van Dijk v.dijk.bas at
Wed Jun 20 18:40:46 CEST 2012

On 20 June 2012 11:40, Lauri Alanko <la at> wrote:
> There's a minor lapse in Data.ByteString.Unsafe: unsafePackMallocCString,
> unlike the other unsafePack* -functions, doesn't have a variant with an
> explicit length. This is useful when interfacing with C libraries that
> return a blob of binary data that the caller must free. Attached is a darcs
> patch that adds it.


More information about the Libraries mailing list