Questions tagged [haskell-zlib]

haskell-zlib package provides a pure interface for compressing and decompressing streams of data represented as lazy ByteStrings. It uses the zlib C library so it has high performance. It supports the "zlib", "gzip" and "raw" compression formats. It provides a convenient high level API suitable for most tasks and for the few cases where more control is needed it provides access to the full zlib feature set.

3 questions
1
vote
1 answer

Decompress zlib data in Haskell -- Incorrect header check

I wrote a simple Haskell program that fetches some compressed data from a certain website and then decompress it, but I always get an error said 'incorrect header check'. I've wrote the same program in D lang and it works fine. For now, I can…
0xBBC
  • 105
  • 2
  • 8
1
vote
1 answer

Handling Haskell zlib decompression errors

I have a String x which may or may not be gzip-compressed. Using the zlib library, I want to try decompressing x -- if it succeeds, the function shall return the compressed String. If not (i.e. x is not gzip-compressed) I want to simply return x. As…
Uli Köhler
  • 13,012
  • 16
  • 70
  • 120
0
votes
1 answer

anyway to edit dd-wrt nvram .bin backup ( settings backup) file?

is there any way to edit the .bin backup ? i found program by nirosoft called "routerpassview" and it decrypted it very well but don't know how to encrypt it again to .bin file and restore settings DECIMAL HEXADECIMAL DESCRIPTION 84 …