Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-decompress

Haskell library to automatically decompress a file when opening.

Example, to print the uncompressed length of the file "test.gz":

import System.IO
import Data.AutoDecompress

main = withDecompressFile "test.gz" $ \h -> do
          str <- hGetContents h
          print $ length str

How it works

The module Data.AutoDecompress.Transform provides functions to transform files based on the their "magic number". The convenience module Data.AutoDecompress defines decompressors for gzip (gunzip), bzip2 (bunzip2), zip (funzip). You can use the Data.AutoDecompress.Transform module directly if you wish to use different decompressors.

About

Haskell library to automatically decompress a file when opening

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages