Top "Bytestring" questions

A time and space-efficient implementation of byte vectors for Haskell.

What is the best way to convert String to ByteString

What is the best way to convert a String to a ByteString in Haskell? My gut reaction to the problem …

string haskell bytestring
Haskell How to convert Char to Word8

I want to split ByteString to words like so: import qualified Data.ByteString as BS main = do input <- …

haskell bytestring
Using Haskell to output a UTF-8-encoded ByteString

I'm going out of my mind trying to simply output UTF-8-encoded data to the console. I've managed to accomplish …

unicode haskell io ghc bytestring
Convert a Lazy ByteString to a strict ByteString

I have a function that takes a lazy ByteString, that I wish to have return lists of strict ByteStrings (the …

haskell lazy-evaluation strict bytestring chunking
How to convert a Integer to a ByteString in Haskell

We'd like to serialize data in a specific binary format. We use Data.ByteStrings internally. So, the question is: How …

haskell bytestring
What is the best way to convert a ByteString to an Int?

I always run into the following error when trying to read a ByteString: Prelude.read: no parse Here's a sample …

haskell bytestring