
Hey all, Is there a library function (f :: [Int] -> ByteString) such that it's prefix-preserving, and platform independent? GHC-only is fine for now. There are a bunch of functions of that type, but I need those guarantees and I'm hoping someone else has already done it. If there isn't one for Int, has someone already made a package that offers IntMap on Word32, Word64, etc? -- Live well, ~wren

wren:
Hey all,
Is there a library function (f :: [Int] -> ByteString) such that it's prefix-preserving, and platform independent? GHC-only is fine for now. There are a bunch of functions of that type, but I need those guarantees and I'm hoping someone else has already done it.
should be possible to write using Data.Binary. -- Don

Don Stewart wrote:
wren:
Hey all,
Is there a library function (f :: [Int] -> ByteString) such that it's prefix-preserving, and platform independent? GHC-only is fine for now. There are a bunch of functions of that type, but I need those guarantees and I'm hoping someone else has already done it.
should be possible to write using Data.Binary.
Definitely possible, I was just hoping it's already been done :) -- Live well, ~wren
participants (2)
-
Don Stewart
-
wren ng thornton