Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 :: (Ord ratio, 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.
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.