Safe Haskell | None |
---|---|
Language | Haskell2010 |
Squeeze.Data.CommandOptions
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.
- data CommandOptions ratio
- solutionSizeBounds :: RealFrac f => CommandOptions f -> Interval FileSize
- deriveMinimumBytes :: RealFrac ratio => CommandOptions ratio -> FileSize
- subtractFile :: RealFrac ratio => FileSize -> CommandOptions ratio -> CommandOptions ratio
- mkCommandOptions :: Real ratio => Bool -> FileSize -> Maybe Int -> ratio -> Verbosity -> CommandOptions ratio
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 => Default (CommandOptions f) Source # | |
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.
Constructor
mkCommandOptions :: Real ratio => Bool -> FileSize -> Maybe Int -> ratio -> Verbosity -> CommandOptions ratio Source #
Smart constructor.