;lib: couple of doctests

[ci skip]
This commit is contained in:
Simon Michael 2020-02-03 10:10:32 -08:00
parent e0a46a6523
commit 56b51c1961

View File

@ -171,6 +171,12 @@ data QueryOpt = QueryOptInAcctOnly AccountName -- ^ show an account register fo
-- 2. multiple description patterns are OR'd together
-- 3. multiple status patterns are OR'd together
-- 4. then all terms are AND'd together
--
-- >>> parseQuery nulldate "expenses:dining out"
-- (Or ([Acct "expenses:dining",Acct "out"]),[])
-- >>> parseQuery nulldate "\"expenses:dining out\""
-- (Acct "expenses:dining out",[])
--
parseQuery :: Day -> T.Text -> (Query,[QueryOpt])
parseQuery d s = (q, opts)
where