bytestring
Haskell iteratee: simple worked example of stripping trailing whitespace
I开发者_C百科\'m trying to understand how to use the iteratee library with Haskell. All of the articles I\'ve seen so far seem to focus on building an intuition for how iteratees could be built, which[详细]
2023-03-19 10:02 分类:问答How to store recursive datatype with Data.Binary
Data.Binary is great. There is just one question I have. Let\'s imagine I\'ve got a datatype like this:[详细]
2023-03-15 16:51 分类:问答findSubstrings and breakSubstring in Data.ByteString
In the source of Data/ByteString.hs it says that the function findSubstrings has been deprecated in favor of breakSubstring. However I think the findSubstrings which was implemented using the KMP algo[详细]
2023-03-12 06:59 分类:问答When do I use ByteString and when do I not?
I\'ve been making rather poor attempts at the PRIME1 problem on SPOJ. I discovered using that using ByteString really helped performance for reading in the problem text. However, using ByteString to w[详细]
2023-03-05 19:03 分类:问答Datatype to ByteString
I have a newtype I\'d like to save in a file, something like this: type Index = (Int, Int) newtype Board a = Board { unboard :: Array Index a }[详细]
2023-02-25 02:20 分类:问答IO over big files in haskell: Performance issue
I\'m trying to work over big files using Haskell. I\'d like to browse an input file byte after byte, and to generate an output byte after byte. Of course I need the IO to be buffered with blocks of re[详细]
2023-02-19 05:54 分类:问答Haskell ByteStrings - ending up with large file loaded into memory
Greetings, I\'m trying to understand why I\'m seeing the entire file loaded into memory with the following program, yet if you comment out the line below \"(***)\" then the program runs in constant ([详细]
2023-01-20 20:40 分类:问答Reading in a binary file in haskell
How could I write a function with a definition something like... readBinaryFile :: Filename -> IO Data.ByteString[详细]
2023-01-10 14:30 分类:问答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 is[详细]
2023-01-07 01:46 分类:问答haskell network io hgetline
I want to read all the data on a handle, and then block waiting for more data.listen1 stops when there is a \'\\n\' character in the stream.listen2 works and could be made completely general by imitat[详细]
2022-12-31 03:20 分类:问答