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