I think they'd be pretty useful when using stdio with other libraries, I needed to define them in order to use proto-lens. Those seem to work for me: ```hs import Std.Foreign.PrimArray as F import qualified Data.ByteString as BS import Std.Data.CBytes as CBytes bytesToByteString :: Bytes -> IO ByteString bytesToByteString bytes = F.withPrimVectorSafe bytes (\ptr len -> BS.packCStringLen (castPtr ptr, len)) bytesFromByteString :: ByteString -> IO Bytes bytesFromByteString bs = CBytes.toBytes <$> BU.unsafeUseAsCString bs CBytes.fromCString ```