A:h      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnop q r s t u v w x y z { | } ~                                                                                              !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefg Safe-Inferred EA string received from or being passed to the operating system, such H as a file path, command-line argument, or environment variable name or I value. With GHC versions before 7.2 on some platforms (posix) these are I typically encoded. When converting, we assume the encoding is UTF-8 (cf   Dhttp://www.dwheeler.com/essays/fixing-unix-linux-filenames.html#UTF8). FConvert a system string to an ordinary string, decoding from UTF-8 if A it appears to be UTF8-encoded and GHC version is less than 7.2. DConvert a unicode string to a system string, encoding with UTF-8 if % we are on a posix platform with GHC < 7.2. 'A SystemString-aware version of error. +A SystemString-aware version of userError.      None(;A Ledger has the journal it derives from, and the accounts ? derived from that. Accounts are accessible both list-wise and @ tree-wise, since each one knows its parent and subs; the first 4 account is the root of the tree and always exists. 3An account, with name, balances and links to parent/ subaccounts 1 which let you walk up or down the account tree.  this account' s full name  this account'!s balance, excluding subaccounts  sub-accounts C anumpostings :: Int -- ^ number of postings to this account  derived from the above:  this account'!s balance, including subaccounts parent account 6used in the accounts report to label elidable parents %FA hledger journal reader is a triple of format name, format-detecting % predicate, and a parser to Journal. *2The id of a data format understood by hledger, eg journal or csv. +@A JournalUpdate is some transformation of a Journal. It can do I/O or  raise an error. 3,any trailing comments from the journal file 40the context (parse state) at the end of parsing 5+the file path and raw text of the main and . any included journal files. The main file is - first followed by any included files in the 6 order encountered (XXX reversed, cf journalAddFile). 61when this journal was last read from its file(s) 7)how to display amounts in each commodity 8 A journal context0 is some data which can change in the course of I parsing a journal. An example is the default year, which changes when a G Y directive is encountered. At the end of parsing, the final context / is saved for later use by eg the add command. :0the default year most recently specified with Y ;Fthe default commodity and amount style most recently specified with D <$the current stack of parent accounts/account name components  specified with account# directive(s). Concatenated, these = are the account prefix prepended to parsed account names. =3the current list of account name aliases in effect ^this transaction'<s comment lines, as a single non-indented multi-line string _1tag names and values, extracted from the comment `this transaction' s postings a9any comment lines immediately preceding this transaction d this posting')s date, if different from the transaction's e this posting'3s secondary date, if different from the transaction's i this posting'<s comment lines, as a single non-indented multi-line string k1tag names and values, extracted from the comment lAoptional: the expected balance in the account after this posting m this posting'+s parent transaction (co-recursive types). 4 Tying this knot gets tedious, Maybe makes it easier/ optional. y*the (fixed) price for this amount, if any {Display style for an amount. }2does the symbol appear on the left or the right ? ~$space between symbol and quantity ? 3number of digits displayed after the decimal point  character used as decimal point :character used for separating digit groups (eg thousands) Jpositions of digit group separators, counting leftward from decimal point  An amount'9s price (none, per unit, or total) in another commodity. L Note the price should be a positive number, although this is not enforced.  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn'A tag name and (possibly empty) value. opqrstuvwxyz{|}~hi !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~{|}~uvwxyzstorqpnbcdefghijklmWXYZ[\]^_`aSTUVOPQRINMLKJDEFGH?@ABC>89:;<=,-./01234567+*%&'()$#"! !$#"! %&'()*+, -./0123456789:;<=>?@ABCDEFGHINMLKJOPQRSTUVW XYZ[\]^_`ab cdefghijklmnorqpstuvwxyz{|}~hiNone jklmnopq !"#$$#"!  jklmnopqNone/?An efficient-to-build tree suggested by Cale Gibbard, probably " better than accountNameTreeFrom. $Wrap a string in single quotes, and -prefix any embedded single A quotes, if it contains whitespace and is not already single- or  double-quoted. "Quote-aware version of words - don'+t split on spaces which are inside quotes.  NB correctly handles a'b but not ''a'''. Can raise an error if parsing fails. OQuote-aware version of unwords - single-quote strings which contain whitespace DSingle-quote this string if it contains whitespace or double-quotes LStrip one matching pair of single or double quotes on the ends of a string. \Join multi-line strings as side-by-side rectangular strings of the same height, top-padded. _Join multi-line strings as side-by-side rectangular strings of the same height, bottom-padded. .Compose strings vertically and right-aligned. XConvert a multi-line string to a rectangular string top-padded to the specified height. [Convert a multi-line string to a rectangular string bottom-padded to the specified height. XConvert a multi-line string to a rectangular string left-padded to the specified width. YConvert a multi-line string to a rectangular string right-padded to the specified width. NClip a multi-line string to the specified width and height from the top left. IClip and pad a multi-line string to fill the specified width and height. #List just the leaf nodes of a tree Iget the sub-tree rooted at the first (left-most, depth-first) occurrence  of the specified node value Cget the sub-tree for the specified node value in the first tree in  forest in which it occurs. &remove all nodes past a certain depth apply f to all tree nodes 9remove all subtrees whose nodes do not fulfill predicate (is predicate true in any node of tree ? .show a compact ascii representation of a tree 0show a compact ascii representation of a forest 5Trace (print on stdout at runtime) a showable value. < (for easily tracing in the middle of a complex expression) 6Labelled trace - like strace, with a label prepended. HMonadic trace - like strace, but works as a standalone line in a monad. 9Custom trace - like strace, with a custom show function. @Parsec trace - show the current parsec position and next input,  and the provided label if it' s non-null. AGlobal debug level, which controls the verbosity of debug output ? on the console. The default is 0 meaning no debug output. The  --debug$ command line flag sets it to 1, or  --debug=N sets it to  a higher value (note: not  --debug N for some reason). This uses E unsafePerformIO and can be accessed from anywhere and before normal D command-line processing. After command-line processing, it is also  available as the debug_ field of . BPrint a message and a showable value to the console if the global 1 debug level is non-zero. Uses unsafePerformIO. >Print a showable value to the console, with a message, if the 6 debug level is at or above the specified level (uses  unsafePerformIO). I Values are displayed with show, all on one line, which is hard to read. >Print a showable value to the console, with a message, if the 6 debug level is at or above the specified level (uses  unsafePerformIO). - Values are displayed with ppShow, each field/constructor on its own line. >Print a showable value to the console, with a message, if the 6 debug level is at or above the specified level (uses  unsafePerformIO). F Values are displayed with pprint. Field names are not shown, but the ? output is compact with smart line wrapping, long data elided, " and slow calculations timed out. 7Like dbg, then exit the program. Uses unsafePerformIO. ?Print a message and parsec debug info (parse position and next ; input) to the console when the debug level is at or above # this level. Uses unsafePerformIO. 2 pdbgAt :: GenParser m => Float -> String -> m () @Backtracking choice, use this when alternatives share a prefix. ( Consumes no input if all choices fail.  Get a Test's label, or the empty string. AFlatten a Test containing TestLists into a list of single tests. CFilter TestLists in a Test, recursively, preserving the structure. FSimple way to assert something is some expected value, with no label. JAssert a parse result is successful, printing the parse error on failure. JAssert a parse result is successful, printing the parse error on failure. SAssert a parse result is some expected value, printing the parse error on failure. KApply a function the specified number of times. Possibly uses O(n) stack ? UConvert a possibly relative, possibly tilde-containing file path to an absolute one, @ given the current directory. ~username is not supported. Leave - unchanged. \Read a file in universal newline mode, handling whatever newline convention it may contain. clrs j bNone  a:b:c,d:e -> [a,a:b,a:b:c,d,d:e]  a:b:c -> [a,a:b,a:b:c]  a:b:c,d:e -> [a,d] <From a list of account names, select those which are direct ( subaccounts of the given account name. +Convert a list of account names to a tree. 5Elide an account name to fit in the specified width.  From the ledger 2.6 news:  H What Ledger now does is that if an account name is too long, it will F start abbreviating the first parts of the account name down to two E letters in length. If this results in a string that is still too @ long, the front will be elided -- not the end. For example:  +Expenses:Cash ; OK, not too long  Ex:Wednesday:Cash ; Expenses was abbreviated to fit  Ex:We:Afternoon:Cash ; Expenses and  Wednesday abbreviated E ; Expenses:Wednesday:Afternoon:Lunch:Snack:Candy:Chocolate:Cash 7 ..:Af:Lu:Sn:Ca:Ch:Cash ; Abbreviated and elided! QConvert an account name to a regular expression matching it and its subaccounts. UConvert an account name to a regular expression matching it but not its subaccounts. NConvert an exact account-matching regular expression to a plain account name. JDoes this string look like an exact account-matching regular expression ?                     None%Look up one of the sample commodities' symbol by name.  GFind the conversion rate between two commodities. Currently returns 1.  ! ! ! !None+#The empty simple amount. $The empty simple amount. t>Apply a binary arithmetic operator to two amounts in the same F commodity. Warning, as a kludge to support folds (eg sum) we assign  the second';s commodity to the first so the same commodity requirement H is not checked. The highest precision of either amount is preserved in I the result. Any prices are currently ignored and discarded. The display I style is that of the first amount, with precision set to the highest of  either amount. *FConvert an amount to the specified commodity, ignoring and discarding 9 any assigned prices and assuming an exchange rate of 1. +)A more complete amount adding operation. , Set an amount's unit price. - Set an amount's total price. .JConvert an amount to the commodity of its assigned price, if any. Notes: i price amounts must be MixedAmounts with exactly one component Amount (or there will be a runtime error) I price amounts should be positive, though this is not currently enforced /Divide an amount's quantity by a constant. u0Is this amount negative ? The price is ignored. vMDoes this amount appear to be zero when displayed with its given precision ? wIs this amount really- zero, regardless of the display precision ? N Since we are using floating point, for now just test to some high precision. xBGet the string representation of an amount, based on its commodity's 8 display settings except using the specified precision. 0 Set an amount's display precision. 1 Set an amount's display precision, flipped. 28Get a string representation of an amount for debugging, A appropriate to the current debug level. 9 shows maximum detail. 38Get the string representation of an amount, without any @ price. ySGet the string representation of an amount, without any price or commodity symbol. 4BGet the string representation of an amount, based on its commodity's A display settings. String representations equivalent to zero are  converted to just "0". zBGet the string representation of the number part of of an amount, 0 using the display settings from its commodity. {Replace a number string'.s decimal point with the specified character, I and add the specified digit group separators. The last digit group will  be repeated as needed. 5PFor rendering: a special precision value which means show all available digits. 6RFor rendering: a special precision value which forces display of a decimal point. 7Canonicalise an amount'8s display style using the provided commodity style map. 8The empty mixed amount. 9IA temporary value for parsed transactions which had no amount specified. <Simplify a mixed amount',s component amounts: we can combine amounts I with the same commodity and unit price. Also remove any zero or missing E amounts and replace an empty amount list with a single zero amount. =Simplify a mixed amount'*s component amounts: combine amounts with + the same commodity, using the first amount's price for subsequent D amounts in each commodity (ie, this function alters the amount and D is best used as a rendering helper.). Also remove any zero amounts = and replace an empty amount list with a single zero amount. >Get a mixed amount's component amounts. ?Convert a mixed amount'.s component amounts to the commodity of their  assigned price, if any. @Divide a mixed amount's quantities by a constant. AOIs this mixed amount negative, if it can be normalised to a single commodity ? BSDoes this mixed amount appear to be zero when displayed with its given precision ? CIs this mixed amount really zero ? See isReallyZeroAmount. DIs this mixed amount really zero, after converting to cost  commodities where possible ? EAGet the string representation of a mixed amount, showing each of D its component amounts. NB a mixed amount can have an empty amounts  list in which case it shows as "". F9Compact labelled trace of a mixed amount, for debugging. G'Set the display precision in the amount's commodities. HEGet the string representation of a mixed amount, showing each of its @ component amounts with the specified precision, ignoring their  commoditys' display precision settings. IJGet an unambiguous string representation of a mixed amount for debugging. J=Get the string representation of a mixed amount, but without  any @ prices. KCanonicalise a mixed amount'9s display styles using the provided commodity style map. LEGiven a list of amounts in parse order, build a map from commodities < to canonical display styles for amounts in that commodity. ?"#$%&'()t*+,-|./u}vwx0123y~4z{56789:;<=>?@ABCDEFGHIJKLM,"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLM,#$9%&'(),-*./+"42356017L8:;>=<?@ABCDEIJHGKFM?"#$%&'()t*+,-|./u}vwx0123y~4z{56789:;<=>?@ABCDEFGHIJKLMNonePGet the current local date. Q$Get the current local month number. RGet the current local year. V@Get overall span enclosing multiple sequentially ordered spans. WOSplit a DateSpan into one or more consecutive spans at the specified interval. XECount the days in a DateSpan, or if it is open-ended return Nothing. Y'Does the span include the given date ? ZBCombine two datespans, filling any unspecified dates in the first A with dates from the second. Not a clip operation, just uses the  second's start/.end dates as defaults when the first does not  specify them. [5Calculate the intersection of a number of datespans. \-Calculate the intersection of two datespans. ].Calculate the union of a number of datespans. ^&Calculate the union of two datespans. _DParse a period expression to an Interval and overall DateSpan using 7 the provided reference date, or return a parse error. EShow a DateSpan as a human-readable pseudo-period-expression string. & dateSpanAsText :: DateSpan -> String / dateSpanAsText (DateSpan Nothing Nothing) = all 6 dateSpanAsText (DateSpan Nothing (Just e)) = printf to %s (show e) 6 dateSpanAsText (DateSpan (Just b) Nothing) = printf from %s (show b) 6 dateSpanAsText (DateSpan (Just b) (Just e)) = printf %s to %s (show b) (show e) EConvert a single smart date string to a date span using the provided $ reference date, or raise an error. 6 spanFromSmartDateString :: Day -> String -> DateSpan E spanFromSmartDateString refdate s = spanFromSmartDate refdate sdate  where 5 sdate = fromparse $ parsewith smartdateonly s a/Convert a smart date string to an explicit yyyy/mm/dd string using 1 the provided reference date, or raise an error. b#A safe version of fixSmartDateStr. dKConvert a SmartDate to an absolute date using the provided reference date. f6Parse a couple of date string formats to a time type. g7Parse a date string to a time type, or raise an error. BParse a time string to a time type using the provided pattern, or  return the default. h4Parse a date in any of the formats allowed in ledger's period expressions, and maybe some others:   2004  2004/10  2004/10/1  10/1  21  october, oct  yesterday, today, tomorrow , this/next/last week/day/month/quarter/year NReturns a SmartDate, to be converted to a full date later (see fixSmartDate). :Assumes any text in the parse stream has been lowercased. PLike smartdate, but there must be nothing other than whitespace after the date. lCMake a datespan from two valid date strings parseable by parsedate % (or raise an error). Eg: mkdatespan "201111" "20111231". [NOPQRSTUVWXYZ[\]^_`abcdefghijklmno"NOPQRSTUVWXYZ[\]^_`abcdefghijklmno"PQRnYfgNOSe_mokjiTUV\[^]ZhWdabcX`l[NOPQRSTUVWXYZ[\]^_`abcdefghijklmno None { Get a posting's (primary) date - it'!s own primary date if specified, ! otherwise the parent transaction'$s primary date, or the null date if ! there is no parent transaction. | Get a posting'5s secondary (secondary) date, which is the first of:  posting's secondary date, transaction's secondary date, posting's  primary date, transaction'-s primary date, or the null date if there is  no parent transaction. }AIs this posting cleared? If this posting was individually marked 8 as cleared, returns True. Otherwise, return the parent  transaction'+s cleared status or, if there is no parent  transaction, return False. ~KTags for this posting including any inherited from its parent transaction. XTags for this transaction including any inherited from above, when that is implemented. 4Does this posting fall within the given date span ? BGet the minimal date span which contains all the postings, or the # null date span if there are none. <Prefix one account name to another, preserving posting type % indicators like concatAccountNames. 7Join account names into one. If any of them has () or [] posting type H indicators, these (the first type encountered) will also be applied to  the resulting account name. VRewrite an account name using the first applicable alias from the given list, if any. pqrstuvwxyz{|}~pqrstuvwxyz{|}~pqr}uvwx~{|yzstpqrstuvwxyz{|}~ None IDerive 1. an account tree and 2. their balances from a list of postings.  (ledger':s core feature). The accounts are returned in a list, but E retain their tree structure; the first one is the root of the tree. /Convert an AccountName tree to an Account tree Tie the knot so all subaccounts' parents are set correctly. Get this account'4s parent accounts, from the nearest up to the root. 5List the accounts at each level of the account tree. JMap a (non-tree-structure-modifying) function over this and sub accounts. BIs the predicate true on any of this account or its subaccounts ? 6Add subaccount-inclusive balances to an account tree. .Remove all subaccounts below a certain depth. <Remove all leaf accounts and subtrees matching a predicate. 8Flatten an account tree into a list, which is sometimes 6 convenient. Note since accounts link to their parents/ subs, the 6 account tree remains intact and can still be used. It's a tree/list! $Filter an account tree (to a list).  Search an account list by name.  NoneGShow a journal transaction, formatted for the print command. ledger 2.x's !standard format looks like this:  yyyymmdd[ *][ CODE]: description......... [ ; comment...............] O account name 1..................... ...$amount1[ ; comment...............] O account name 2..................... ..$-amount1[ ; comment...............]  Dpcodewidth = no limit -- 10 -- mimicking ledger layout. 0pdescwidth = no limit -- 20 -- I don't remember what these mean, Lpacctwidth = 35 minimum, no maximum -- they were important at the time. pamtwidth = 11 pcommentwidth = no limit -- 22 =Show an account name, clipped to the given width if any, and  appropriately bracketed/*parenthesised for the given posting type. Get the sums of a transaction'0s real, virtual, and balanced virtual postings. 5Is this transaction balanced ? A balanced transaction's real D (non-virtual) postings sum to 0, and any balanced virtual postings  also sum to 0. BEnsure this transaction is balanced, possibly inferring a missing 9 amount or conversion price, or return an error message. DBalancing is affected by commodity display precisions, so those may  be provided. @We can infer a missing real amount when there are multiple real > postings and exactly one of them is amountless (likewise for D balanced virtual postings). Inferred amounts are converted to cost  basis when possible. DWe can infer a conversion price when all real amounts are specified  and the sum of real postings' amounts is exactly two B non-explicitly-priced amounts in different commodities (likewise ! for balanced virtual postings). Ensure a transaction's postings refer back to it.  Set a posting's parent transaction.  NoneCConvert time log entries to journal transactions. When there is no E clockout, add one with the provided current time. Sessions crossing ? midnight are split into days to give accurate per-day totals. FConvert a timelog clockin and clockout entry to an equivalent journal S transaction, representing the time expenditure. Note this entry is not balanced,  since we omit the " assets:time"! transaction for simpler output.  None+A query option changes a query 's/report'$s behaviour and output in some way. :as above but include sub-accounts in the account register M | QueryOptCostBasis -- ^ show amounts converted to cost where possible E | QueryOptDate2 -- ^ show secondary dates instead of primary dates 2show an account register focussed on this account BA query is a composition of search criteria, which can be used to 2 match postings, transactions, accounts and more. 4match if a tag with this exact name, and with value ) matching the regexp if provided, exists ;match if account depth is less than or equal to this value "if true, show zero-amount postings/%accounts which are usually not shown 2 more of a query option than a query criteria ? ?match if the entire commodity symbol is matched by this regexp match if the amount's numeric quantity is less than greater thanequal to some value  match if realness8 (involves a real non-virtual account ?) has this value 'match if cleared status has this value *match if secondary date in this date span (match if primary date in this date span 1match postings whose account matches this regexp )match if description matches this regexp "match if code matches this regexp match if all of these match match if any of these match negate this match  never match  always match CConvert a query expression containing zero or more space-separated J terms to a query and zero or more query options. A query term is either:  < a search pattern, which matches on one or more fields, eg: Cacct:REGEXP - match the account name with a regular expression : desc:REGEXP - match the transaction description @ date:PERIODEXP - match the date with a period expression BThe prefix indicates the field to match, or if there is no prefix  account name is assumed.  @ a query option, which modifies the reporting behaviour in some F way. There is currently one of these, which may appear only once: inacct:FULLACCTNAME CThe usual shell quoting rules are assumed. When a pattern contains H whitespace, it (or the whole term including prefix) should be enclosed  in single or double quotes. FPeriod expressions may contain relative dates, so a reference date is  required to fully parse these. (Multiple terms are combined as follows: $ 1. multiple account patterns are OR' d together ( 2. multiple description patterns are OR' d together  3. then all terms are AND' d together -Quote-and-prefix-aware version of words - don't split on spaces which I are inside quotes, including quotes which may have one of the specified J prefixes in front, and maybe an additional not: prefix in front of that. ?Parse a single query term as either a query or a query option. "Parse the boolean value part of a status: query, allowing * as @ another way to spell True, similar to the journal file format. "Parse the boolean value part of a status: query. A true value can  be spelled as 1, t or true. ERemove query terms (or whole sub-expressions) not matching the given : predicate from this query. XXX Semantics not yet clear. #Does this query match everything ? BDoes this query specify a start date and nothing else (that would & filter postings prior to the date) ? D When the flag is true, look for a starting secondary date instead. FWhat start date (or secondary date) does this query specify, if any ? D For OR expressions, use the earliest of the dates. NOT is ignored. BWhat date span (or secondary date span) does this query specify ? C For OR expressions, use the widest possible span. NOT is ignored. DExtract all date (or secondary date) spans specified in this query.  NOT is ignored. AWhat is the earliest of these dates, where Nothing is earliest ? ?What is the latest of these dates, where Nothing is earliest ? .Compare two maybe dates, Nothing is earliest. AThe depth limit this query specifies, or a large number if none. MThe empty (zero amount) status specified by this query, defaulting to false. XThe account we are currently focussed on, if any, and whether subaccounts are included. ' Just looks at the first query option. AA query for the account(s) we are currently focussed on, if any. ' Just looks at the first query option. /Does the match expression match this account ? 3 A matching in: clause is also considered a match. /Does the match expression match this posting ? Is this simple mixed amount'>s quantity less than, equal to, or greater than this number ? N For complext mixed amounts (with multiple commodities), this is always true. 3Does the match expression match this transaction ? G&&4None(All account names used in this journal. A query for Profit & Loss accounts in this journal.  Cf  Ghttp://en.wikipedia.org/wiki/Chart_of_accounts#Profit_.26_Loss_accounts. 7A query for Income (Revenue) accounts in this journal. < This is currently hard-coded to the case-insensitive regex ^(income|revenue)s?(:|$). .A query for Expense accounts in this journal. < This is currently hard-coded to the case-insensitive regex ^expenses?(:|$). A query for Asset, Liability &" Equity accounts in this journal.  Cf  Ehttp://en.wikipedia.org/wiki/Chart_of_accounts#Balance_Sheet_Accounts. ,A query for Asset accounts in this journal. < This is currently hard-coded to the case-insensitive regex  ^assets?(:|$). 0A query for Liability accounts in this journal. < This is currently hard-coded to the case-insensitive regex ^liabilit(y|ies)(:|$). -A query for Equity accounts in this journal. < This is currently hard-coded to the case-insensitive regex  ^equity(:|$). =A query for Cash (-equivalent) accounts in this journal (ie, F accounts which appear on the cashflow statement.) This is currently I hard-coded to be all the Asset accounts except for those containing the  case-insensitive regex  (receivable|A/R). 2Keep only postings matching the query expression. ) This can leave unbalanced transactions. 6Keep only transactions matching the query expression. ZApply additional account aliases (eg from the command-line) to all postings in a journal. FDo post-parse processing on a journal to make it ready for use: check G all transactions balance, canonicalise amount formats, close any open  timelog entries and so on. @Check any balance assertions in the journal and return an error  message if any of them fail. DFill in any missing amounts and check that all journal transactions E balance, or return an error message. This is done after parsing all D amounts and working out the canonical commodities, since balancing I depends on display precision. Reports only the first error encountered. Convert all the journal')s posting amounts (not price amounts) to > their canonical display settings. Ie, all amounts in a given C commodity will use (a) the display settings of the first, and (b) C the greatest precision, of the posting amounts in that commodity. Get this journal'Es canonical amount style for the given commodity, or the null style. QClose any open timelog sessions in this journal using the provided current time. Convert all this journal'4s amounts to cost by applying their prices, if any. Get all this journal'(s (mixed) amounts, in the order parsed. Get all this journal'2s component amounts, roughly in the order parsed. 7The (fully specified) date span containing this journal's transactions, 0 or DateSpan Nothing Nothing if there are none. !Check if a set of hledger account/(description filter patterns matches the I given account name or entry description. Patterns are case-insensitive E regular expressions. Prefixed with not:, they become anti-patterns. -  -None Filter a journal'3s transactions with the given query, then derive a D ledger containing the chart of accounts and balances. If the query 4 includes a depth limit, that will affect the ledger's journal but not  the account tree.  List a ledger's account names. %Get the named account from a ledger. Get this ledger'!s root account, which is a dummy root account D above all others. This should always be first in the account list, - if somehow not this returns a null account.  List a ledger'?s top-level accounts (the ones below the root), in tree order.  List a ledger':s bottom-level (subaccount-less) accounts, in tree order. BAccounts in ledger whose name matches the pattern, in tree order.  List a ledger'!s postings, in the order parsed. 9The (fully specified) date span containing all the ledger's (filtered) transactions, 0 or DateSpan Nothing Nothing if there are none. %All commodities used in this ledger.   Noneg !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~None1Does the given file path and data provide hledger's journal file format ? Parse and post-process a Journal from hledger's journal file  format, or give an error. Flatten a list of JournalUpdate' s into a single equivalent one. KGiven a JournalUpdate-generating parsec parser, file path and data string, , parse and post-process a Journal so that it'"s ready to use, or give an error. 7Top-level journal parser. Returns a single composite, I/O performing,  error-raising  JournalUpdate (and final JournalContext) which can be 6 applied to an empty journal to get the final result. +Parse a (possibly unbalanced) transaction. Parse a date in YYYYMM.DD format. Fewer digits are allowed. The year 8 may be omitted if a default year has already been set.  Parse a date and time in YYYYMM DD HH:MM[:SS][+-ZZZZ] format. Any E timezone will be ignored; the time is treated as local time. Fewer H digits are allowed, except in the timezone. The year may be omitted if & a default year has already been set. ?Parse an account name, then apply any parent account prefix and/(or account aliases currently in effect.  CParse an account name. Account names may have single spaces inside I them, and are terminated by two or more spaces. They should have one or E more components of at least one character, separated by the account  separator char. @Parse whitespace then an amount, with an optional left or right ; currency symbol and optional price, or return the special  missing marker amount. EParse a single-commodity amount, with optional symbol on the left or = right, optional unit or total price, and optional (ignored) @ ledger-style balance assertion or fixed lot price declaration. 0Parse an amount from a string, or get an error. 5Parse a mixed amount from a string, or get an error. EParse a numeric quantity for its value and display attributes. Some " international number formats (cf  http:en.wikipedia.orgwiki(Decimal_separator) are accepted: either E period or comma may be used for the decimal point, and the other of I these may be used for separating digit groups in the integer part (eg a F thousands separator). This returns the numeric value, the precision I (number of digits to the right of the decimal point), the decimal point H and separator characters (defaulting to . and ,), and the positions of C separators (counting leftward from the decimal point, the last is  assumed to repeat). E         !" #$ %&'()*+,-./01234567          E         !" #$ %&'()*+,-./01234567None86Does the given file path and data provide timeclock.el's timelog format ? 9Parse and post-process a Journal from timeclock.el' s timelog H format, saving the provided file path and the current time, or give an  error. :Parse a timelog entry. ;89<:;89<:None =FA set of data definitions and account-matching patterns sufficient to Iconvert a particular CSV data file into meaningful journal transactions. >2Does the given file path and data look like CSV ? ?Parse and post-process a Journal" from CSV data, or give an error. ? XXX currently ignores the string and reads from the file path @ERead a Journal from the given CSV data (and filename, used for error 4 messages), or return an error. Proceed as follows:    1. parse the CSV data H 2. identify the name of a file specifying conversion rules: either use G the name provided, derive it from the CSV filename, or raise an error  if the CSV filename is -. = 3. auto-create the rules file with default rules if it doesn't exist  4. parse the rules file 9 5. convert the CSV records to a journal using the rules   A;Return the cleaned up and validated CSV data, or an error. BFEnsure there is a conversion rules file at the given path, creating a 8 default one if needed and returning True in this case. C@Pre-parse csv rules to interpolate included files, recursively. > This is a cheap hack to avoid rewriting the existing parser. D)Return the validated rules, or an error. E<Show a (approximate) recreation of the original CSV record. FNGiven the conversion rules, a CSV record and a journal entry field name, find E the template value ultimately assigned to this field, either at top > level or in a matching conditional block. Conditional blocks' C patterns are matched against an approximation of the original CSV 8 record: all the field values with commas intercalated. GGHIJKLMNO=PQRSTU>?@VAWBXYZ[\]^_`CaDbcdefghijklmnopqrstuvwxyzEF{|}BGHIJKLMNO=PQRSTU>?@VAWBXYZ[\]^_`CaDbcdefghijklmnopqrstuvwxyzEF{|}None "All the data formats we can read.  formats = map rFormat readers @Get the default journal file path specified by the environment. < Like ledger, we look first for the LEDGER_FILE environment = variable, and if that does not exist, for the legacy LEDGER A environment variable. If neither is set, or the value is blank, ) return the hard-coded default, which is .hledger.journal in the  users'<s home directory (or in the current directory, if we cannot  determine a home directory). ORead the default journal file specified by the environment, or raise an error. ZRead a journal from the given string, trying all known formats, or simply throw an error. KRead a journal from this string, trying whatever readers seem appropriate: 0 if a format is specified, try that reader only H or if one or more readers recognises the file path and data, try those  otherwise, try them all. MA CSV conversion rules file may also be specified for use by the CSV reader. ~\Which readers are worth trying for this (possibly unspecified) format, filepath, and data ? CFind the (first) reader which can handle the given format, if any. SFind the readers which think they can handle the given file path and data, if any. FRead a Journal from this file (or stdin if the filename is -) or give G an error message, using the specified data format or trying all known B formats. A CSV conversion rules file may be specified for better  conversion of that format. MIf the specified journal file does not exist, give a helpful error and quit.  SEnsure there is a journal file at the given path, creating an empty one if needed. 6Give the content for a new auto-created journal file. ~ !"   !"   !"~ !"None+# Full account name, d ledger-style short account name (the leaf name, prefixed by any boring parents immediately above), E indentation steps to use when rendering a ledger-style account tree Q (the 0-based depth of this account excluding boring parents; or with --flat, 0) $( The account name with rendering hints,  the account'1s balance (per-period balance, cumulative ending = balance, or historical ending balance) in each of the report's  periods. %JA multi(column) balance report is a list of accounts, each with a list of % balances corresponding to the report's column periods. The balances' meaning depends $ on the type of balance report (see / and Hledger.Cli.Balance). U Also included are the overall total for each period, the date span for each period, 6 and some additional rendering info for the accounts. ' The date span for each report column,  line items (one per account), ) the final total for each report column. ' Full account name, c short account name for display (the leaf name, prefixed by any boring parents immediately above), o how many steps to indent this account (the 0-based account depth excluding boring parents, or 0 with --flat), > account balance (including subaccounts (XXX unless --flat)). (>A list of account names plus rendering info, along with their ? balances as of the end of the reporting period, and the grand $ total. Used for the balance command's single-column mode. *6A transactions report includes a list of transactions I (posting-filtered and unfiltered variants), a running balance, and some A other information helpful for rendering a register view (a flag D indicating multiple other accounts and a display string describing 7 them) with or without a notion of current account(s). L Two kinds of report use this data structure, see journalTransactionsReport 1 and accountTransactionsReport below for detais. ,FA postings report is a list of postings with a running total, a label R for the total field, and a little extra transaction info to help with rendering. + This is used eg for the register command. .<A journal entries report is a list of whole transactions as @ originally entered in the journal (mostly). This is used by eg  hledger's print command and hledger-web's journal entries view. /?Which balance is being shown in a multi-column balance report. 0%The historical balance at each period'Ds end, starting from the account balances at the report start date. 1&The accumulated balance at each period'4s end, starting from zero at the report start date. 2&The change of balance in each period. 5>Standard options for customising report filtering and output,  corresponding to hledger'*s command-line options and query language + arguments. Used in hledger-lib and above. Q;Figure out the date span we should report on, based on any  beginend>period options provided. A period option will cause begin and  end options to be ignored. REFigure out the reporting interval, if any, specified by the options. H --period overrides --daily overrides --weekly overrides --monthly etc. S1Get a maybe boolean representing the last cleared/uncleared option if any. T6Report which date we will report on based on --date2. 7Select the Transaction date accessor based on --date2. 3Select the Posting date accessor based on --date2. UConvert this journal' s postings'& amounts to the cost basis amounts if  specified by options. V1Convert report options and arguments to a query. W7Convert report options and arguments to query options. X+Select transactions for an entries report. YCSelect postings from the journal and add running balance and other : information to make a postings report. Used by eg hledger's register command. %Generate postings report line items. Z@Generate one postings report line item, containing the posting, A the current running balance, and optionally the posting date and/or  the transaction description. KDate-sort and split a list of postings into three spans - postings matched L by the given display expression, and the preceding and following postings. ] XXX always sorts by primary date, should sort by secondary date if expression is about that BDoes this display expression allow this posting to be displayed ? . Raises an error if the display expression can' t be parsed. EParse a hledger display expression, which is a simple date test like  d>[DATE] or  d<=[DATE], and return a Posting-matching predicate. CConvert a list of postings into summary postings. Summary postings H are one per account per interval and aggregated to the specified depth  if any. DGiven a date span (representing a reporting interval) and a list of E postings within it: aggregate the postings so there is only one per  account, and adjust their date/%description so that they will render ! as a summary for this interval. DAs usual with date spans the end date is exclusive, but for display = purposes we show the previous day as end date, like ledger. BWhen a depth argument is present, postings to accounts of greater & depth are aggregated where possible. EThe showempty flag includes spans with no postings and also postings  with 0 amount. =Filter out all but the specified commodity from this amount. _ASelect transactions from the whole journal. This is similar to a  postingsReport2 except with transaction-based report items which > are ordered most recent first. This is used by eg hledger-web's journal view. `DSelect transactions within one or more current accounts, and make a ? transactions report relative to those account(s). This means:  I it shows transactions from the point of view of the current account(s). K The transaction amount is the amount posted to the current account(s).  The other accounts' names are provided. E With no transaction filtering in effect other than a start date, it N shows the accurate historical running balance for the current account(s). 6 Otherwise it shows a running total starting at 0. This is used by eg hledger-web'$s account register view. Currently, B reporting intervals are not supported, and report items are most  recent first. @Generate transactions report items from a list of transactions, I using the provided query and current account queries, starting balance, 5 sign-setting function and balance-summing function. 9Generate a short readable summary of some postings, like  from (negatives) to (positives). .Generate a simplified summary of some postings' accounts. aCSelect accounts, and get their balances at the end of the selected @ period, and misc. display information, for an accounts report. >In an account tree with zero-balance leaves removed, mark the D elidable parent accounts (those with one subaccount and no balance  of their own). bISelect accounts and get their period balance (change of balance) in each F period, plus misc. display information, for a period balance report. cBCalculate the overall span and per-period date spans for a report A based on command-line options, the parsed search query, and the E journal data. If a reporting interval is specified, the report span ? will be enlarged to include a whole number of report periods. C Reports will sometimes trim these spans further when appropriate. dBSelect accounts and get their ending balance in each period, plus R account name display information, for a cumulative or historical balance report. eFGet the historical running inclusive balance of a particular account, ' from earliest to latest posting date. % XXX Accounts should know the Ledger & Journal they came from a#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefD#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefD56789:;<=>?@ABCDEFGHIJKLMNO/21043PQRSTUVWc.-X,+YZ*)[\]^_`('a%&$#bdefC#$%&'()*+,-./2103456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefNonegKrs  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~   "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefggg !"#$%$&$'()*+,--./00123456789:;<=>?@AABCDEFGGHIJKLMNOPQRSTUVWXYYZ[\]]^_`abcdefgghijjklmmnopqrstuvwwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                                                                                            !"#$%&'()*+,-./01233456789:;<=>?@ABBCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~~                                                         !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXHYZ[\]^_`abcdefghijk=lmnopqrstuvwxyz{|}~hledger-lib-0.22Hledger.Utils.UTF8IOCompat Hledger.UtilsHledger.Data.TypesHledger.Data.FormatStringsHledger.Data.AccountNameHledger.Data.CommodityHledger.Data.AmountHledger.Data.DatesHledger.Data.PostingHledger.Data.AccountHledger.Data.TransactionHledger.Data.TimeLog Hledger.QueryHledger.Data.JournalHledger.Data.Ledger Hledger.DataHledger.Read.JournalReaderHledger.Read.TimelogReaderHledger.Read.CsvReader Hledger.ReadHledger.ReportsHledgerHledger.Cli.OptionsCliOptsbase System.IOreadFilepretty-show-1.6.8Text.Show.PrettyppShow writeFileputStrLnputStr getContents appendFileGHC.IO.Handle.Text hPutStrLnhPutStr hGetContents SystemStringfromSystemStringtoSystemStringerror' userError'Ledgerljournal laccountsAccountaname aebalanceasubs aibalanceaparentaboring FormatString FormatField FormatLiteralHledgerFormatFieldFieldNoDepthSpacerField TotalFieldDescriptionFieldDefaultDateField AccountFieldReaderrFormat rDetectorrParserFormat JournalUpdateJournal jmodifiertxns jperiodictxnsjtxnsopen_timelog_entrieshistorical_pricesfinal_comment_linesjContextfiles filereadtimejcommoditystylesJournalContextCtxctxYearctxCommodityAndStyle ctxAccount ctxAliasesYearHistoricalPricehdate hcommodityhamount TimeLogEntrytlcode tldatetime tlcomment TimeLogCodeFinalOutOutInSetRequiredHours SetBalancePeriodicTransactionptperiodicexpr ptpostingsModifierTransaction mtvalueexpr mtpostings Transactiontdatetdate2tstatustcode tdescriptiontcommentttags tpostingstpreceding_comment_linesPostingpdatepdate2pstatuspaccountpamountpcommentptypeptagspbalanceassertion ptransactionTag PostingTypeBalancedVirtualPostingVirtualPostingRegularPosting MixedAmountMixedAmount acommodity aquantityapriceastyle AmountStyleascommoditysideascommodityspaced asprecisionasdecimalpoint asseparatorasseparatorpositionsPrice TotalPrice UnitPriceNoPriceQuantity CommoditySideRL AccountNameInterval DayOfWeek DayOfMonthYearsQuartersMonthsWeeksDays NoIntervalDateSpan WhichDate SecondaryDate PrimaryDate SmartDate formatValueparseFormatString formatStringstests Debug.TracetraceFastTreeT lowercase uppercasestriplstriprstrip stripbrackets elideLeft elideRight underline quoteIfSpacedescapeSingleQuotes escapeQuoteswords'unwords'singleQuoteIfNeededwhitespacechars stripquotesisSingleQuotedisDoubleQuoted unbracketconcatTopPaddedconcatBottomPaddedvConcatRightAlignedpadtop padbottompadleftpadright cliptopleftfitto difforzero regexMatch regexMatchCI regexMatchesregexMatchesCI containsRegex regexReplaceregexReplaceCIregexReplaceByregexToCaseInsensitive regexSplitregexMatchesRegexCompatregexMatchesCIRegexCompatsplitAtElementrootsubsbranchesleaves subtreeatsubtreeinforest treeprunetreemap treefiltertreeanyshowtree showforest emptyTree mergeTrees treeFromPath treeFromPathsstraceltracemtrace traceWithptrace debugLeveldbgdbgshow dbgppshow dbgpprintdbgExitpdbgchoice' parsewith parseWithCtx fromparse parseerrorshowParseErrorshowDateParseErrornonspacespacenonewline restoflineeolofgetCurrentLocalTimetestName flattenTests filterTestsis assertParseassertParseFailureassertParseEqualprintParseErrorisLeftisRightapplyN expandPath firstJust readFile' acctsepcharaccountNameComponentsaccountNameFromComponentsaccountLeafNameaccountNameLevelaccountNameDropexpandAccountNamesexpandAccountNametopAccountNamesparentAccountNameparentAccountNamesisAccountNamePrefixOfisSubAccountNameOfsubAccountNamesFromaccountNameTreeFromnullaccountnametreeelideAccountNameclipAccountNameaccountNameToAccountRegexaccountNameToAccountOnlyRegexaccountRegexToAccountNameisAccountRegextests_Hledger_Data_AccountNamenonsimplecommoditycharsquoteCommoditySymbolIfNeeded commoditycommoditysymbolscommconversionRatetests_Hledger_Data_Commodity amountstyleamountnullamtnumusdeurgbphrsamountWithCommodity sumAmountsat@@ costOfAmount divideAmountsetAmountPrecision withPrecisionshowAmountDebugshowAmountWithoutPrice showAmount maxprecisionmaxprecisionwithpointcanonicaliseAmount nullmixedamt missingamtmissingmixedamtmixed$normaliseMixedAmountPreservingPrices(normaliseMixedAmountPreservingFirstPriceamountscostOfMixedAmountdivideMixedAmountisNegativeMixedAmountisZeroMixedAmountisReallyZeroMixedAmountisReallyZeroMixedAmountCostshowMixedAmount ltraceamountsetMixedAmountPrecisionshowMixedAmountWithPrecisionshowMixedAmountDebugshowMixedAmountWithoutPricecanonicaliseMixedAmountcanonicalStylestests_Hledger_Data_AmountshowDate showDateSpan getCurrentDaygetCurrentMonthgetCurrentYearelapsedSeconds spanStartspanEnd spansSpan splitSpan daysInSpanspanContainsDate orDatesFromspansIntersect spanIntersect spansUnion spanUnionparsePeriodExpr maybePeriodfixSmartDateStrfixSmartDateStrEitherfixSmartDateStrEither' fixSmartDateprevday parsedateM parsedate smartdate datesepchars datesepcharfailIfInvalidYear mkdatespan nulldatespannulldatetests_Hledger_Data_Dates nullpostingpostingpost showPosting showCommentisReal isVirtualisBalancedVirtual hasAmountaccountNamesFromPostings sumPostings postingDate postingDate2postingClearedpostingAllTagstransactionAllTagsrelatedPostingsisPostingInDateSpanisEmptyPostingpostingsDateSpanaccountNamePostingTypeaccountNameWithoutPostingTypeaccountNameWithPostingTypejoinAccountNamesconcatAccountNamesaccountNameApplyAliasestests_Hledger_Data_PostingnullacctaccountsFromPostingsnameTreeToAccounttieAccountParentsparentAccountsaccountsLevels mapAccounts anyAccounts sumAccounts clipAccounts pruneAccountsflattenAccountsfilterAccounts lookupAccount printAccounts showAccountsshowAccountsBoringFlagshowAccountDebugtests_Hledger_Data_AccountnulltransactionshowTransactionshowTransactionUnelidedshowAccountNamehasRealPostings realPostingsvirtualPostingsbalancedVirtualPostingstransactionsPostingstransactionPostingBalancesisTransactionBalancedbalanceTransactiontransactionDate2 txnTieKnottests_Hledger_Data_TransactiontimeLogEntriesToTransactionsentryFromTimeLogInOuttests_Hledger_Data_TimeLogQueryOptQueryOptInAcctQueryOptInAcctOnlyQueryDepthEmptySymAmtRealStatusDate2DateAcctDescCodeAndOrNotNoneAny parseQuery simplifyQuery filterQuery queryIsNull queryIsDepth queryIsDatequeryIsStartDateOnlyqueryStartDate queryDateSpan queryDepth queryEmpty inAccountinAccountQuerymatchesAccountmatchesPostingmatchesTransactiontests_Hledger_Query nulljournalnullctxjournalFilePathjournalFilePathsaddTransactionaddModifierTransactionaddPeriodicTransactionaddHistoricalPriceaddTimeLogEntryjournalPostingsjournalAccountNamesUsedjournalAccountNames journalProfitAndLossAccountQueryjournalIncomeAccountQueryjournalExpenseAccountQueryjournalBalanceSheetAccountQueryjournalAssetAccountQueryjournalLiabilityAccountQueryjournalEquityAccountQueryjournalCashAccountQueryfilterJournalPostingsfilterJournalTransactionsjournalApplyAliasesjournalFinalisejournalBalanceTransactionsjournalCanonicaliseAmountsjournalConvertAmountsToCostjournalAmountsjournalDateSpan matchpats samplejournaltests_Hledger_Data_Journal nullledgerledgerFromJournalledgerAccountNames ledgerAccountledgerRootAccountledgerTopAccountsledgerLeafAccountsledgerAccountsMatchingledgerPostingsledgerDateSpanledgerCommoditiestests_ledgerFromJournaltests_Hledger_Data_Ledgertests_Hledger_DatareaderparseJournalWithgetParentAccountjournal directivedefaultyeardirectivehistoricalpricedirectivedatetimecode accountnameamountpamountp' mamountp' emptyline tests_Hledger_Read_TimelogReader CsvRecord rulesFileForparseRulesFiletransactionFromCsvRecordtests_Hledger_Read_CsvReaderdefaultJournalPathdefaultJournal readJournal' readJournalreadJournalFilerequireJournalFileExistsensureJournalFileExiststests_Hledger_ReadRenderableAccountNameMultiBalanceReportItemMultiBalanceReportBalanceReportItem BalanceReportTransactionsReportItemTransactionsReportPostingsReportItemPostingsReportEntriesReportItem EntriesReport BalanceTypeHistoricalBalanceCumulativeBalance PeriodBalance FormatStr DisplayExp ReportOptsbegin_end_period_cleared_ uncleared_cost_depth_display_date2_empty_ no_elide_real_ balancetype_flat_drop_ no_total_daily_weekly_monthly_ quarterly_yearly_format_related_average_query_ defreportoptsdateSpanFromOptsintervalFromOptsclearedValueFromOptswhichDateFromOptsjournalSelectingAmountFromOpts queryFromOptsqueryOptsFromOpts entriesReportpostingsReportmkpostingsReportItemtriDate triBalancetriSimpleBalancetransactionsReportByCommodityjournalTransactionsReportaccountTransactionsReport balanceReportperiodBalanceReport reportSpans#cumulativeOrHistoricalBalanceReportaccountBalanceHistorytests_Hledger_Reports tests_Hledger $fShowReader $fEqPostingfield formatField formatLiteral formatString testFormat testParserformattingTests parserTestsdata-pprint-0.2.3 Data.PPrint===pprintsimilarAmountsOpisNegativeAmount isZeroAmountisReallyZeroAmountshowAmountWithPrecision!showAmountWithoutPriceOrCommodityshowamountquantitypunctuatenumbertests_sumAmountsdigits showPriceshowPriceDebug chopdotzero*tests_normaliseMixedAmountPreservingPricessumAmountsUsingFirstPrice$fNumMixedAmount$fShowMixedAmount $fNumAmount $fShowAmountspanFromSmartDate parsetimewith smartdateonly splitspanlatestearliestnextday startofdaythisweekprevweeknextweek startofweek thismonth prevmonth nextmonth startofmonth thisquarter prevquarter nextquarterstartofquarterthisyearprevyearnextyear startofyearnthdayofmonthcontainingnthdayofweekcontaining validYear validMonthvalidDayfailIfInvalidMonthfailIfInvalidDayyyyymmddymdymydmdmonths monthabbrevs monthIndexmonIndexmonthmontoday yesterdaytomorrowlastthisnextthing periodexprintervalanddateperiodexprintervalperiodexprdateperiodexprreportingintervalperiodexprdatespandoubledatespan fromdatespan todatespan justdatespan $fShowPosting $fEqAccount $fShowAccountsettxntests_showTransactionUnelidedshowTransaction'renderCommentLinespostingsAsLinespostingAsLinestests_postingAsLinesindentnonzerobalanceerror$fShowPeriodicTransaction$fShowModifierTransaction$fShowTransaction$fReadTimeLogCode$fShowTimeLogCode$fShowTimeLogEntrywords''parseQueryTerm parseStatus parseBoolqueryDateSpansearliestMaybeDatelatestMaybeDatecompareMaybeDatescompareMixedAmounttests_parseQuery tests_words''prefixes defaultprefixtests_parseQueryTermparseAmountQueryTermtests_parseAmountQueryTermparseTag truestringstests_simplifyQuerysame filterQuery'tests_filterQuery queryIsDesc queryIsAcctqueryTermDateSpantests_matchesAccounttests_matchesPostingtests_matchesTransactionlookupTagByNamelookupTagByNameAndValue matchTagName matchTagValue $fShowQueryjournalCheckBalanceAssertionsjournalCommodityStylejournalCloseTimeLogEntriesjournalMixedAmountsmainfilejournalAccountNameTree checkBalanceAssertionsForAccountcheckBalanceAssertionsplitAssertions negateprefix isnegativepatabspat $fShowJournal $fShowLedgerdetectparsecombineJournalUpdates transactiondatemodifiedaccountnamespaceandamountormissingnumberformatsetYeargetYearsetCommodityAndStylegetCommodityAndStylepushParentAccountpopParentAccountaddAccountAliasgetAccountAliasesclearAccountAliasesincludedirectivejournalAddFileaccountdirective enddirectivealiasdirectiveendaliasesdirective tagdirectiveendtagdirectivedefaultcommoditydirectiveignoredpricecommoditydirectivecommodityconversiondirectivemodifiertransactionperiodictransaction descriptionp secondarydatestatuspostingspostingpleftsymbolamountrightsymbolamountnosymbolamountcommoditysymbolquotedcommoditysymbolsimplecommoditysymbol priceamountbalanceassertion fixedlotpricefollowingcomment commentline tagsInCommenttagsInCommentLinetagtagnametagvalueledgerDateSyntaxToTagsdateValueFromTagsdate2ValueFromTags timelogentry timelogFileCsvRulesreadJournalFromCsv validateCsvensureRulesFileExistsexpandIncludes validateRules showRecordgetEffectiveAssignmentRegexp DateFormat RecordMatcherConditionalBlock FieldTemplateJournalFieldName CsvFieldIndex CsvFieldName DirectiveName rdirectivesrcsvfieldindexes rassignmentsrconditionalblocksparseCsv csvFileFornewRulesFileContentrules addDirective addAssignment setIndexesAndAssignmentsFromListsetCsvFieldIndexesFromListaddAssignmentsFromListaddConditionalBlock getDirective parseCsvRulesrulespblankorcommentline blankline commentchar directives directiveval fieldnamelist fieldnamequotedfieldname barefieldnamefieldassignmentjournalfieldnamejournalfieldnamesassignmentseparatorfieldvalconditionalblock recordmatcher matchoperatorpatternsregexp getAmountStrnegateIfParenthesised negateStrrenderTemplate#parseDateWithFormatOrDefaultFormats test_parser readersForreaderForFormatreadersForPathAndDatanewJournalContent journalEnvVarjournalEnvVar2journalDefaultFilenamereaderstests_readJournal'transactionDateFn postingDateFnpostingsReportItemspostingsMatchingDisplayExprdisplayExprMatchesdatedisplayexprsummarisePostingsByIntervalsummarisePostingsInDateSpanfilterMixedAmountByCommodityaccountTransactionsReportItemssummarisePostingssummarisePostingAccountsmarkBoringParentAccountstests_queryFromOptstests_queryOptsFromOptstests_entriesReport totallabel balancelabel!tests_summarisePostingsByInterval triAmount#filterTransactionsReportByCommodityfilterTransactionPostingsbalanceReportItemtests_postingsReporttests_balanceReportsamplejournal2$fShowMultiBalanceReport$fDefaultReportOpts$fDefaultBalanceType