binary
binary copied to clipboard
encode'
Would be useful to provide encode' :: (Binary a) => a -> Data.ByteString.ByteString
Usually I want lazy, but sometimes I do not.
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.