bytestring Questions
1
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 a...
Leaky asked 13/6, 2011 at 13:43
2
Solved
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...
Swearword asked 11/5, 2011 at 23:49
2
Solved
How could I write a function with a definition something like...
readBinaryFile :: Filename -> IO Data.ByteString
I've got the functional parts of Haskell down, but the type system and monads...
Katsuyama asked 9/8, 2010 at 6:6
1
Solved
I'm wanting to get the magic number from a git packfile index to ensure that it is indeed a packfile. The pack format documentation states that the magic number is "/377tOc". When I open the packfi...
Amadou asked 7/4, 2011 at 22:30
2
Solved
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 r...
Wesla asked 24/3, 2011 at 13:8
1
Solved
i've been trying to read a large file in haskell.
I need to compress it using a custom algorithm for a university project. Everything works fine untill i start to compress big files.
I extracted ...
Somato asked 23/3, 2011 at 19:48
2
Solved
I am trying to load a PNG file, get the uncompressed RGBA bytes, then send them to the gzip or zlib packages.
The pngload package returns image data as a (StorableArray (Int, Int) Word8), and the ...
Stefanysteffane asked 27/6, 2010 at 16:48
4
Solved
I am reading a large data stream using lazy bytestrings, and want to know if at least X more bytes is available while parsing it. That is, I want to know if the bytestring is at least X bytes long....
Prompter asked 25/3, 2010 at 15:54
3
Solved
I'm going out of my mind trying to simply output UTF-8-encoded data to the console.
I've managed to accomplish this using String, but now I'd like to do the same with ByteString. Is there a nice a...
Swinge asked 18/1, 2010 at 14:57
© 2022 - 2024 — McMap. All rights reserved.