MissingPy-0.10.6: Haskell interface to Python

MaintainerJohn Goerzen,
Safe HaskellNone

MissingPy.FileArchive.BZip2

Description

Maintainer : jgoerzen@complete.org Stability : provisional Portability: portable

Support for BZip2 files

Written by John Goerzen, jgoerzen@complete.org

Synopsis

Documentation

openBz2Source

Arguments

:: FilePath

File to open

-> IOMode

Mode to open with

-> Int

Compression Level

-> IO PyFile

Resulting handle

Open a BZip2 file. The compression level should be from 1 (least compression) to 9 (most compression). This is ignored when the file is opened read-only.

Once opened, the functions defined in System.IO.HVIO can be used to work with it.

BZip2 supports only ReadMode and WriteMode for the IOMode.