Safe Haskell | None |
---|
Like Queries
but instead of querying the main
posting of the PostFam, queries the siblings. Therefore, these
functions return a list, with each entry in the list containing the
best answer for each sibling. There is one item in the list for
each sibling, even if all these items contain the same data (for
instance, a posting might have five siblings, but all five siblings
might have the same payee. Nonetheless the payee
function will
return a list of five items.)
- bestSibs :: (PostingCore -> Maybe a) -> (TopLineCore -> Maybe a) -> Posting -> [Maybe a]
- sibs :: (Ent PostingData -> a) -> Posting -> [a]
- payee :: Posting -> [Maybe Payee]
- number :: Posting -> [Maybe Number]
- flag :: Posting -> [Maybe Flag]
- postingMemo :: Posting -> [Maybe Memo]
- account :: Posting -> [Account]
- tags :: Posting -> [Tags]
- entry :: Posting -> [Either (Entry QtyRep) (Entry Qty)]
- balance :: Posting -> [Balance]
- drCr :: Posting -> [DrCr]
- amount :: Posting -> [Either (Amount QtyRep) (Amount Qty)]
- qty :: Posting -> [Qty]
- commodity :: Posting -> [Commodity]
- postingLine :: Posting -> [Maybe PostingLine]
- side :: Posting -> [Maybe Side]
- spaceBetween :: Posting -> [Maybe SpaceBetween]
- globalPosting :: Posting -> [Maybe GlobalPosting]
- filePosting :: Posting -> [Maybe FilePosting]
- globalTransaction :: Posting -> [Maybe GlobalTransaction]
Documentation
bestSibs :: (PostingCore -> Maybe a) -> (TopLineCore -> Maybe a) -> Posting -> [Maybe a]Source
For all siblings, uses information from the Posting if it is set; otherwise, uses data from the TopLine.
sibs :: (Ent PostingData -> a) -> Posting -> [a]Source
For all siblings, get the information from the Posting if it exists; otherwise Nothing.
postingMemo :: Posting -> [Maybe Memo]Source
postingLine :: Posting -> [Maybe PostingLine]Source
spaceBetween :: Posting -> [Maybe SpaceBetween]Source
globalPosting :: Posting -> [Maybe GlobalPosting]Source
filePosting :: Posting -> [Maybe FilePosting]Source