Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
hledger-lib Hledger.Query No documentation available.
-
hledger-lib Hledger.Query No documentation available.
-
hledger-lib Hledger.Query No documentation available.
-
hledger-lib Hledger.Query No documentation available.
parseQuery :: Day -> Text -> Either String (Query, [QueryOpt])hledger-lib Hledger.Query A version of parseQueryList which acts on a single Text of space-separated terms. The usual shell quoting rules are assumed. When a pattern contains whitespace, it (or the whole term including prefix) should be enclosed in single or double quotes. A query term is either:
- a search pattern, which matches on one or more fields, eg:acct:REGEXP - match the account name with a regular expression desc:REGEXP - match the transaction description date:PERIODEXP - match the date with a period expression
- a query option, which modifies the reporting behaviour in some way. There is currently one of these, which may appear only once:inacct:FULLACCTNAME
>>> parseQuery nulldate "expenses:dining out" Right (Or [Acct (RegexpCI "expenses:dining"),Acct (RegexpCI "out")],[])
>>> parseQuery nulldate "\"expenses:dining out\"" Right (Acct (RegexpCI "expenses:dining out"),[])
parseQueryList :: Day -> [Text] -> Either String (Query, [QueryOpt])hledger-lib Hledger.Query Convert a list of space-separated queries to a single query Multiple terms are combined as follows: 1. multiple account patterns are OR'd together 2. multiple description patterns are OR'd together 3. multiple status patterns are OR'd together 4. then all terms are AND'd together
parseQueryTerm :: Day -> Text -> Either String (Query, [QueryOpt])hledger-lib Hledger.Query Parse a single query term as either a query or a query option, or return an error message if parsing fails.
requireJournalFileExists :: FilePath -> IO ()hledger-lib Hledger.Read If the specified journal file does not exist (and is not "-"), call error with an informative message. (Using "journal file" generically here; it could be in any of hledger's supported formats.)
doublequotedtextp :: forall (m :: Type -> Type) . TextParser m Texthledger-lib Hledger.Read.Common Parse a single line of possibly empty text enclosed in double quotes.
infer_equity :: HasInputOpts c => Lens' c Boolhledger-lib Hledger.Read.Common No documentation available.