fishfood-0.0.1.11: Calculates file-size frequency-distribution.

Safe HaskellNone
LanguageHaskell2010

FishFood.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

Type-synonyms

type BinSizeDelta ratio = Either (Maybe FileSize) ratio Source #

Either an arithmetic size-increase for which there's a default, or a geometric size-ratio.

Data-types

data CommandOptions ratio Source #

Declares a record to contain command-line options.

Instances
Show ratio => Show (CommandOptions ratio) Source # 
Instance details

Defined in FishFood.Data.CommandOptions

Methods

showsPrec :: Int -> CommandOptions ratio -> ShowS #

show :: CommandOptions ratio -> String #

showList :: [CommandOptions ratio] -> ShowS #

Default (CommandOptions ratio) Source # 
Instance details

Defined in FishFood.Data.CommandOptions

Methods

def :: CommandOptions ratio #

(Num ratio, Ord ratio, Show ratio) => SelfValidator (CommandOptions ratio) Source # 
Instance details

Defined in FishFood.Data.CommandOptions

Methods

getErrors :: CommandOptions ratio -> [String] #

isValid :: CommandOptions ratio -> Bool #

Functions

Constructor

mkCommandOptions :: (Num ratio, Ord ratio, Show ratio) => BinSizeDelta ratio -> Bool -> Int -> Verbosity -> CommandOptions ratio Source #

Smart constructor.

Mutators

setBinSizeRatio :: ratio -> CommandOptions ratio -> CommandOptions ratio Source #

Mutator.