
15 Nov
2007
15 Nov
'07
3:37 a.m.
Don Stewart
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.