binary icon indicating copy to clipboard operation
binary copied to clipboard

encode'

Open singpolyma opened this issue 11 years ago • 1 comments

Would be useful to provide encode' :: (Binary a) => a -> Data.ByteString.ByteString

Usually I want lazy, but sometimes I do not.

singpolyma avatar Apr 28 '13 21:04 singpolyma

Please provide this and a strict version of runPut, I'm using binary because some of my dependencies need it, but all of my application uses strict ByteString internally and it is very frustrating to have to manually convert to strict ByteStrings every single time I use encode/put to serialise.

Switching to cereal isn't an option since I already depend on binary.

merijn avatar Aug 17 '14 06:08 merijn