lib:Hledger.Query: queryIsAmtOrSym
This commit is contained in:
parent
5bbf31096d
commit
bdd2018663
@ -44,6 +44,7 @@ module Hledger.Query (
|
||||
queryIsReal,
|
||||
queryIsAmt,
|
||||
queryIsSym,
|
||||
queryIsAmtOrSym,
|
||||
queryIsStartDateOnly,
|
||||
queryIsTransactionRelated,
|
||||
-- * accessors
|
||||
@ -685,6 +686,9 @@ queryIsSym :: Query -> Bool
|
||||
queryIsSym (Sym _) = True
|
||||
queryIsSym _ = False
|
||||
|
||||
queryIsAmtOrSym :: Query -> Bool
|
||||
queryIsAmtOrSym = liftA2 (||) queryIsAmt queryIsSym
|
||||
|
||||
-- | Does this query specify a start date and nothing else (that would
|
||||
-- filter postings prior to the date) ?
|
||||
-- When the flag is true, look for a starting secondary date instead.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user