[Haskell-cafe] Re: Using Data.Binary for compression
Dominic Steinitz
dominic.steinitz at blueyonder.co.uk
Thu Nov 15 03:37:43 EST 2007
Don Stewart <dons <at> galois.com> writes:
>
> I was about to say the same thing. So so much simpler to use Duncan's
> carefully written zlib binding,
>
> import Data.Binary
> import Codec.Compression.GZip
> import qualified Data.ByteString.Lazy as L
>
> main = L.writeFile "log.gz" . compress . encode $ [1..10::Int]
>
> Simple, purely functional, fast.
>
Don,
But something like this is needed (or I least I would like it). I'd like
functions to get and put bits as in NewBinary. Is this not a way of doing it?
Dominic.
More information about the Haskell-Cafe
mailing list