penny-lib-0.4.0.0: Extensible double-entry accounting system - library

Safe HaskellSafe-Infered

Penny.Zinc.Parser.Filter

Synopsis

Documentation

parseFilter :: T -> Parser (Exceptional Error (Either NeedsHelp Result))Source

Parses all filtering options. Returns a parser that contains an Exception if some error occurred after parsing the options, or a Success with a result if the parse was successful.

data Error Source

Instances

data NeedsHelp Source

Returned if the user requested help.

Constructors

NeedsHelp 

Instances

data Result Source

Indicates the result of a successful parse of filtering options.

Constructors

Result 

Fields

resultFactory :: CaseSensitive -> Text -> Exceptional Text (Text -> Bool)

The factory indicated, so that it can be used in subsequent parses of the same command line.

resultSensitive :: CaseSensitive

Indicated case sensitivity, so that it can be used in subsequent parses of the command line.

sorterFilterer :: [Transaction] -> [Box LibertyMeta]

Applied to a list of Transaction, will sort and filter the transactions and assign them LibertyMeta.