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

Safe HaskellNone

Penny.Lincoln.Queries

Description

Examining a PostFam for a particular component of the main posting (as opposed to the sibling postings) in the PostFam. For some components, such as the payee, the posting might have one piece of data while the TopLine has something else. These functions will examine the Posting first and, if it has no information, use the data from the TopLine if it is there.

Synopsis

Documentation

best :: (Posting -> Maybe a) -> (TopLine -> Maybe a) -> PostFam -> Maybe aSource

Uses the data from the Posting if it is set; otherwise, use the data from the TopLine.