squeeze-1.0.4.8: A file-packing application.

Safe HaskellNone
LanguageHaskell2010

Squeeze.Data.CommandOptions

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
  • Defines options for program-operation.
  • Defines an appropriate default value, which is expected to be over-ridden on the command-line.
  • Self-validates.

Synopsis

Types

Data-types

data CommandOptions ratio Source

Declares a record to contain command-line options.

Instances

Eq ratio => Eq (CommandOptions ratio) Source 
Show ratio => Show (CommandOptions ratio) Source 
Fractional f => Defaultable (CommandOptions f) Source 
(Ord ratio, Real ratio) => SelfValidator (CommandOptions ratio) Source 

Functions

solutionSizeBounds :: RealFrac f => CommandOptions f -> Interval FileSize Source

The bounds on the aggregate size of the set of files.

deriveMinimumBytes :: RealFrac ratio => CommandOptions ratio -> FileSize Source

Derives the minimum number of bytes, from other options.

subtractFile :: RealFrac ratio => FileSize -> CommandOptions ratio -> CommandOptions ratio Source

Reduce the requirements by the specified file-size.

Constructors

mkCommandOptions :: (Ord ratio, Real ratio) => Bool -> FileSize -> Maybe Int -> ratio -> Verbosity -> CommandOptions ratio Source

Smart constructor.