!      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                                                                                                                    ! " # $ % & ' ( ) * + , - . / 0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                 ! " #!$!%!&!'!(")"*"+",#-$.$/$0$1$2$3$4$5$6$7$8$9$:$;$<$=$>$?$@$A$B$C$D$E$F$G$H$I$J$K$L$M$N$O$P$Q$R$S$T$U$V$W$X$Y$Z$[$\$]$^$_$`$a$b$c$d$e$f$g$h$i$j$k$l$m$n$o$p$q$r$s$t$u$v$w$x$y$z${$|$}$~%%%&&&'''''''((((((((((())))))))))))*****++++++++++++++,,,,,,,,,,,-------------.0SafeA5# hledger-lib?Wrap a string in ANSI codes to set and reset foreground colour.$ hledger-lib?Wrap a string in ANSI codes to set and reset background colour.  #$#$  NoneJ% hledger-lib(Get a Test's label, or the empty string.& hledger-lib@Flatten a Test containing TestLists into a list of single tests.' hledger-libBFilter TestLists in a Test, recursively, preserving the structure.( hledger-libESimple way to assert something is some expected value, with no label.) hledger-libIAssert a parse result is successful, printing the parse error on failure.* hledger-libIAssert a parse result is successful, printing the parse error on failure.+ hledger-libRAssert a parse result is some expected value, printing the parse error on failure.%&'()*+,%&'()*+,SafeX- hledger-lib A string received from or being passed to the operating system, such as a file path, command-line argument, or environment variable name or value. With GHC versions before 7.2 on some platforms (posix) these are typically encoded. When converting, we assume the encoding is UTF-8 (cf  Dhttp://www.dwheeler.com/essays/fixing-unix-linux-filenames.html#UTF8).. hledger-libConvert a system string to an ordinary string, decoding from UTF-8 if it appears to be UTF8-encoded and GHC version is less than 7.2./ hledger-liboConvert a unicode string to a system string, encoding with UTF-8 if we are on a posix platform with GHC < 7.2.0 hledger-lib&A SystemString-aware version of error.1 hledger-lib*A SystemString-aware version of userError.2 hledger-lib=A SystemString-aware version of error that adds a usage hint. !-./012! -./012NoneVeZ3 hledger-lib>A replacement pattern. May include numeric backreferences (N).4 hledger-libaRegular expression. Extended regular expression-ish syntax ? But does not support eg (?i) syntax. hledger-lib[Convert our string-based regexps to real ones. Can fail if the string regexp is malformed.7 hledger-libWReplace all occurrences of the regexp, transforming each match with the given function.9 hledger-libReplace all occurrences of the regexp with the replacement pattern. The replacement pattern supports numeric backreferences (N) but no other RE syntax.; hledger-libzA memoising version of regexReplace. Caches the result for each search pattern, replacement pattern, target string tuple. hledger-libaReplace all occurrences of a regexp in a string, transforming each match with the given function. 3456789:;< 43569:;<78Nonep = hledger-lib`An efficient-to-build tree suggested by Cale Gibbard, probably better than accountNameTreeFrom.B hledger-lib"List just the leaf nodes of a treeC hledger-libeget the sub-tree rooted at the first (left-most, depth-first) occurrence of the specified node valueD hledger-lib^get the sub-tree for the specified node value in the first tree in forest in which it occurs.E hledger-lib%remove all nodes past a certain depthF hledger-libapply f to all tree nodesG hledger-lib8remove all subtrees whose nodes do not fulfill predicateH hledger-lib'is predicate true in any node of tree ?I hledger-lib-show a compact ascii representation of a treeJ hledger-lib/show a compact ascii representation of a forest=>?@ABCDEFGHIJKLMN?@ABCDEFGHIJ=>KLMNNone016;=9R hledger-libA 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 account is the root of the tree and always exists.V hledger-libWhether an account's balance is normally a positive number (in accounting terms, a debit balance) or a negative number (credit balance). Assets and expenses are normally positive (debit), while liabilities, equity and income are normally negative (credit). ,https://en.wikipedia.org/wiki/Normal_balanceY hledger-libpAn account, with name, balances and links to parent/subaccounts which let you walk up or down the account tree.[ hledger-libthis account's full name\ hledger-lib5this account's numeric code, if any (not always set) ] hledger-lib-this account's balance, excluding subaccounts^ hledger-lib sub-accounts_ hledger-lib<number of postings to this account derived from the above :` hledger-lib-this account's balance, including subaccountsa hledger-libparent accountb hledger-lib5used in the accounts report to label elidable parentsc hledger-lib2The id of a data format understood by hledger, eg journal or csv>. The --output-format option selects one of these for output.d hledger-libxA journal in the process of being parsed, not yet finalised. The data is partial, and list fields are in reverse order.e hledger-lib_A Journal, containing transactions and various other things. The basic data model for hledger.^This is used during parsing (as the type alias ParsedJournal), and then finalised/validated for use as a Journal. Some extra parsing-related fields are included for convenience, at least for now. In a ParsedJournal these are updated as parsing proceeds, in a Journal they represent the final state at end of parsing (used eg by the add command).g hledger-libTthe current default year, specified by the most recent Y directive (or current date)h hledger-libVthe current default commodity and its format, specified by the most recent D directivei hledger-libPthe current stack of parent account names, specified by apply account directivesj hledger-libthe current account name aliases in effect, specified by alias directives (& options ?) ,jparsetransactioncount :: Integer -- ^ the current count of transactions parsed so far (only journal format txns, currently)k hledger-libBtimeclock sessions which have not been clocked out principal datal hledger-lib6accounts that have been declared by account directivesm hledger-lib8commodities and formats declared by commodity directivesn hledger-libCcommodities and formats inferred from journal amounts XXX misnameds hledger-lib6any final trailing comments in the (main) journal filet hledger-libthe 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 order encountered.u hledger-lib0when this journal was last read from its file(s) hledger-lib the period expression as written hledger-lib.the interval at which this transaction recurs  hledger-liblthe (possibly unbounded) period during which this transaction recurs. Contains a whole number of intervals.  hledger-libsome of Transaction's fields hledger-libPthis transaction's 1-based position in the input stream, or 0 when not available hledger-libLthis transaction's comment lines, as a single non-indented multi-line string hledger-lib0tag names and values, extracted from the comment hledger-libthis transaction's postings hledger-lib8any comment lines immediately preceding this transaction hledger-libGThe position of parse errors (eg), like parsec's SourcePos but generic. hledger-lib9file path, 1-based line number and 1-based column number. hledger-libAfile path, inclusive range of 1-based line numbers (first, last). hledger-lib8this posting's date, if different from the transaction's hledger-libBthis posting's secondary date, if different from the transaction's hledger-libHthis posting's comment lines, as a single non-indented multi-line string hledger-lib0tag names and values, extracted from the comment hledger-libRoptional: the expected balance in this commodity in the account after this posting hledger-libvthis posting's parent transaction (co-recursive types). Tying this knot gets tedious, Maybe makes it easier/optional. hledger-libNoriginal posting if this one is result of any transformations (one level only) hledger-libThe status of a transaction or posting, recorded with a status mark (nothing, !, or *). What these mean is ultimately user defined. hledger-lib)the (fixed) price for this amount, if any hledger-lib*amount is a multipier for AutoTransactions hledger-libsA style for displaying digit groups in the integer part of a floating point number. It consists of the character used to separate groups (comma or period, whichever is not used as decimal point), and the size of each group, starting with the one nearest the decimal point. The last group size is assumed to repeat. Eg, comma between thousands is DigitGroups ',' [3]. hledger-libDisplay style for an amount. hledger-lib1does the symbol appear on the left or the right ? hledger-lib#space between symbol and quantity ? hledger-lib2number of digits displayed after the decimal point hledger-libZcharacter used as decimal point: period or comma. Nothing means "unspecified, use default" hledger-lib)style for displaying digit groups, if any hledger-libAn amount's price (none, per unit, or total) in another commodity. Note the price should be a positive number, although this is not enforced. hledger-lib'The basic numeric type used in amounts. hledger-libBA periodic transaction rule, describing a transaction that recurs. hledger-lib&A tag name and (possibly empty) value.RSUTVXWYZba`_^]\[cdefutsrqponmlkjihgvwzyx{|~}{|~}vwzyxefutsrqponmlkjihgdcYZba`_^]\[VXWRSUT None  hledger-libConvert Periods to DateSpans.qperiodAsDateSpan (MonthPeriod 2000 1) == DateSpan (Just $ fromGregorian 2000 1 1) (Just $ fromGregorian 2000 2 1)True hledger-libConvert DateSpans to Periods.[dateSpanAsPeriod $ DateSpan (Just $ fromGregorian 2000 1 1) (Just $ fromGregorian 2000 2 1)MonthPeriod 2000 1 hledger-lib@Convert PeriodBetweens to a more abstract period where possible.JsimplifyPeriod $ PeriodBetween (fromGregorian 1 1 1) (fromGregorian 2 1 1) YearPeriod 1QsimplifyPeriod $ PeriodBetween (fromGregorian 2000 10 1) (fromGregorian 2001 1 1)QuarterPeriod 2000 4PsimplifyPeriod $ PeriodBetween (fromGregorian 2000 2 1) (fromGregorian 2000 3 1)MonthPeriod 2000 2QsimplifyPeriod $ PeriodBetween (fromGregorian 2016 7 25) (fromGregorian 2016 8 1)WeekPeriod 2016-07-25PsimplifyPeriod $ PeriodBetween (fromGregorian 2000 1 1) (fromGregorian 2000 1 2)DayPeriod 2000-01-01QsimplifyPeriod $ PeriodBetween (fromGregorian 2000 2 28) (fromGregorian 2000 3 1)#PeriodBetween 2000-02-28 2000-03-01QsimplifyPeriod $ PeriodBetween (fromGregorian 2000 2 29) (fromGregorian 2000 3 1)DayPeriod 2000-02-29RsimplifyPeriod $ PeriodBetween (fromGregorian 2000 12 31) (fromGregorian 2001 1 1)DayPeriod 2000-12-31 hledger-libIs this period a "standard" period, referencing a particular day, week, month, quarter, or year ? Periods of other durations, or infinite duration, or not starting on a standard period boundary, are not. hledger-libERender a period as a compact display string suitable for user output.1showPeriod (WeekPeriod (fromGregorian 2016 7 25))"2016/07/25w30" hledger-libtLike showPeriod, but if it's a month period show just the 3 letter month name abbreviation for the current locale. hledger-libfMove a standard period to the following period of same duration. Non-standard periods are unaffected. hledger-libfMove a standard period to the preceding period of same duration. Non-standard periods are unaffected. hledger-libMove a standard period to the following period of same duration, staying within enclosing dates. Non-standard periods are unaffected. hledger-libMove a standard period to the preceding period of same duration, staying within enclosing dates. Non-standard periods are unaffected. hledger-libiMove a standard period stepwise so that it encloses the given date. Non-standard periods are unaffected. hledger-lib'Enlarge a standard period to the next larger enclosing standard period, if there is one. Eg, a day becomes the enclosing week. A week becomes whichever month the week's thursday falls into. A year becomes all (unlimited). Non-standard periods (arbitrary dates, or open-ended) are unaffected. hledger-libShrink a period to the next smaller standard period inside it, choosing the subperiod which contains today's date if possible, otherwise the first subperiod. It goes like this: unbounded periods and nonstandard periods (between two arbitrary dates) -> current year -> current quarter if it's in selected year, otherwise first quarter of selected year -> current month if it's in selected quarter, otherwise first month of selected quarter -> current week if it's in selected month, otherwise first week of selected month -> today if it's in selected week, otherwise first day of selected week, unless that's in previous month, in which case first day of month containing selected week. Shrinking a day has no effect./Safe0None0<UV]%*  hledger-libKA custom error type for the parser. The type is specialized to parsers of  streams. hledger-libqFail with a message at a specific source position interval. The interval must be contained within a single line. hledger-lib^Attach a source file to a parse error (for error reporting from include files, e.g. with the  parser combinator) hledger-lib#Fail at a specific source position. hledger-libFail at a specific source interval (within a single line). The interval is inclusive on the left and exclusive on the right; that is, it spans from the start position to just before (and not including) the end position. hledger-libBAttach a source file to a parse error. Intended for use with the  parser combinator. hledger-libqPretty-print our custom parse errors and display the line on which the parse error occured. Use this instead of .yIf any custom errors are present, arbitrarily take the first one (since only one custom error should be used at a time). hledger-libqPretty-print a 'ParseError Char CustomErr' and display the line on which the parse error occurred. The rendered  always ends with a newline. hledger-lib1Select a line from input stream given its number. hledger-lib3Replace tab characters with given number of spaces. hledger-libStart position hledger-lib End position hledger-lib Error message hledger-libOriginal input stream hledger-libParse error to render hledger-lib Length of error interval [added] hledger-libResult of rendering hledger-lib Tab width hledger-libOriginal input stream hledger-libParse error to render hledger-lib Length of error interval [added] hledger-libResult of rendering hledger-libNumber of line to select hledger-lib Input stream hledger-lib Selected line NoneFT, hledger-lib8A parser of text in some monad, with a journal as state. hledger-libA parser of text in some monad. hledger-lib%A parser of strict text to some type. hledger-lib A parser of string to some type. hledger-libgBacktracking choice, use this when alternatives share a prefix. Consumes no input if all choices fail. hledger-libgBacktracking choice, use this when alternatives share a prefix. Consumes no input if all choices fail. Nonehi hledger-lib'Remove leading and trailing whitespace. hledger-libRemove leading whitespace. hledger-libRemove trailing whitespace. hledger-lib*Remove trailing newlines/carriage returns. hledger-lib7Clip and pad a string to a minimum & maximum width, andor left\right justify it. Works on multi-line strings too (but will rewrite non-unix line endings). hledger-libsDouble-quote this string if it contains whitespace, single quotes or double-quotes, escaping the quotes as needed. hledger-libsSingle-quote this string if it contains whitespace or double-quotes. No good for strings containing single quotes. hledger-libtQuote-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. hledger-libNQuote-aware version of unwords - single-quote strings which contain whitespace hledger-libKStrip one matching pair of single or double quotes on the ends of a string. hledger-libJoin several multi-line strings as side-by-side rectangular strings of the same height, top-padded. Treats wide characters as double width. hledger-libJoin several multi-line strings as side-by-side rectangular strings of the same height, bottom-padded. Treats wide characters as double width. hledger-libJoin multi-line strings horizontally, after compressing each of them to a single line with a comma and space between each original line. hledger-lib7Join strings vertically, left-aligned and right-padded. hledger-lib7Join strings vertically, right-aligned and left-padded. hledger-libWConvert a multi-line string to a rectangular string top-padded to the specified height. hledger-libZConvert a multi-line string to a rectangular string bottom-padded to the specified height. hledger-libConvert a multi-line string to a rectangular string left-padded to the specified width. Treats wide characters as double width. hledger-libConvert a multi-line string to a rectangular string right-padded to the specified width. Treats wide characters as double width. hledger-libMClip a multi-line string to the specified width and height from the top left. hledger-libHClip and pad a multi-line string to fill the specified width and height. hledger-lib{General-purpose wide-char-aware single-line string layout function. It can left- or right-pad a short string to a minimum width. It can left- or right-clip a long string to a maximum width, optionally inserting an ellipsis (the third argument). It clips and pads on the right when the fourth argument is true, otherwise on the left. It treats wide characters as double width. hledger-libA version of fitString that works on multi-line strings, separate for now to avoid breakage. This will rewrite any line endings to unix newlines. hledger-libLeft-pad a string to the specified width. Treats wide characters as double width. Works on multi-line strings too (but will rewrite non-unix line endings). hledger-libRight-pad a string to the specified width. Treats wide characters as double width. Works on multi-line strings too (but will rewrite non-unix line endings). hledger-libDouble-width-character-aware string truncation. Take as many characters as possible from a string without exceeding the specified width. Eg takeWidth 3 "000T" = "0". hledger-libCalculate the render width of a string, considering wide characters (counted as double width), ANSI escape codes (not counted), and line breaks (in a multi-line string, the longest line determines the width).  hledger-libGet the designated render width of a character: 0 for a combining character, 1 for a regular character, 2 for a wide character. (Wide characters are rendered as exactly double width in apps and fonts that support it.) (From Pandoc.)$$ NoneM  hledger-lib'Remove leading and trailing whitespace. hledger-libRemove leading whitespace. hledger-libRemove trailing whitespace. hledger-libWrap a string in double quotes, and -prefix any embedded single quotes, if it contains whitespace and is not already single- or double-quoted. hledger-libKStrip one matching pair of single or double quotes on the ends of a string. hledger-libJoin several multi-line strings as side-by-side rectangular strings of the same height, top-padded. Treats wide characters as double width. hledger-libyGeneral-purpose wide-char-aware single-line text layout function. It can left- or right-pad a short string to a minimum width. It can left- or right-clip a long string to a maximum width, optionally inserting an ellipsis (the third argument). It clips and pads on the right when the fourth argument is true, otherwise on the left. It treats wide characters as double width. hledger-libLeft-pad a text to the specified width. Treats wide characters as double width. Works on multi-line texts too (but will rewrite non-unix line endings). hledger-libRight-pad a string to the specified width. Treats wide characters as double width. Works on multi-line strings too (but will rewrite non-unix line endings). hledger-libDouble-width-character-aware string truncation. Take as many characters as possible from a string without exceeding the specified width. Eg textTakeWidth 3 "000T" = "0". hledger-libCalculate the designated render width of a string, taking into account wide characters and line breaks (the longest line within a multi-line string determines the width ).None<FT  hledger-libFTrace (print to stderr) a showable value using a custom show function. hledger-libiParsec trace - show the current parsec position and next input, and the provided label if it's non-null. hledger-libGlobal 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 unsafePerformIO and can be accessed from anywhere and before normal command-line processing. When running with :main in GHCI, you must touch and reload this module to see the effect of a new --debug option. After command-line processing, it is also available as the debug_ field of 12. {- OPTIONS_GHC -fno-cse -} {- NOINLINE debugLevel -} hledger-lib&Convenience aliases for tracePrettyAt. hledger-libPretty-print a message and the showable value to the console when the debug level is >= 1, then return it. Uses unsafePerformIO. hledger-lib Convenience aliases for tracePrettyAtIO. Like dbg, but convenient to insert in an IO monad. XXX These have a bug; they should use traceIO, not trace, otherwise GHC can occasionally over-optimise (cf lpaste a few days ago where it killed/blocked a child thread). hledger-libPretty-print a message and a showable value to the console if the debug level is at or above the specified level. At level 0, always prints. Otherwise, uses unsafePerformIO. hledger-libLog a message and a pretty-printed showable value to ./debug.log, if the debug level is at or above the specified level. At level 0, always logs. Otherwise, uses unsafePerformIO. hledger-libprint this string to the console before evaluating the expression, if the global debug level is at or above the specified level. Uses unsafePerformIO. dbgtrace :: Int -> String -> a -> a dbgtrace level | debugLevel >= level = trace | otherwise = flip constXPrint a showable value to the console, with a message, if the debug level is at or above the specified level (uses unsafePerformIO). Values are displayed with show, all on one line, which is hard to read. dbgshow :: Show a => Int -> String -> a -> a dbgshow level | debugLevel >= level = ltrace | otherwise = flip constPrint a showable value to the console, with a message, if the debug level is at or above the specified level (uses unsafePerformIO). Values are displayed with ppShow, each field/constructor on its own line. hledger-lib6Like dbg, then exit the program. Uses unsafePerformIO.  hledger-libPrint 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. pdbgAt :: GenParser m => Float -> String -> m ()  hledger-libLike dbg, but writes the output to "debug.log" in the current directory. Uses unsafePerformIO. Can fail due to log file contention if called too quickly ("*** Exception: debug.log: openFile: resource busy (file is locked)").. "  !  " Noneǽ " hledger-libJApply a function the specified number of times. Possibly uses O(n) stack ?# hledger-libConvert a possibly relative, possibly tilde-containing file path to an absolute one, given the current directory. ~username is not supported. Leave "-" unchanged. Can raise an error.% hledger-libRead text from a file, handling any of the usual line ending conventions, using the system locale's text encoding, ignoring any utf8 BOM prefix (as seen in paypal's 2018 CSV, eg) if that encoding is utf8. & hledger-libHLike readFilePortably, but read from standard input if the path is "-". ( hledger-libITotal version of maximum, for integral types, giving 0 for an empty list.) hledger-lib-Strict version of sum that doesn t leak space* hledger-lib1Strict version of maximum that doesn t leak space+ hledger-lib1Strict version of minimum that doesn t leak space, hledger-lib"This is a version of sequence based on difference lists. It is slightly faster but we mostly use it because it uses the heap instead of the stack. This has the advantage that Neil Mitchell s trick of limiting the stack size to discover space leaks doesn t show this as a false positive.  "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMN      !"#$%&'()*+,-.*    !"#$%&'()*+,-.-./012None0 hledger-libTThe result of running cmdargs: an association list of option names to string values.3 hledger-libIs the named option present ? 0123456789 0123465798None <FTUV#; hledger-libURender a datespan as a display string, abbreviating into a compact form if possible.< hledger-libbLike showDateSpan, but show month spans as just the abbreviated month name in the current locale.= hledger-libGet the current local date.> hledger-lib#Get the current local month number.? hledger-libGet the current local year.C hledger-lib?Get overall span enclosing multiple sequentially ordered spans.D hledger-libSplit a DateSpan into consecutive whole spans of the specified interval which fully encompass the original span (and a little more when necessary). If no interval is specified, the original span is returned. If the original span is the null date span, ie unbounded, the null date span is returned. If the original span is empty, eg if the end date is <= the start date, no spans are returned. Examples:.let t i d1 d2 = splitSpan i $ mkdatespan d1 d2&t NoInterval "2008/01/01" "2009/01/01"[DateSpan 2008](t (Quarters 1) "2008/01/01" "2009/01/01"A[DateSpan 2008q1,DateSpan 2008q2,DateSpan 2008q3,DateSpan 2008q4]#splitSpan (Quarters 1) nulldatespan [DateSpan -]:t (Days 1) "2008/01/01" "2008/01/01" -- an empty datespan[](t (Quarters 1) "2008/01/01" "2008/01/01"[]&t (Months 1) "2008/01/01" "2008/04/01"4[DateSpan 2008/01,DateSpan 2008/02,DateSpan 2008/03]&t (Months 2) "2008/01/01" "2008/04/01"?[DateSpan 2008/01/01-2008/02/29,DateSpan 2008/03/01-2008/04/30]%t (Weeks 1) "2008/01/01" "2008/01/15"F[DateSpan 2007/12/31w01,DateSpan 2008/01/07w02,DateSpan 2008/01/14w03]%t (Weeks 2) "2008/01/01" "2008/01/15"?[DateSpan 2007/12/31-2008/01/13,DateSpan 2008/01/14-2008/01/27]*t (DayOfMonth 2) "2008/01/01" "2008/04/01"}[DateSpan 2007/12/02-2008/01/01,DateSpan 2008/01/02-2008/02/01,DateSpan 2008/02/02-2008/03/01,DateSpan 2008/03/02-2008/04/01]0t (WeekdayOfMonth 2 4) "2011/01/01" "2011/02/15"^[DateSpan 2010/12/09-2011/01/12,DateSpan 2011/01/13-2011/02/09,DateSpan 2011/02/10-2011/03/09])t (DayOfWeek 2) "2011/01/01" "2011/01/15"^[DateSpan 2010/12/28-2011/01/03,DateSpan 2011/01/04-2011/01/10,DateSpan 2011/01/11-2011/01/17]-t (DayOfYear 11 29) "2011/10/01" "2011/10/15" [DateSpan 2010/11/29-2011/11/28]-t (DayOfYear 11 29) "2011/12/01" "2012/12/15"?[DateSpan 2011/11/29-2012/11/28,DateSpan 2012/11/29-2013/11/28]E hledger-libDCount the days in a DateSpan, or if it is open-ended return Nothing. hledger-libPIs this an empty span, ie closed with the end date on or before the start date ?F hledger-lib&Does the span include the given date ?G hledger-libGDoes the period include the given date ? (Here to avoid import cycle).H hledger-lib4Calculate the intersection of a number of datespans.I hledger-lib,Calculate the intersection of two datespans.For non-intersecting spans, gives an empty span beginning on the second's start date: >>> mkdatespan "2018-01-01" "2018-01-03" I4 mkdatespan "2018-01-03" "2018-01-05" DateSpan 20180103-20180102J hledger-libdCalculate the intersection of two DateSpans, adjusting the start date so the interval is preserved.6let intervalIntersect = spanIntervalIntersect (Days 3)]mkdatespan "2018-01-01" "2018-01-03" `intervalIntersect` mkdatespan "2018-01-01" "2018-01-05"DateSpan 2018/01/01-2018/01/02]mkdatespan "2018-01-01" "2018-01-05" `intervalIntersect` mkdatespan "2018-01-02" "2018-01-05"DateSpan 2018/01/04]mkdatespan "2018-01-01" "2018-01-05" `intervalIntersect` mkdatespan "2018-01-03" "2018-01-05"DateSpan 2018/01/04]mkdatespan "2018-01-01" "2018-01-05" `intervalIntersect` mkdatespan "2018-01-04" "2018-01-05"DateSpan 2018/01/04]mkdatespan "2018-01-01" "2018-01-05" `intervalIntersect` mkdatespan "2017-12-01" "2018-01-05"DateSpan 2018/01/01-2018/01/04K hledger-librFill any unspecified dates in the first span with the dates from the second one. Sort of a one-way spanIntersect.L hledger-lib-Calculate the union of a number of datespans.M hledger-lib%Calculate the union of two datespans.N hledger-libzParse a period expression to an Interval and overall DateSpan using the provided reference date, or return a parse error.O hledger-lib1Like parsePeriodExpr, but call error' on failure. hledger-libShow a DateSpan as a human-readable pseudo-period-expression string. dateSpanAsText :: DateSpan -> String dateSpanAsText (DateSpan Nothing Nothing) = "all" dateSpanAsText (DateSpan Nothing (Just e)) = printf "to %s" (show e) dateSpanAsText (DateSpan (Just b) Nothing) = printf "from %s" (show b) dateSpanAsText (DateSpan (Just b) (Just e)) = printf "%s to %s" (show b) (show e)#Convert a single smart date string to a date span using the provided reference date, or raise an error. spanFromSmartDateString :: Day -> String -> DateSpan spanFromSmartDateString refdate s = spanFromSmartDate refdate sdate where sdate = fromparse $ parsewith smartdateonly sQ hledger-libsConvert a smart date string to an explicit yyyy/mm/dd string using the provided reference date, or raise an error.R hledger-lib"A safe version of fixSmartDateStr.T hledger-libJConvert a SmartDate to an absolute date using the provided reference date. Examples: :set -XOverloadedStrings0let t = fixSmartDateStr (parsedate "2008/11/26")t "0000-01-01" "0000/01/01"t "1999-12-02" "1999/12/02"t "1999.12.02" "1999/12/02" t "1999/3/2" "1999/03/02" t "19990302" "1999/03/02" t "2008/2" "2008/02/01" t "0020/2" "0020/02/01"t "1000" "1000/01/01"t "4/2" "2008/04/02"t "2" "2008/11/02" t "January" "2008/01/01"t "feb" "2008/02/01" t "today" "2008/11/26" t "yesterday" "2008/11/25" t "tomorrow" "2008/11/27" t "this day" "2008/11/26" t "last day" "2008/11/25" t "next day" "2008/11/27"t "this week" -- last monday "2008/11/24"!t "last week" -- previous monday "2008/11/17"t "next week" -- next monday "2008/12/01"t "this month" "2008/11/01"t "last month" "2008/10/01"t "next month" "2008/12/01"t "this quarter" "2008/10/01"t "last quarter" "2008/07/01"t "next quarter" "2009/01/01" t "this year" "2008/01/01" t "last year" "2007/01/01" t "next year" "2009/01/01"t "last wed" "20081119" t "next friday" "20081128" t "next january" "20090101" hledger-lib\For given date d find year-long interval that starts on given MM/DD of year and covers it. cExamples: lets take 2017-11-22. Year-long intervals covering it that starts before Nov 22 will start in 2017. However intervals that start after Nov 23rd should start in 2016: >>> let wed22nd = parsedate "2017-11-22" >>> nthdayofyearcontaining 11 21 wed22nd 2017-11-21 >>> nthdayofyearcontaining 11 22 wed22nd 2017-11-22 >>> nthdayofyearcontaining 11 23 wed22nd 2016-11-23 >>> nthdayofyearcontaining 12 02 wed22nd 2016-12-02 >>> nthdayofyearcontaining 12 31 wed22nd 2016-12-31 >>> nthdayofyearcontaining 1 1 wed22nd 2017-01-01  hledger-libZFor given date d find month-long interval that starts on nth day of month and covers it. &Examples: lets take 2017-11-22. Month-long intervals covering it that start on 1st-22nd of month will start in Nov. However intervals that start on 23rd-30th of month should start in Oct: >>> let wed22nd = parsedate "2017-11-22" >>> nthdayofmonthcontaining 1 wed22nd 2017-11-01 >>> nthdayofmonthcontaining 12 wed22nd 2017-11-12 >>> nthdayofmonthcontaining 22 wed22nd 2017-11-22 >>> nthdayofmonthcontaining 23 wed22nd 2017-10-23 >>> nthdayofmonthcontaining 30 wed22nd 2017-10-30  hledger-libXFor given date d find week-long interval that starts on nth day of week and covers it.  Examples: 2017-11-22 is Wed. Week-long intervals that cover it and start on Mon, Tue or Wed will start in the same week. However intervals that start on Thu or Fri should start in prev week: >>> let wed22nd = parsedate "2017-11-22" >>> nthdayofweekcontaining 1 wed22nd 2017-11-20 >>> nthdayofweekcontaining 2 wed22nd 2017-11-21 >>> nthdayofweekcontaining 3 wed22nd 2017-11-22 >>> nthdayofweekcontaining 4 wed22nd 2017-11-16 >>> nthdayofweekcontaining 5 wed22nd 2017-11-17  hledger-lib^For given date d find month-long interval that starts on nth weekday of month and covers it.  Examples: 2017-11-22 is 3rd Wed of Nov. Month-long intervals that cover it and start on 1st-4th Wed will start in Nov. However intervals that start on 4th Thu or Fri or later should start in Oct: >>> let wed22nd = parsedate "2017-11-22" >>> nthweekdayofmonthcontaining 1 3 wed22nd 2017-11-01 >>> nthweekdayofmonthcontaining 3 2 wed22nd 2017-11-21 >>> nthweekdayofmonthcontaining 4 3 wed22nd 2017-11-22 >>> nthweekdayofmonthcontaining 4 4 wed22nd 2017-10-26 >>> nthweekdayofmonthcontaining 4 5 wed22nd 2017-10-27 hledger-lib1Advance to nth weekday wd after given start day sV hledger-lib5Parse a couple of date string formats to a time type.W hledger-libParse a YYYY-MM-DD or YYYYMMBDD date string to a Day, or raise an error. For testing/debugging.parsedate "2008/02/03" 2008-02-03X hledger-libParse a date in any of the formats allowed in Ledger's period expressions, and some others. Assumes any text in the parse stream has been lowercased. Returns a SmartDate, to be converted to a full date later (see fixSmartDate). Examples:  2004 (start of year, which must have 4+ digits) 2004/10 (start of month, which must be 1-12) 2004/10/1 (exact date, day must be 1-31) 10/1 (month and day in current year) 21 (day in current month) october, oct (start of month in current year) yesterday, today, tomorrow (-1, 0, 1 days from today) last/this/next day/week/month/quarter/year (-1, 0, 1 periods from the current period) 20181201 (8 digit YYYYMMDD with valid year month and day) 201812 (6 digit YYYYMM with valid year and month)=Note malformed digit sequences might give surprising results: 201813 (6 digits with an invalid month is parsed as start of 6-digit year) 20181301 (8 digits with an invalid month is parsed as start of 8-digit year) 20181232 (8 digits with an invalid day gives an error) 201801012 (9+ digits beginning with a valid YYYYMMDD gives an error)Eg:YYYYMMDD is parsed as year-month-date if those parts are valid (>=4 digits, 1-12, and 1-31 respectively): >>> parsewith (smartdate <* eof) "20181201" Right ("2018","12","01")YYYYMM is parsed as year-month-01 if year and month are valid: >>> parsewith (smartdate <* eof) "201804" Right ("2018","04","01")nWith an invalid month, it's parsed as a year: >>> parsewith (smartdate <* eof) "201813" Right ("201813","","")wA 9+ digit number beginning with valid YYYYMMDD gives an error: >>> parsewith (smartdate <* eof) "201801012" Left (...)Big numbers not beginning with a valid YYYYMMDD are parsed as a year: >>> parsewith (smartdate <* eof) "201813012" Right ("201813012","","") hledger-libOLike smartdate, but there must be nothing other than whitespace after the date._ hledger-lib0let p = parsePeriodExpr (parsedate "2008/11/26")p "from Aug to Oct"1Right (NoInterval,DateSpan 2008/08/01-2008/09/30)p "aug to oct"1Right (NoInterval,DateSpan 2008/08/01-2008/09/30)p "every 3 days in Aug"Right (Days 3,DateSpan 2008/08)p "daily from aug"#Right (Days 1,DateSpan 2008/08/01-)p "every week to 2009"$Right (Weeks 1,DateSpan -2008/12/31)p "every 2nd day of month"Right (DayOfMonth 2,DateSpan -)p "every 2nd day"Right (DayOfMonth 2,DateSpan -)p "every 2nd day 2009-"+Right (DayOfMonth 2,DateSpan 2009/01/01-) p "every 29th Nov""Right (DayOfYear 11 29,DateSpan -)p "every 29th nov -2009",Right (DayOfYear 11 29,DateSpan -2008/12/31)p "every nov 29th""Right (DayOfYear 11 29,DateSpan -)p "every Nov 29th 2009-",Right (DayOfYear 11 29,DateSpan 2009/01/01-)p "every 11/29 from 2009",Right (DayOfYear 11 29,DateSpan 2009/01/01-)'p "every 2nd Thursday of month to 2009"/Right (WeekdayOfMonth 2 4,DateSpan -2008/12/31)%p "every 1st monday of month to 2009"/Right (WeekdayOfMonth 1 1,DateSpan -2008/12/31) p "every tue"Right (DayOfWeek 2,DateSpan -)p "every 2nd day of week"Right (DayOfWeek 2,DateSpan -)p "every 2nd day of month"Right (DayOfMonth 2,DateSpan -)p "every 2nd day"Right (DayOfMonth 2,DateSpan -)p "every 2nd day 2009-")Right (DayOfMonth 2,DateSpan 2009/01/01-) p "every 2nd day of month 2009-")Right (DayOfMonth 2,DateSpan 2009/01/01-) hledger-lib0- >>> parsewith (doubledatespan (parsedate "201801301") <* eof) "20180101-201804" Right DateSpan 20180101-20180401` hledger-libmMake a datespan from two valid date strings parseable by parsedate (or raise an error). Eg: mkdatespan "201111" "20111231".):;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ab)=>?bFGVW:;<@U_NOa\]^ZY[ABCIHJKMLXDTQRSEP`Nonei hledger-lib6Look up one of the sample commodities' symbol by name.j hledger-libFFind the conversion rate between two commodities. Currently returns 1.defghijkdefghijkNone"#0 :l hledger-libDefault amount style m hledger-libThe empty simple amount.n hledger-libThe empty simple amount.o hledger-libHA temporary value for parsed transactions which had no amount specified. hledger-libApply a binary arithmetic operator to two amounts, which should be in the same commodity if non-zero (warning, this is not checked). A zero result keeps the commodity of the second amount. The result's display style is that of the second amount, with precision set to the highest of either amount. Prices are ignored and discarded. Remember: the caller is responsible for ensuring both amounts have the same commodity.w hledger-lib~Convert an amount to the specified commodity, ignoring and discarding any assigned prices and assuming an exchange rate of 1.x hledger-libIConvert an amount to the commodity of its assigned price, if any. Notes:kprice amounts must be MixedAmounts with exactly one component Amount (or there will be a runtime error) XXXGprice amounts should be positive, though this is not currently enforcedy hledger-lib*Divide an amount's quantity by a constant.z hledger-lib/Is this amount negative ? The price is ignored.{ hledger-libLDoes this amount appear to be zero when displayed with its given precision ?| hledger-libCIs this amount "really" zero, regardless of the display precision ? hledger-lib|Get the string representation of an amount, based on its commodity's display settings except using the specified precision.} hledger-lib"Set an amount's display precision.~ hledger-lib+Set an amount's display precision, flipped. hledger-libxGet a string representation of an amount for debugging, appropriate to the current debug level. 9 shows maximum detail. hledger-lib@Get the string representation of an amount, without any @ price. hledger-libColour version. hledger-libRGet the string representation of an amount, without any price or commodity symbol. hledger-libGiven a map of standard amount display styles, apply the appropriate one to this amount. If there's no standard style for this amount's commodity, return the amount unchanged. hledger-libGet the string representation of an amount, based on its commodity's display settings. String representations equivalent to zero are converted to just "0". The special "missing" amount is displayed as the empty string. hledger-libkColour version. For a negative amount, adds ANSI codes to change the colour, currently to hard-coded red. hledger-libBLike showAmount, but show a zero amount's commodity if it has one. hledger-libqGet the string representation of the number part of of an amount, using the display settings from its commodity. hledger-libReplace a number string's decimal point with the specified character, and add the specified digit group separators. The last digit group will be repeated as needed. hledger-libOFor rendering: a special precision value which means show all available digits. hledger-libQFor rendering: a special precision value which forces display of a decimal point. hledger-libNCanonicalise an amount's display style using the provided commodity style map. hledger-libFind the market value of this amount on the given date, in it's default valuation commodity, based on recorded market prices. If no default valuation commodity can be found, the amount is left unchanged. hledger-libFind the market value, if known, of one unit of this commodity (A) on the given valuation date, in the commodity (B) mentioned in the latest applicable market price. The latest applicable market price is the market price directive for commodity A with the latest date that is on or before the valuation date; or if there are multiple such prices with the same date, the last parsed. hledger-libThe empty mixed amount. hledger-libHA temporary value for parsed transactions which had no amount specified. hledger-libEConvert amounts in various commodities into a normalised MixedAmount. hledger-lib,Simplify a mixed amount's component amounts:\amounts in the same commodity are combined unless they have different prices or total pricesmultiple zero amounts, all with the same non-null commodity, are replaced by just the last of them, preserving the commodity and amount style (all but the last zero amount are discarded)rmultiple zero amounts with multiple commodities, or no commodities, are replaced by one commodity-less zero amountBan empty amount list is replaced by one commodity-less zero amount4the special "missing" mixed amount remains unchanged hledger-libLike normaliseMixedAmount, but combine each commodity's amounts into just one by throwing away all prices except the first. This is only used as a rendering helper, and could show a misleading price. hledger-libSum same-commodity amounts in a lossy way, applying the first price to the result and discarding any other prices. Only used as a rendering helper. hledger-lib'Get a mixed amount's component amounts. hledger-lib9Filter a mixed amount's component amounts by a predicate. hledger-libReturn an unnormalised MixedAmount containing exactly one Amount with the specified commodity and the quantity of that commodity found in the original. NB if Amount's quantity is zero it will be discarded next time the MixedAmount gets normalised. hledger-lib]Convert a mixed amount's component amounts to the commodity of their assigned price, if any. hledger-lib1Divide a mixed amount's quantities by a constant. hledger-lib,Calculate the average of some mixed amounts. hledger-libNIs this mixed amount negative, if it can be normalised to a single commodity ? hledger-libRDoes this mixed amount appear to be zero when displayed with its given precision ? hledger-lib<Is this mixed amount "really" zero ? See isReallyZeroAmount. hledger-libZIs this mixed amount "really" zero, after converting to cost commodities where possible ? hledger-libdGiven a map of standard amount display styles, apply the appropriate ones to each individual amount. hledger-libGet the string representation of a mixed amount, after normalising it to one amount per commodity. Assumes amounts have no or similar prices, otherwise this can show misleading prices. hledger-libXLike showMixedAmount, but zero amounts are shown with their commodity if they have one. hledger-lib9Get the one-line string representation of a mixed amount. hledger-lib8Compact labelled trace of a mixed amount, for debugging. hledger-lib6Set the display precision in the amount's commodities. hledger-libGet the string representation of a mixed amount, showing each of its component amounts with the specified precision, ignoring their commoditys' display precision settings. hledger-libIGet an unambiguous string representation of a mixed amount for debugging. hledger-libXGet the string representation of a mixed amount, without showing any transaction prices. hledger-libColour version of showMixedAmountWithoutPrice. Any individual Amount which is negative is wrapped in ANSI codes to make it display in red. hledger-libTGet the one-line string representation of a mixed amount, but without any @ prices. hledger-libColour version. hledger-libTCanonicalise a mixed amount's display styles using the provided commodity style map.;lmnopqrstuvwxyz{|}~;mnoprstquvwxyl}~z{|None]` hledger-lib]Get the string representation of an market price, based on its commodity's display settings.None7 hledger-libDTruncate all account name components but the last to two characters. hledger-libxA top-level account prefixed to some accounts in budget reports. Defined here so it can be ignored by accountNameDrop.  hledger-libcRemove some number of account name components from the front of the account name. If the special " unbudgetedd" top-level account is present, it is preserved and dropping affects the rest of the account name.  hledger-libSorted unique account names implied by these account names, ie these plus all their parent accounts up to the root. Eg: ["a:b:c","d:e"] -> ["a","a:b","a:b:c","d","d:e"] hledger-lib"a:b:c" -> ["a","a:b","a:b:c"] hledger-lib  "a:b:c","d:e" -> ["a","d"] hledger-libUIs the first account a parent or other ancestor of (and not the same as) the second ? hledger-libcFrom a list of account names, select those which are direct subaccounts of the given account name. hledger-lib*Convert a list of account names to a tree. hledger-libOElide an account name to fit in the specified width. From the ledger 2.6 news: ] What Ledger now does is that if an account name is too long, it will start abbreviating the first parts of the account name down to two 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 ; Expenses6 was abbreviated to fit Ex:We:Afternoon:Cash ; Expenses and  Wednesday abbreviated ; Expenses:Wednesday:Afternoon:Lunch:Snack:Candy:Chocolate:Cash ..:Af:Lu:Sn:Ca:Ch:Cash ; Abbreviated and elided!  hledger-libyKeep only the first n components of an account name, where n is a positive integer. If n is 0, returns the empty string. hledger-libnKeep only the first n components of an account name, where n is a positive integer. If n is 0, returns "...". hledger-lib\Escape an AccountName for use within a regular expression. >>> putStr $ escapeName "First?! $*?$(*) !@^*? %)*!#" First?!#$*?$(*) !^ \*\? %\)\*!@ hledger-libPConvert an account name to a regular expression matching it and its subaccounts. hledger-libTConvert an account name to a regular expression matching it but not its subaccounts. hledger-libMConvert an exact account-matching regular expression to a plain account name. hledger-libIDoes this string look like an exact account-matching regular expression ?NoneX hledger-lib9Sorted unique account names referenced by these postings. hledger-libRemove all prices of a posting hledger-libGet 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. hledger-libGet a posting's 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. hledger-libTGet a posting's status. This is cleared or pending if those are explicitly set on the posting, otherwise the status of its parent transaction, or unmarked if there is no parent transaction. (Note the ambiguity, unmarked can mean "posting and transaction are both unmarked" or "posting is unmarked and don't know about the transaction". hledger-libParse a transaction's description into payee and note (aka narration) fields, assuming a convention of separating these with | (like Beancount). Ie, everything up to the first | is the payee, everything after it is the note. When there's no |, payee == note == description. hledger-libJTags for this posting including any inherited from its parent transaction. hledger-lib:Tags for this transaction including any from its postings. hledger-lib3Does this posting fall within the given date span ? hledger-libdGet the minimal date span which contains all the postings, or the null date span if there are none. hledger-lib`Prefix one account name to another, preserving posting type indicators like concatAccountNames. hledger-libJoin account names into one. If any of them has () or [] posting type indicators, these (the first type encountered) will also be applied to the resulting account name. hledger-libRewrite an account name using all matching aliases from the given list, in sequence. Each alias sees the result of applying the previous aliases. hledger-lib=Memoising version of accountNameApplyAliases, maybe overkill.$$None<]  hledger-libjShow a journal transaction, formatted for the print command. ledger 2.x's standard format looks like this: yyyymmdd[ *][ CODE] description......... [ ; comment...............] account name 1..................... ...$amount1[ ; comment...............] account name 2..................... ..$-amount1[ ; comment...............] pcodewidth = no limit -- 10 -- mimicking ledger layout. pdescwidth = no limit -- 20 -- I don't remember what these mean, pacctwidth = 35 minimum, no maximum -- they were important at the time. pamtwidth = 11 pcommentwidth = no limit -- 22  hledger-lib>Produce posting line with all comment lines associated with it hledger-libShow an account name, clipped to the given width if any, and appropriately bracketed/parenthesised for the given posting type. hledger-libMGet the sums of a transaction's real, virtual, and balanced virtual postings. hledger-libIs this transaction balanced ? A balanced transaction's real (non-virtual) postings sum to 0, and any balanced virtual postings also sum to 0. hledger-libEnsure this transaction is balanced, possibly inferring a missing amount or conversion price(s), or return an error message. Balancing is affected by commodity display precisions, so those can (optionally) be provided.athis fails for example, if there are several missing amounts (possibly with balance assignments) hledger-libMore general version of  that takes an update function hledger-libInfer up to one missing amount for this transactions's real postings, and likewise for its balanced virtual postings, if needed; or return an error message if we can't.We can infer a missing amount when there are multiple postings and exactly one of them is amountless. If the amounts had price(s) the inferred amount have the same price(s), and will be converted to the price commodity. hledger-lib Infer prices for this transaction's posting amounts, if needed to make the postings balance, and if possible. This is done once for the real postings and again (separately) for the balanced virtual postings. When it's not possible, the transaction is left unchanged.The simplest example is a transaction with two postings, each in a different commodity, with no prices specified. In this case we'll add a price to the first posting such that it can be converted to the commodity of the second posting (with -B), and such that the postings balance.&In general, we can infer a conversion price when the sum of posting amounts contains exactly two different commodities and no explicit prices. Also all postings are expected to contain an explicit amount (no missing amounts) in a single commodity. Otherwise no price inferring is attempted.The transaction itself could contain more than two commodities, and/or prices, if they cancel out; what matters is that the sum of posting amounts contains exactly two commodities and zero prices.FThere can also be more than two postings in either of the commodities.We want to avoid excessive display of digits when the calculated price is an irrational number, while hopefully also ensuring the displayed numbers make sense if the user does a manual calculation. This is (mostly) achieved in two ways:when there is only one posting in the "from" commodity, a total price (@@) is used, and all available decimal digits are shownotherwise, a suitable averaged unit price (@) is applied to the relevant postings, with display precision equal to the summed display precisions of the two commodities being converted between, or 2, whichever is larger.'(We don't always calculate a good-looking display precision for unit prices when the commodity display precisions are low, eg when a journal doesn't use any decimal places. The minimum of 2 helps make the prices shown by the print command a bit less surprising in this case. Could do better.) hledger-libGenerate a posting update function which assigns a suitable balancing price to the posting, if and as appropriate for the given transaction and posting type (real or balanced virtual). hledger-libZEnsure a transaction's postings refer back to it, so that eg relatedPostings works right. hledger-libqEnsure a transaction's postings do not refer back to it, so that eg recursiveSize and GHCI's :sprint work right. hledger-lib#Set a posting's parent transaction. hledger-libupdate function hledger-libupdate function hledger-libstandard amount stylesNone%11  hledger-libA query option changes a query 's/report'#s behaviour and output in some way.  hledger-lib1show an account register focussed on this account  hledger-libas above but include sub-accounts in the account register | QueryOptCostBasis -- ^ show amounts converted to cost where possible | QueryOptDate2 -- ^ show secondary dates instead of primary dates hledger-libsA query is a composition of search criteria, which can be used to match postings, transactions, accounts and more. hledger-lib always match hledger-lib never match hledger-libnegate this match hledger-libmatch if any of these match hledger-libmatch if all of these match hledger-lib!match if code matches this regexp hledger-lib(match if description matches this regexp hledger-lib0match postings whose account matches this regexp hledger-lib'match if primary date in this date span hledger-lib)match if secondary date in this date span hledger-lib$match txns/postings with this status hledger-libJmatch if "realness" (involves a real non-virtual account ?) has this value hledger-lib3match if the amount's numeric quantity is less than greater than'equal to/unsignedly equal to some value hledger-lib>match if the entire commodity symbol is matched by this regexp hledger-libyif true, show zero-amount postings/accounts which are usually not shown more of a query option than a query criteria ? hledger-libmatch if account depth is less than or equal to this value. Depth is sometimes used like a query (for filtering report data) and sometimes like a query option (for controlling display) hledger-libmatch if a tag's name, and optionally its value, is matched by these respective regexps matching the regexp if provided, exists  hledger-libConvert a query expression containing zero or more space-separated 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: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^The 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 way. There is currently one of these, which may appear only once:inacct:FULLACCTNAMEThe 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.ePeriod 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. multiple status patterns are OR'd together 4. then all terms are AND'd together! hledger-libQuote-and-prefix-aware version of words - don't split on spaces which are inside quotes, including quotes which may have one of the specified prefixes in front, and maybe an additional not: prefix in front of that. hledger-libkParse a single query term as either a query or a query option, or raise an error if it has invalid syntax. hledger-lib>Parse the value part of a "status:" query, or return an error. hledger-libxParse the boolean value part of a "status:" query. "1" means true, anything else will be parsed as false without error.# hledger-libRemove query terms (or whole sub-expressions) not matching the given predicate from this query. XXX Semantics not completely clear.$ hledger-lib"Does this query match everything ?. hledger-libDoes 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./ hledger-libWhat start date (or secondary date) does this query specify, if any ? For OR expressions, use the earliest of the dates. NOT is ignored.0 hledger-libWhat end date (or secondary date) does this query specify, if any ? For OR expressions, use the latest of the dates. NOT is ignored.1 hledger-libWhat date span (or secondary date span) does this query specify ? For OR expressions, use the widest possible span. NOT is ignored. hledger-libTExtract all date (or secondary date) spans specified in this query. NOT is ignored.2 hledger-libWhat date span (or secondary date span) does this query specify ? For OR expressions, use the widest possible span. NOT is ignored. hledger-libTExtract all date (or secondary date) spans specified in this query. NOT is ignored. hledger-lib>What is the earliest of these dates, where Nothing is latest ? hledger-lib>What is the latest of these dates, where Nothing is earliest ? hledger-lib8What is the earliest of these dates, ignoring Nothings ? hledger-lib6What is the latest of these dates, ignoring Nothings ? hledger-lib-Compare two maybe dates, Nothing is earliest.3 hledger-lib@The depth limit this query specifies, or a large number if none.4 hledger-lib~The account we are currently focussed on, if any, and whether subaccounts are included. Just looks at the first query option.5 hledger-libgA query for the account(s) we are currently focussed on, if any. Just looks at the first query option.6 hledger-libaDoes the match expression match this account ? A matching in: clause is also considered a match.8 hledger-lib6Does the match expression match this (simple) amount ? hledger-libIs this simple (single-amount) mixed amount's quantity less than, greater than, equal to, or unsignedly equal to this number ? For multi-amount (multiple commodities, or just unsimplified) mixed amounts this is always true.aIs this amount's quantity less than, greater than, equal to, or unsignedly equal to this number ?9 hledger-lib.Does the match expression match this posting ?FNote that for account match we try both original and effective account: hledger-lib2Does the match expression match this transaction ? hledger-libXFilter a list of tags by matching against their names and optionally also their values.1    !"#$%&'()*+,-./0123456789:;1    "#$)%&'(.*+,-/012345:9678!;None E hledger-libConvert time log entries to journal transactions. When there is no clockout, add one with the provided current time. Sessions crossing midnight are split into days to give accurate per-day totals.F hledger-libConvert a timeclock clockin and clockout entry to an equivalent journal transaction, representing the time expenditure. Note this entry is not balanced, since we omit the "assets:time" transaction for simpler output.EFGEFGNone"#%\K hledger-lib Builds a  transformer based on .^ parameter allows injection of additional restriction on posting match. Don't forget to call .zrunModifierTransaction Any (ModifierTransaction "" ["pong" `post` usd 2]) nulltransaction{tpostings=["ping" `post` usd 1]} 0000/01/01 ping $1.00 pong $2.00~runModifierTransaction Any (ModifierTransaction "miss" ["pong" `post` usd 2]) nulltransaction{tpostings=["ping" `post` usd 1]} 0000/01/01 ping $1.00{runModifierTransaction None (ModifierTransaction "" ["pong" `post` usd 2]) nulltransaction{tpostings=["ping" `post` usd 1]} 0000/01/01 ping $1.00runModifierTransaction Any (ModifierTransaction "ping" ["pong" `post` amount{amultiplier=True, aquantity=3}]) nulltransaction{tpostings=["ping" `post` usd 2]} 0000/01/01 ping $2.00 pong $6.00L hledger-libExtract  equivalent of  from 2mtvaluequery (ModifierTransaction "" []) undefinedAny6mtvaluequery (ModifierTransaction "ping" []) undefined Acct "ping";mtvaluequery (ModifierTransaction "date:2016" []) undefinedDate (DateSpan 2016)Fmtvaluequery (ModifierTransaction "date:today" []) (read "2017-01-01")Date (DateSpan 2017/01/01)M hledger-lib of all dates mentioned in ejdatespan nulljournal DateSpan -Hjdatespan nulljournal{jtxns=[nulltransaction{tdate=read "2016-01-01"}] }DateSpan 2016/01/01jdatespan nulljournal{jtxns=[nulltransaction{tdate=read "2016-01-01", tpostings=[nullposting{pdate=Just $ read "2016-02-01"}]}] }DateSpan 2016/01/01-2016/02/01  hledger-lib of all dates mentioned in tdates nulltransaction [0000-01-01]N hledger-libGenerate transactions from  within a #Note that new transactions require  post-processing.&_ptgen "monthly from 2017/1 to 2017/4" 2017/01/01* ; recur: monthly from 2017/1 to 2017/4 a $1.00 2017/02/01* ; recur: monthly from 2017/1 to 2017/4 a $1.00 2017/03/01* ; recur: monthly from 2017/1 to 2017/4 a $1.00&_ptgen "monthly from 2017/1 to 2017/5" 2017/01/01* ; recur: monthly from 2017/1 to 2017/5 a $1.00 2017/02/01* ; recur: monthly from 2017/1 to 2017/5 a $1.00 2017/03/01* ; recur: monthly from 2017/1 to 2017/5 a $1.00 2017/04/01* ; recur: monthly from 2017/1 to 2017/5 a $1.007_ptgen "every 2nd day of month from 2017/02 to 2017/04" 2017/01/02; ; recur: every 2nd day of month from 2017/02 to 2017/04 a $1.00 2017/02/02; ; recur: every 2nd day of month from 2017/02 to 2017/04 a $1.00 2017/03/02; ; recur: every 2nd day of month from 2017/02 to 2017/04 a $1.006_ptgen "every 30th day of month from 2017/1 to 2017/5" 2016/12/30: ; recur: every 30th day of month from 2017/1 to 2017/5 a $1.00 2017/01/30: ; recur: every 30th day of month from 2017/1 to 2017/5 a $1.00 2017/02/28: ; recur: every 30th day of month from 2017/1 to 2017/5 a $1.00 2017/03/30: ; recur: every 30th day of month from 2017/1 to 2017/5 a $1.00 2017/04/30: ; recur: every 30th day of month from 2017/1 to 2017/5 a $1.00:_ptgen "every 2nd Thursday of month from 2017/1 to 2017/4" 2016/12/08> ; recur: every 2nd Thursday of month from 2017/1 to 2017/4 a $1.00 2017/01/12> ; recur: every 2nd Thursday of month from 2017/1 to 2017/4 a $1.00 2017/02/09> ; recur: every 2nd Thursday of month from 2017/1 to 2017/4 a $1.00 2017/03/09> ; recur: every 2nd Thursday of month from 2017/1 to 2017/4 a $1.00)_ptgen "every nov 29th from 2017 to 2019" 2016/11/29- ; recur: every nov 29th from 2017 to 2019 a $1.00 2017/11/29- ; recur: every nov 29th from 2017 to 2019 a $1.00 2018/11/29- ; recur: every nov 29th from 2017 to 2019 a $1.00_ptgen "2017/1" 2017/01/01 ; recur: 2017/1 a $1.00 _ptgen ""!*** Exception: failed to parse......_ptgen "weekly from 2017"*** Exception: Unable to generate transactions according to "weekly from 2017" because 2017-01-01 is not a first day of the week_ptgen "monthly from 2017/5/4"*** Exception: Unable to generate transactions according to "monthly from 2017/5/4" because 2017-05-04 is not a first day of the month $_ptgen "every quarter from 2017/1/2"*** Exception: Unable to generate transactions according to "every quarter from 2017/1/2" because 2017-01-02 is not a first day of the quarter _ptgen "yearly from 2017/1/14"*** Exception: Unable to generate transactions according to "yearly from 2017/1/14" because 2017-01-14 is not a first day of the year /let reportperiod="daily from 2018/01/03" in let (i,s) = parsePeriodExpr' nulldate reportperiod in runPeriodicTransaction (nullperiodictransaction{ptperiodexpr=reportperiod, ptspan=s, ptinterval=i, ptpostings=["a" `post` usd 1]}) (DateSpan (Just $ parsedate "2018-01-01") (Just $ parsedate "2018-01-03"))[]O hledger-libCheck that this date span begins at a boundary of this interval, or return an explanatory error message including the provided period expression (from which the span and interval are derived).P hledger-libWhat is the interval of this *s period expression, if it can be parsed ?KLMNOPKNLMPONone0QV 7  hledger-libEnvironment for    hledger-libMonad transformer stack with a reference to a mutable hashtable of current account balances and a mutable array of finished transactions in original parsing order.X hledger-libWGet the transaction with this index (its 1-based position in the input stream), if any.Y hledger-libYGet the transaction that appeared immediately after this one in the input stream, if any.Z hledger-libZGet the transaction that appeared immediately before this one in the input stream, if any.[ hledger-lib5Unique transaction descriptions used in this journal.\ hledger-lib8All postings from this journal's transactions, in order.] hledger-libESorted unique account names posted to by this journal's transactions.^ hledger-libSorted unique account names implied by this journal's transactions - accounts posted to and all their implied parent accounts._ hledger-libKSorted unique account names declared by account directives in this journal.` hledger-libiSorted unique account names declared by account directives or posted to by transactions in this journal.a hledger-libSorted unique account names declared by account directives, or posted to or implied as parents by transactions in this journal.b hledger-libIConvenience/compatibility alias for journalAccountNamesDeclaredOrImplied.c hledger-lib8A query for Profit & Loss accounts in this journal. Cf  Ghttp://en.wikipedia.org/wiki/Chart_of_accounts#Profit_.26_Loss_accounts.d hledger-libsA query for Income (Revenue) accounts in this journal. This is currently hard-coded to the case-insensitive regex ^(income|revenue)s?(:|$).e hledger-libjA query for Expense accounts in this journal. This is currently hard-coded to the case-insensitive regex ^expenses?(:|$).f hledger-libDA query for Asset, Liability & Equity accounts in this journal. Cf  Ehttp://en.wikipedia.org/wiki/Chart_of_accounts#Balance_Sheet_Accounts.g hledger-libhA query for Asset accounts in this journal. This is currently hard-coded to the case-insensitive regex  ^assets?(:|$).h hledger-liblA query for Liability accounts in this journal. This is currently hard-coded to the case-insensitive regex ^(debts?|liabilit(y|ies))(:|$).i hledger-libiA query for Equity accounts in this journal. This is currently hard-coded to the case-insensitive regex  ^equity(:|$).j hledger-libA query for Cash (-equivalent) accounts in this journal (ie, accounts which appear on the cashflow statement.) This is currently hard-coded to be all the Asset accounts except for those containing the case-insensitive regex (receivable|:A/R|:fixed).k hledger-lib5Keep only transactions matching the query expression.l hledger-libZKeep only postings matching the query expression. This can leave unbalanced transactions.m hledger-libnWithin each posting's amount, keep only the parts matching the query. This can leave unbalanced transactions.n hledger-lib|Filter out all parts of this transaction's amounts which do not match the query. This can leave the transaction unbalanced.o hledger-libKFilter out all parts of this posting's amount which do not match the query.q hledger-libDo post-parse processing on a parsed journal to make it ready for use. Reverse parsed data to normal order, standardise amount formats, check/ensure that transactions are balanced, and maybe check balance assertions.  hledger-libRNumber (set the tindex field) this journal's transactions, counting upward from 1.  hledger-libTie the knot in all of this journal's transactions, ensuring their postings refer to them. This should be done last, after any other transaction-modifying operations.s hledger-libqUntie all transaction-posting knots in this journal, so that eg recursiveSize and GHCI's :sprint can work on it.t hledger-lib]Check any balance assertions in the journal and return an error message if any of them fail. hledger-libECheck a posting's balance assertion and return an error if it fails.u hledger-libFill in any missing amounts and check that all journal transactions balance, or return an error message. This is done after parsing all amounts and applying canonical commodity styles, since balancing depends on display precision. Reports only the first error encountered. hledger-libHelper used by u and t. hledger-libThis converts a transaction into a list of transactions or postings whose dates have to be considered when checking balance assertions and handled by .Transaction without balance assignments can be balanced and stored immediately and their (possibly) dated postings are returned.MTransaction with balance assignments are only supported if no posting has a \ value. Supported transactions will be returned unchanged and balanced and stored later in . hledger-libThis function takes an object describing changes to account balances on a single day - either a single posting (from an already balanced transaction without assignments) or a whole transaction with assignments (which is required to have no posting with pdate set).For a single posting, there is not much to do. Only add its amount to its account and check the assertion, if there is one. This functionality is provided by .CFor a whole transaction, it loops over all postings, and performs , if there is an amount. If there is no amount, the amount is inferred by the assertion or left empty if there is no assertion. Then, the transaction is balanced, the inferred amount added to the balance (all in h) and the resulting transaction with no missing amounts is stored in the array, for later retrieval.Again in short:'Left Posting': Check the balance assertion and update the account balance. If the amount is empty do nothing. this can be the case e.g. for virtual postingsm'Right Transaction': Loop over all postings, infer their amounts and then balance and store the transaction. hledger-libAdds a posting's amount to the posting's account balance and checks a possible balance assertion. Or if there is no amount, runs the supplied fallback action. hledger-lib^Sets an account's balance to a given amount and returns the difference of new and old amount. hledger-libIAdds an amount to an account's balance and returns the resulting balance. hledger-libHStores a transaction in the transaction array in original parsing order. hledger-libHelper function.v hledger-libChoose and apply a consistent display format to the posting amounts in each commodity. Each commodity's format is specified by a commodity format directive, or otherwise inferred from posting amounts as in hledger < 0.28.w hledger-libGet all the amount styles defined in this journal, either declared by a commodity directive or inferred from amounts, as a map from symbol to style. Styles declared by commodity directives take precedence, and these also are guaranteed to know their decimal point character. hledger-libCollect and save inferred amount styles for each commodity based on the posting amounts in that commodity (excluding price amounts), ie: "the format of the first amount, adjusted to the highest precision of all amounts".x hledger-libvGiven a list of amounts in parse order, build a map from their commodity names to standard commodity display formats.y hledger-libGiven an ordered list of amount styles, choose a canonical style. That is: the style of the first, and the maximum precision of all.z hledger-libLConvert all this journal's amounts to cost by applying their prices, if any.{ hledger-librGet an ordered list of the amounts in this journal which will influence amount style canonicalisation. These are:3amounts in market price directives (in parse order)$amounts in postings (in parse order)Amounts in default commodity directives also influence canonicalisation, but earlier, as amounts are parsed. Amounts in posting prices are not used for canonicalisation.| hledger-lib+Maps over all of the amounts in the journal} hledger-libLTraverses over all ofthe amounts in the journal, in the order indicated by {.~ hledger-libThe fully specified date span enclosing the dates (primary or secondary) of all this journal's transactions and postings, or DateSpan Nothing Nothing if there are none. hledger-libApply the pivot transformation to all postings in a journal, replacing their account name by their value for the given field or tag. hledger-libeReplace this transaction's postings' account names with the value of the given field or tag, if any. hledger-librReplace this posting's account name with the value of the given field or tag, if any, otherwise the empty string. hledger-libCheck if a set of hledger account/description filter patterns matches the given account name or entry description. Patterns are case-insensitive regular expressions. Prefixed with not:, they become anti-patterns. hledger-libinitialise state hledger-lib update state hledger-libsummarise state hledger-libaction if posting has no amount2QRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~2WUVTuvxwzqklmnpo]^_`ab{|}~[RSXYZ\fcdeghijyQtrsNone"# h hledger-lib@Derive 1. an account tree and 2. each account's total exclusive and inclusive changes from a list of postings. This is the core of the balance command (and of *ledger). The accounts are returned as a list in flattened tree order, and also reference each other as a tree. (The first account is the root of the tree.) hledger-lib.Convert an AccountName tree to an Account tree hledger-lib;Tie the knot so all subaccounts' parents are set correctly. hledger-libGLook up an account's numeric code, if any, from the Journal and set it. hledger-libDGet this account's parent accounts, from the nearest up to the root. hledger-lib4List the accounts at each level of the account tree. hledger-libIMap a (non-tree-structure-modifying) function over this and sub accounts. hledger-libAIs the predicate true on any of this account or its subaccounts ? hledger-lib5Add subaccount-inclusive balances to an account tree. hledger-lib-Remove all subaccounts below a certain depth. hledger-libRemove subaccounts below the specified depth, aggregating their balance at the depth limit (accounts at the depth limit will have any sub-balances merged into their exclusive balance). hledger-lib;Remove all leaf accounts and subtrees matching a predicate. hledger-libFlatten an account tree into a list, which is sometimes convenient. Note since accounts link to their parents/subs, the tree's structure remains intact and can still be used. It's a tree/list! hledger-lib#Filter an account tree (to a list). hledger-lib]Sort each level of an account tree by inclusive amount, so that the accounts with largest normal balances are listed first. The provided normal balance sign determines whether normal balances are negative or positive, affecting the sort order. Ie, if balances are normally negative, then the most negative balances sort first, and vice versa. hledger-libSort each level of an account tree first by the account code if any, with the empty account code sorting last, and then by the account name.  hledger-libSearch an account list by name.None  hledger-libFilter a journal's transactions with the given query, then derive a ledger containing the chart of accounts and balances. If the query includes a depth limit, that will affect the ledger's journal but not the ledger's account tree. hledger-libList a ledger's account names. hledger-lib$Get the named account from a ledger. hledger-libGet this ledger's root account, which is a dummy "root" account above all others. This should always be first in the account list, if somehow not this returns a null account. hledger-libLList a ledger's top-level accounts (the ones below the root), in tree order. hledger-libGList a ledger's bottom-level (subaccount-less) accounts, in tree order. hledger-libAAccounts in ledger whose name matches the pattern, in tree order. hledger-lib.List a ledger's postings, in the order parsed. hledger-libThe (fully specified) date span containing all the ledger's (filtered) transactions, or DateSpan Nothing Nothing if there are none. hledger-lib$All commodities used in this ledger.  None<FTU?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abdefghijklmnopqrstuvwxyz{|}~EFGKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~NonePE hledger-libA generic tabular report of some value, where each row corresponds to an account and each column is a date period. The column periods are usually consecutive subperiods formed by splitting the overall report period by some report interval (daily, weekly, etc.) Depending on the value type, this can be a report of balance changes, ending balances, budget performance, etc. Successor to MultiBalanceReport. hledger-libThe average of s or s in a report or report row. hledger-lib The sum of 7s in a report or a report row. Does not make sense for s. hledger-lib"An ending balance as of some date. hledger-lib,A change in balance during a certain period.None"#1 hledger-libStandard options for customising report filtering and output. Most of these correspond to standard hledger command-line options or query arguments, but not all. Some are used only by certain commands, as noted below.  hledger-lib(Zero, one, or two statuses to be matched hledger-lib)if true, flip all amount signs in reports hledger-libThis can be set when running balance reports on a set of accounts with the same normal balance type (eg all assets, or all incomes). - It helps --sort-amount know how to sort negative numbers (eg in the income section of an income statement) - It helps compound balance report commands (is, bs etc.) do sign normalisation, converting normally negative subreports to normally positive for a more conventional display.  hledger-libaShould accounts be displayed: in the command's default style, hierarchically, or as a flat list ? hledger-lib3Which "balance" is being shown in a balance report. hledger-lib%The change of balance in each period. hledger-lib/The accumulated change across multiple periods. hledger-libThe historical ending balance, including the effect of all postings before the report period. Unless altered by, a query, this is what you would see on a bank statement. hledger-libPDo extra validation of raw option values, raising an error if there's a problem. hledger-libMDo extra validation of report options, raising an error if there's a problem. hledger-libJGet the report interval, if any, specified by the last of -p/--period, -D --daily, -W$--weekly, -M/--monthly etc. options. hledger-libBGet any statuses to be matched, as specified by -U/--unmarked, -P --pending, -C`--cleared flags. -UPC is equivalent to no flags, so this returns a list of 0-2 unique statuses. hledger-libmReduce a list of statuses to just one of each status, and if all statuses are present return the empty list. hledger-lib@Add/remove this status from the status list. Used by hledger-ui. hledger-lib6Select the Transaction date accessor based on --date2. hledger-lib2Select the Posting date accessor based on --date2. hledger-lib5Report which date we will report on based on --date2. hledger-lib;Legacy-compatible convenience aliases for accountlistmode_. hledger-lib\Convert this journal's postings' amounts to the cost basis amounts if specified by options. hledger-lib0Convert report options and arguments to a query. hledger-libPConvert report options to a query, ignoring any non-flag command line arguments. hledger-lib6Convert report options and arguments to query options. hledger-libAThe effective report span is the start and end dates specified by options or queries, or otherwise the earliest and latest transaction or posting dates in the journal. If no dates are specified by options/queries and the journal is empty, returns the null date span. Needs IO to parse smart dates in options/queries. hledger-libThe specified report start/end dates are the dates specified by options or queries, if any. Needs IO to parse smart dates in options/queries.; ; None"#1;= hledger-libFAn account transactions report represents transactions affecting a particular account (or possibly several accounts, but we don't use that). It is used eg by hledger-ui's and hledger-web's account register view, where we want to show one row per transaction, in the context of the current account. Report items consist of:the transaction, unmodifiedXthe transaction as seen in the context of the current account and query, which means:the transaction date is set to the "transaction context date", which can be different from the transaction's general date: if postings to the current account (and matched by the report query) have their own dates, it's the earliest of these dates.ethe transaction's postings are filtered, excluding any which are not matched by the report query9a text description of the other account(s) posted to/fromFa flag indicating whether there's more than one other account involved2the total increase/decrease to the current accountthe report transactions' running total after this transaction; or if historical balance is requested (-H), the historical running total. The historical running total includes transactions from before the report start date if one is specified, filtered by the report query. The historical running total may or may not be the account's historical running balance, depending on the report query.Items are sorted by transaction register date (the earliest date the transaction posts to the current account), most recent first. Reporting intervals are currently ignored. hledger-libA transactions report includes a list of transactions (posting-filtered and unfiltered variants), a running balance, and some other information helpful for rendering a register view (a flag indicating multiple other accounts and a display string describing them) with or without a notion of current account(s). Two kinds of report use this data structure, see journalTransactionsReport and accountTransactionsReport below for detais. hledger-libSelect transactions from the whole journal. This is similar to a "postingsReport" except with transaction-based report items which are ordered most recent first. XXX Or an EntriesReport - use that instead ? This is used by hledger-web's journal view. hledger-libTGenerate transactions report items from a list of transactions, using the provided user-specified report query, a query specifying which account to use as the focus, a starting balance, a sign-setting function and a balance-summing function. Or with a None current account query, this can also be used for the journalTransactionsReport.! hledger-libWhat is the transaction's date in the context of a particular account (specified with a query) and report query, as in an account register ? It's normally the transaction's general date, but if any posting(s) matched by the report query and affecting the matched account(s) have their own earlier dates, it's the earliest of these dates. Secondary transaction/posting dates are ignored. hledger-libGenerate a simplified summary of some postings' accounts. To reduce noise, if there are both real and virtual postings, show only the real ones." hledger-libSplit a transactions report whose items may involve several commodities, into one or more single-commodity transactions reports. !" "!!None"#1;=N  hledger-lib A summary posting summarises the activity in one account within a report interval. It is currently kludgily represented by a regular Posting with no description, the interval's start date stored as the posting date, and the interval's end date attached with a tuple.$ hledger-libA postings report is a list of postings with a running total, a label for the total field, and a little extra transaction info to help with rendering. This is used eg for the register command.% hledger-libSelect postings from the journal and add running balance and other information to make a postings report. Used by eg hledger's register command. hledger-libZAdjust report start/end dates to more useful ones based on journal data and report intervals. Ie: 1. If the start date is unspecified, use the earliest date in the journal (if any) 2. If the end date is unspecified, use the latest date in the journal (if any) 3. If a report interval is specified, enlarge the dates to enclose whole intervals  hledger-libFind postings matching a given query, within a given date span, and also any similarly-matched postings before that date span. Date restrictions and depth restrictions in the query are ignored. A helper for the postings report.! hledger-libsGenerate postings report line items from a list of postings or (with non-Nothing dates attached) summary postings.& hledger-libGenerate one postings report line item, containing the posting, the current running balance, and optionally the posting date and/or the transaction description." hledger-libnConvert a list of postings into summary postings, one per interval, aggregated to the specified depth if any.# hledger-libGiven a date span (representing a report interval) and a list of postings within it, aggregate the postings into one summary posting per account.When a depth argument is present, postings to accounts of greater depth are also aggregated where possible. If the depth is 0, all postings in the span are aggregated into a single posting with account name "...".TThe showempty flag includes spans with no postings and also postings with 0 amount.#$%&'$#%&'"None"#1;=ބ) hledger-libA 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.* hledger-lib*Select transactions for an entries report.()*+)(*+#None"#1;=, hledger-liblGet the historical running inclusive balance of a particular account, from earliest to latest posting date.,,$None"#$1<FNTUV]w&- hledger-libVarious options to use when reading journal files. Similar to CliOptions.inputflags, simplifies the journal-reading functions./ hledger-lib_a file/storage format to try, unless overridden by a filename prefix. Nothing means try all.0 hledger-lib1a conversion rules file to use (when reading CSV)1 hledger-libaccount name aliases to apply2 hledger-lib/do light anonymisation/obfuscation of the data 3 hledger-libdon't check balance assertions4 hledger-lib8read only new transactions since this file was last read5 hledger-lib0save latest new transactions state for next time6 hledger-lib0use the given field's value as the account name 7 hledger-lib7generate automatic postings when journal is parsed 8 hledger-libA hledger journal reader is a triple of storage format name, a detector of that format, and a parser from that format to Journal.@ hledger-lib8Run a string parser with no state in the identity monad.A hledger-lib8Run a string parser with no state in the identity monad.B hledger-lib7Run a journal parser with a null journal-parsing state.C hledger-lib7Run a journal parser with a null journal-parsing state.E hledger-lib_Construct a generic start & end line parse position from start and end megaparsec SourcePos's. F hledger-lib@Generate Automatic postings and add them to the current journal.G hledger-libGiven a megaparsec ParsedJournal parser, input options, file path and file content: parse and post-process a Journal, or give an error.M hledger-lib2Get amount style associated with default currency.Returns t used to defined by a latest default commodity directive prior to current position within this file or its parents.N hledger-lib&Lookup currency-specific amount style.Returns g used in commodity directive within current journal prior to current position or in its parents files.Z hledger-libParse a date in YYYYMMDD format. Hyphen (-) and period (.) are also allowed as separators. The year may be omitted if a default year has been set. Leading zeroes may be omitted.[ hledger-libParse a date and time in YYYYMM<DD HH:MM[:SS][+-ZZZZ] format. Hyphen (-) and period (.) are also allowed as date separators. The year may be omitted if a default year has been set. Seconds are optional. The timezone is optional and ignored (the time is always interpreted as a local time). Leading zeroes may be omitted (except in a timezone).] hledger-libParse an account name (plus one following space if present), then apply any parent account prefix and/or account aliases currently in effect, in that order. (Ie first add the parent account prefix, then rewrite with aliases).^ hledger-libYParse an account name, plus one following space if present. Account names start with a non-space, may have single spaces inside them, and are terminated by two or more spaces (or end of input). (Also they have one or more components of at least one character, separated by the account separator character, but we don't check that here.) _ hledger-libParse any text beginning with a non-whitespace character, until a double space or the end of input. Consumes one of the following spaces, if present.` hledger-libOParse one non-newline whitespace character that is not followed by another one.a hledger-libParse whitespace then an amount, with an optional left or right currency symbol and optional price, or return the special "missing" marker amount.b hledger-libParse 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.c hledger-lib/Parse an amount from a string, or get an error.d hledger-lib4Parse a mixed amount from a string, or get an error.$ hledger-libThis is like skipMany but it returns True if at least one element was skipped. This is helpful if you re just using many to check if the resulting list is empty or not.i hledger-libPParse a string representation of a number for its value and display attributes.Some international number formats are accepted, eg either period or comma may be used for the decimal point, and the other of these may be used for separating digit groups in the integer part. See  .http://en.wikipedia.org/wiki/Decimal_separator for more examples.This returns: the parsed numeric value, the precision (number of digits seen following the decimal point), the decimal point character used if any, and the digit group style if any.j hledger-lib+Interpret a raw number as a decimal number.Returns: - the decimal number - the precision (number of digits after the decimal point) - the decimal point character, if any - the digit group style, if any (digit group character and sizes of digit groups)k hledger-libxParse and interpret the structure of a number without external hints. Numbers are digit strings, possibly separated into digit groups by one of two types of separators. (1) Numbers may optionally have a decimal point, which may be either a period or comma. (2) Numbers may optionally contain digit group separators, which must all be either a period, a comma, or a space.It is our task to deduce the identities of the decimal point and digit separator characters, based on the allowed syntax. For instance, we make use of the fact that a decimal point can occur at most once and must succeed all digit group separators.#parseTest rawnumberp "1,234,567.89">Right (WithSeparators ',' ["1","234","567"] (Just ('.',"89")))parseTest rawnumberp "1,000"$Left (AmbiguousNumber "1" ',' "000")parseTest rawnumberp "1 000".Right (WithSeparators ' ' ["1","000"] Nothing)n hledger-libKParse the text of a (possibly multiline) comment following a journal item.o hledger-lib1Parse a transaction comment and extract its tags.The first line of a transaction may be followed by comments, which begin with semicolons and extend to the end of the line. Transaction comments may span multiple lines, but comment lines below the transaction must be preceeded by leading whitespace.20001s1 ; a transaction comment starting on the same line ... ; extending to the next line account1 $1 account2Tags are name-value pairs.let getTags (_,tags) = tags6let parseTags = fmap getTags . rtp transactioncommentp3parseTags "; name1: val1, name2:all this is value2"7Right [("name1","val1"),("name2","all this is value2")]A tag's name must be immediately followed by a colon, without separating whitespace. The corresponding value consists of all the text following the colon up until the next colon or newline, stripped of leading and trailing whitespace.p hledger-lib7Parse a posting comment and extract its tags and dates.Postings may be followed by comments, which begin with semicolons and extend to the end of the line. Posting comments may span multiple lines, but comment lines below the posting must be preceeded by leading whitespace.20001c1 account1 $1 ; a posting comment starting on the same line ... ; extending to the next line:account2 ; a posting comment beginning on the next lineTags are name-value pairs.let getTags (_,tags,_,_) = tags<let parseTags = fmap getTags . rtp (postingcommentp Nothing)3parseTags "; name1: val1, name2:all this is value2"7Right [("name1","val1"),("name2","all this is value2")]A tag's name must be immediately followed by a colon, without separating whitespace. The corresponding value consists of all the text following the colon up until the next colon or newline, stripped of leading and trailing whitespace.Posting dates may be expressed with "date"/"date2" tags or with bracketed date syntax. Posting dates will inherit their year from the transaction date if the year is not specified. We throw parse errors on invalid dates.#let getDates (_,_,d1,d2) = (d1, d2)Blet parseDates = fmap getDates . rtp (postingcommentp (Just 2000))+parseDates "; date: 1/2, date2: 1999/12/31"'Right (Just 2000-01-02,Just 1999-12-31)parseDates "; [1/2=1999/12/31]"'Right (Just 2000-01-02,Just 1999-12-31)cExample: tags, date tags, and bracketed dates >>> rtp (postingcommentp (Just 2000)) "; a:b, date:34, [=56]" Right ("a:b, date:34, [=5@6]n",[("a","b"),("date","3/4")],Just 2000-03-04,Just 2000-05-06)rExample: extraction of dates from date tags ignores trailing text >>> rtp (postingcommentp (Just 2000)) "; date:34=56" Right ("date:34=56n",[("date","34=56")],Just 2000-03-04,Nothing)q hledger-lib#Parse Ledger-style bracketed posting dates ([DATE=DATE2]), as "date" and/or "date2" tags. Anything that looks like an attempt at this (a square-bracketed sequence of 0123456789/-.= containing at least one digit and one date separator) is also parsed, and will throw an appropriate error.The dates are parsed in full here so that errors are reported in the right position. A missing year in DATE can be inferred if a default date is provided. A missing year in DATE2 will be inferred from DATE.Zeither (Left . parseErrorPretty) Right $ rtp (bracketeddatetagsp Nothing) "[2016/1/2=3/4]"0Right [("date",2016-01-02),("date2",2016-03-04)]Oeither (Left . parseErrorPretty) Right $ rtp (bracketeddatetagsp Nothing) "[1]"Left ...not a bracketed date...Weither (Left . parseErrorPretty) Right $ rtp (bracketeddatetagsp Nothing) "[2016/1/32]":Left ...1:11:...well-formed but invalid date: 2016/1/32...Reither (Left . parseErrorPretty) Right $ rtp (bracketeddatetagsp Nothing) "[1/31]"JLeft ...1:6:...partial date 1/31 found, but the current year is unknown...`either (Left . parseErrorPretty) Right $ rtp (bracketeddatetagsp Nothing) "[0123456789/-.=/-.=]")Left ...1:13:...expecting month or day...E-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqE89:;<=-./01234567>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^abcdefghijklmnopq_`%NoneUP% hledger-libParse and post-process a Journal+ from the timedot format, or give an error.& hledger-libKParse timedot day entries to zero or more time transactions for that day. Y 2/1 fos.haskell .... .. biz.research . inc.client1 .... .... .... .... .... .... ' hledger-lib=Parse a single timedot entry to one (dateless) transaction.  fos.haskell .... .. ( hledger-libParse a duration of seconds, minutes, hours, days, weeks, months or years, written as a decimal number followed by s, m, h, d, w, mo or y, assuming h if there is no unit. Returns the duration as hours, assuming 1m = 60s, 1h = 60m, 1d = 24h, 1w = 7d, 1mo = 30d, 1y=365d.  1.5 1.5h 90m ) hledger-libEParse a quantity written as a line of dots, each representing 0.25.  .... .. ~~&NoneU* hledger-libParse and post-process a Journaln from timeclock.el's timeclock format, saving the provided file path and the current time, or give an error.+ hledger-libParse a timeclock entry.'None "#$<NUV , hledger-libParse and post-process a Journal7 from hledger's journal file format, or give an error.- hledger-lib2Get the account name aliases from options, if any. hledger-lib,A journal parser. Accumulates and returns a  ParsedJournal2, which should be finalised/validated before use.)rjp (journalp <* eof) "2015/1/1\n a 0\n".Right Journal with 1 transactions, 1 accounts. hledger-libbA side-effecting parser; parses any kind of journal item and updates the parse state accordingly. hledger-libHParse any journal directive and update the parse state accordingly. Cf  )http://hledger.org/manual.html#directives, =http://ledger-cli.org/3.0/doc/ledger3.html#Command-Directives/ hledger-libfLift an IO action into the exception monad, rethrowing any IO error with the given message prepended.0 hledger-lib3Parse a one-line or multi-line commodity directive.4Right _ <- rjp commoditydirectivep "commodity $1.00"@Right _ <- rjp commoditydirectivep "commodity $\n format $1.00"RRight _ <- rjp commoditydirectivep "commodity $\n\n" -- a commodity with no format\Right _ <- rjp commoditydirectivep "commodity $1.00\n format $1.00" -- both, what happens ?1 hledger-lib%Parse a one-line commodity directive.;Right _ <- rjp commoditydirectiveonelinep "commodity $1.00"DRight _ <- rjp commoditydirectiveonelinep "commodity $1.00 ; blah\n"2 hledger-libRParse a multi-line commodity directive, containing 0 or more format subdirectives.XRight _ <- rjp commoditydirectivemultilinep "commodity $ ; blah \n format $1.00 ; blah"3 hledger-libbParse a format (sub)directive, throwing a parse error if its symbol does not match the one given.4 hledger-libWBacktracking parser similar to string, but allows varying amount of space between words5 hledger-libParse a periodic transaction6 hledger-lib*Parse a (possibly unbalanced) transaction.BCDGRWZ[]mnDGBCR[Z]Wmn(None %;<=FTUV7 7 hledger-libA set of data definitions and account-matching patterns sufficient to convert a particular CSV data file into meaningful journal transactions.8 hledger-libParse and post-process a Journal` from CSV data, or give an error. XXX currently ignores the string and reads from the file path9 hledger-libzRead a Journal from the given CSV data (and filename, used for error messages), or return an error. Proceed as follows:  1. parse CSV conversion rules from the specified rules file, or from the default rules file for the specified CSV file, if it exists, or throw a parse error; if it doesn't exist, use built-in default rules 2. parse the CSV data, or throw a parse error 3. convert the CSV records to transactions using the rules 4. if the rules file didn't exist, create it with the default rules and filename 5. return the transactions as a Journal : hledger-libIReturn the cleaned up and validated CSV data (can be empty), or an error. hledger-libAn error-throwing action that parses this file's content as CSV conversion rules, interpolating any included files first, and runs some extra validation checks. hledger-libInline all files referenced by include directives in this hledger CSV rules text, recursively. Included file paths may be relative to the directory of the provided file path. This is a cheap hack to avoid rewriting the CSV rules parser. hledger-libAn error-throwing action that parses this text as CSV conversion rules and runs some extra validation checks. The file path is for error messages.; hledger-libMParse this text as CSV conversion rules. The file path is for error messages.< hledger-lib(Return the validated rules, or an error.= hledger-libCanonicalise the sign in a CSV amount string. Such strings can have a minus sign, negating parentheses, or any two of these (which cancels out).simplifySign "1""1"simplifySign "-1""-1"simplifySign "(1)""-1"simplifySign "--1""1"simplifySign "-(1)""1"simplifySign "(-1)""1"simplifySign "((1))""1"> hledger-lib;Show a (approximate) recreation of the original CSV record.? hledger-libMGiven the conversion rules, a CSV record and a journal entry field name, find the template value ultimately assigned to this field, either at top level or in a matching conditional block. Conditional blocks' patterns are matched against an approximation of the original CSV record: all the field values with commas intercalated.)NoneV  hledger-lib]A file path optionally prefixed by a reader name and colon (journal:, csv:, timedot:, etc.). hledger-libNRead the default journal file specified by the environment, or raise an error. hledger-lib#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 environment variable. If neither is set, or the value is blank, return the hard-coded default, which is .hledger.journalh in the users's home directory (or in the current directory, if we cannot determine a home directory). hledger-libsIf a filepath is prefixed by one of the reader names and a colon, split that off. Eg "csv:-" -> (Just "csv", "-"). hledger-lib^If the specified journal file does not exist (and is not "-"), give a helpful error and quit. hledger-libREnsure there is a journal file at the given path, creating an empty one if needed.@ hledger-lib5Give the content for a new auto-created journal file. hledger-libQRead a Journal from the given text trying all readers in turn, or throw an error.A hledger-lib findReader mformat mpathFind the reader named by mformato, if provided. Or, if a file path is provided, find the first reader that handles its file extension, if any. hledger-liblRead a Journal from each specified file path and combine them into one. Or, return the first error message.7Combining Journals means concatenating them, basically. The parse state resets at the start of each file, which means that directives & aliases do not affect subsequent sibling or parent files. They do affect included child files though. Also the final parse state saved in the Journal does span all files. hledger-libRead a Journal from this file, or from stdin if the file path is -, or return an error message. The file path can have a READER: prefix.MThe reader (data format) to use is determined from (in priority order): the mformat_ specified in the input options, if any; the file path's READER: prefix, if any; a recognised file name extension. if none of these identify a known reader, all built-in readers are tried in turn.The input options can also configure balance assertion checking, automated posting generation, a rules file for converting CSV data, etc.B hledger-libGet all instances of the latest date in an unsorted list of dates. Ie, if the latest date appears once, return it in a one-element list, if it appears three times (anywhere), return three of it.C hledger-lib[Remember that these transaction dates were the latest seen when reading this journal file.D hledger-lib(What were the latest transaction dates seen the last time this journal file was read ? If there were multiple transactions on the latest date, that number of dates is returned, otherwise just one. Or none if no transactions were read, or if latest dates info is not available for this file.E hledger-libOWhere to save latest transaction dates for the given file path. (.latest.FILE)F hledger-libGiven zero or more latest dates (all the same, representing the latest previously seen transaction date, and how many transactions were seen on that date), remove transactions with earlier dates from the journal, and the same number of transactions on the latest date, if any, leaving only transactions that we can assume are newer. Also returns the new latest dates of the new journal. hledger-lib readJournal iopts mfile txt:Read a Journal from some text, or return an error message.PThe reader (data format) is chosen based on a recognised file name extension in mfile (if provided). If it does not identify a known reader, all built-in readers are tried in turn (returning the first one's error message if none of them succeed).Input ioptions (iopts) specify CSV conversion rules file to help convert CSV data, enable or disable balance assertion checking and automated posting generation.G hledger-lib tryReaders iopts readers path tTry to parse the given text to a Journal using each reader in turn, returning the first success, or if all of them fail, the first error message.Input ioptions (iopts) specify CSV conversion rules file to help convert CSV data, enable or disable balance assertion checking and automated posting generation.R-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopq *None;=V) hledger-lib A simple balance report. It has: 2a list of items, one per account, each containing:the full account namethe Ledger-style elided short account name (the leaf account name, prefixed by any boring parents immediately above); or with --flat, the full account name againthe number of indentation steps for rendering a Ledger-style account tree, taking into account elided boring parents, --no-elide and --flat an amount the total of all amounts hledger-libWhen true (the default), this makes balance --flat reports and their implementation clearer. Single/multi-col balance reports currently aren't all correct if this is false. hledger-lib Enabling this makes balance --flat --empty also show parent accounts without postings, in addition to those with postings and a zero balance. Disabling it shows only the latter. No longer supported, but leave this here for a bit. flatShowsPostinglessAccounts = TrueGenerate a simple balance report, containing the matched accounts and their balances (change of balance) during the specified period. This is like PeriodChangeReport with a single column (but more mature, eg this can do hierarchical display).H hledger-libIn an account tree with zero-balance leaves removed, mark the elidable parent accounts (those with one subaccount and no balance of their own).I hledger-lib0Flip the sign of all amounts in a BalanceReport.+None. hledger-libHfor simplicity, we assume that each cell is rendered on a single line hledger-lib'We stop rendering on the shortest list! hledger-lib pretty tables hledger-libpretty hledger-libmax width for each column hledger-libpretty hledger-libwidth specifications,None;=VGJ hledger-libLA multi balance report is a balance report with one or more columns. It has: *a list of each column's period (date span) a list of rows, each containing:the full account namethe leaf account namethe account's depth&a list of amounts, one for each columnthe total of the row's amounts the average of the row's amounts 3the column totals and the overall total and averageThe meaning of the amounts depends on the type of multi balance report, of which there are three: periodic, cumulative and historical (see  and Hledger.Cli.Commands.Balance). hledger-lib_Generate a multicolumn balance report for the matched accounts, showing the change of balance, accumulated balance, or historical balance in each of the specified periods. Does not support tree-mode boring parent eliding. If the normalbalance_ option is set, it adjusts the sorting and sign of amounts (see ReportOpts and CompoundBalanceCommand). hledger-libGiven a MultiBalanceReport and its normal balance sign, if it is known to be normally negative, convert it to normally positive. hledger-lib5Flip the sign of all amounts in a MultiBalanceReport. hledger-libAFigure out the overall date span of a multicolumn balance report. hledger-lib#Generates a simple non-columnar BalanceReport, but using multiBalanceReport, in order to support --historical. Does not support tree-mode boring parent eliding. If the normalbalance_ option is set, it adjusts the sorting and sign of amounts (see ReportOpts and CompoundBalanceCommand).  -NoneVe"  hledger-libMA budget report tracks expected and actual changes per account and subperiod. hledger-libCalculate budget goals from all periodic transactions, actual balance changes from the regular transactions, and compare these to get a C. Unbudgeted accounts may be hidden or renamed (see budgetRollup). hledger-libUse all periodic transactions in the journal to generate budget transactions in the specified report period. Budget transactions are similar to forecast transactions except their purpose is to set goal amounts (of change) per account and period. hledger-libCAdjust a journal's account names for budget reporting, in two ways: paccounts with no budget goal anywhere in their ancestry are moved under the "unbudgeted" top level account.subaccounts with no budget goal are merged with their closest parent account with a budget goal, so that only budgeted accounts are shown. This can be disabled by --show-unbudgeted. hledger-lib|Combine a per-account-and-subperiod report of budget goals, and one of actual change amounts, into a budget performance report. The two reports should have the same report interval, but need not have exactly the same account rows or date columns. (Cells in the combined budget report can be missing a budget goal, an actual amount, or both.) The combined report will include:fconsecutive subperiods at the same interval as the two reports, spanning the period of both reportslall accounts mentioned in either report, sorted by account code or account name or amount as appropriate. hledger-lib0Figure out the overall period of a BudgetReport. hledger-libARender a budget report as plain text suitable for console output. hledger-libBuild a J$ from a multi-column balance report. hledger-libZDrop leading components of accounts names as specified by --drop, but only in --flat mode.  .None"#1;=ew  !"#$%&'()*+Noneg  "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-.0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abdefghijklmnopqrstuvwxyz{|}~    !"#$%&'()*+,-./0123456789:;EFGKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  !"#$%&'()*+-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopq  "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-.0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abdefghijklmnopqrstuvwxyz{|}~    !"#$%&'()*+,-./0123456789:;EFGKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  !"#$%&'()*+-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqK34567867967:67;67<67=67>67?67@67A67B67C34D34E34F34G34H34I34J34K34L34M34N34O3PQ3PR3PS3PT3PU3PV3WX3WY3WZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./00123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                     0                                                                       !"#$%&'()*+,-./01234567 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=> ? @ A B C D E F G H I J K L!M!N!O!P!Q"R"S"T"U#V$W$W$X$Y$Z$[$\$]$^$_$`$a$a$b$c$d$e$f$g$h$i$j$k$l$m$n$o$p$q$r$s$t$u$v$w$x$y$z${$|$}$~$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%%&&&'''''''((((((((((())))))))))))*****++++++++++++++,,,,,,,,,,,-------------.////////000000 0 3  0 00  !"#$%&'()*+,-./0123456789:;<=>?@ABC D E!F!G!H!I!J!K$L%M%N%O%P%Q&M&R'M'S'T'U'V'W'X'Y'Z'['\(](M(^(_(`(a(b(c(d)e)f)g)h)i)j)k)l*m*nopqr&hledger-lib-1.10-FqAYt0yboj6rHcXZ5x5OpHledgerHledger.Utils.ColorHledger.Utils.UTF8IOCompatHledger.Utils.DebugHledger.Utils.TestHledger.Utils.RegexHledger.Utils.TreeHledger.Data.TypesHledger.Data.PeriodHledger.Utils.ParseHledger.Utils.StringHledger.Utils.Text Hledger.UtilsHledger.Data.RawOptionsHledger.Data.DatesHledger.Data.CommodityHledger.Data.AmountHledger.Data.MarketPriceHledger.Data.AccountNameHledger.Data.PostingHledger.Data.Transaction Hledger.QueryHledger.Data.TimeclockHledger.Data.AutoTransactionHledger.Data.JournalHledger.Data.AccountHledger.Data.LedgerHledger.Data.StringFormat Hledger.DataHledger.Reports.ReportTypesHledger.Reports.ReportOptions#Hledger.Reports.TransactionsReportsHledger.Reports.PostingsReportHledger.Reports.EntriesReport$Hledger.Reports.BalanceHistoryReportHledger.Read.CommonHledger.Read.TimedotReaderHledger.Read.TimeclockReaderHledger.Read.JournalReaderHledger.Read.CsvReader Hledger.ReadHledger.Reports.BalanceReportText.Tabular.AsciiWide#Hledger.Reports.MultiBalanceReportsHledger.Reports.BudgetReportHledger.ReportsPaths_hledger_libText.Megaparsec.CustomHledger.Cli.CliOptionsCliOptsbase Debug.Tracetrace,ansi-terminal-0.8.0.4-4zlOvCKnE9eI77dRbIqIB1System.Console.ANSI.TypesWhiteCyanMagentaBlueYellowGreenRedBlackColorVividDullColorIntensity traceMarkerIO traceMarker traceEventIO traceEvent traceStack traceShowMtraceM traceShowId traceShowtraceId putTraceMsgtraceIO System.IO appendFile writeFilereadFile getContentsputStrLnputStrGHC.IO.Handle.Text hPutStrLnhPutStr hGetContents&pretty-show-1.7-8bRRNOzyOi99X2ErRO7kaoText.Show.PrettyppShowcolorbgColortestName flattenTests filterTestsis assertParseassertParseFailureassertParseEqualprintParseError SystemStringfromSystemStringtoSystemStringerror' userError' usageError ReplacementRegexp regexMatchesregexMatchesCIregexReplaceByregexReplaceByCI regexReplaceregexReplaceCIregexReplaceMemoregexReplaceCIMemoFastTreeTrootsubsbranchesleaves subtreeatsubtreeinforest treeprunetreemap treefiltertreeanyshowtree showforest emptyTree mergeTrees treeFromPath treeFromPaths$fShowFastTree $fEqFastTree $fOrdFastTreeLedgerljournal laccounts NormalSignNormallyPositiveNormallyNegativeAccountanameacode aebalanceasubs anumpostings aibalanceaparentaboring StorageFormat ParsedJournalJournaljparsedefaultyearjparsedefaultcommodityjparseparentaccounts jparsealiasesjparsetimeclockentries jaccounts jcommoditiesjinferredcommodities jmarketprices jmodifiertxns jperiodictxnsjtxnsjfinalcommentlinesjfiles jlastreadtime MarketPricempdate mpcommoditympamountTimeclockEntry tlsourcepostlcode tldatetime tlaccount tldescription TimeclockCode SetBalanceSetRequiredHoursInOutFinalOutPeriodicTransaction ptperiodexpr ptintervalptspanptstatusptcode ptdescription ptcommentpttags ptpostingsModifierTransaction mtvalueexpr mtpostings Transactiontindex tsourcepostdatetdate2tstatustcode tdescriptiontcommentttags tpostingstpreceding_comment_linesGenericSourcePosJournalSourcePosPostingpdatepdate2pstatuspaccountpamountpcommentptypeptagspbalanceassertion ptransactionporiginBalanceAssertionStatusUnmarkedPendingClearedDateTagTagTagValueTagName PostingTypeRegularPostingVirtualPostingBalancedVirtualPosting MixedAmountMixedAmount acommodity aquantityapriceastyle amultiplier CommoditycsymbolcformatCommoditySymbolDigitGroupStyle DigitGroups AmountStyleascommoditysideascommodityspaced asprecisionasdecimalpoint asdigitgroupsPriceNoPrice UnitPrice TotalPriceQuantitySideLR AccountAlias BasicAlias RegexAlias AccountCode AccountNameInterval NoIntervalDaysWeeksMonthsQuartersYears DayOfMonthWeekdayOfMonth DayOfWeek DayOfYearPeriod DayPeriod WeekPeriod MonthPeriod QuarterPeriod YearPeriod PeriodBetween PeriodFromPeriodTo PeriodAllWeekDayMonthDayYearDay MonthWeekYearWeekQuarterMonthYearDateSpan WhichDate PrimaryDate SecondaryDate SmartDatenullperiodictransaction$fNFDataClockTime$fNFDataDateSpan$fDefaultDateSpan$fDefaultPeriod$fNFDataInterval$fDefaultInterval$fNFDataAccountAlias $fNFDataSide$fToMarkupDecimalRaw$fNFDataDigitGroupStyle$fNFDataAmountStyle$fNFDataCommodity$fNFDataAmount $fNFDataPrice$fNFDataMixedAmount$fNFDataPostingType $fShowStatus$fNFDataStatus$fNFDataGenericSourcePos$fNFDataTransaction $fEqPosting$fNFDataPosting$fNFDataModifierTransaction$fNFDataPeriodicTransaction$fNFDataTimeclockCode$fNFDataTimeclockEntry$fNFDataMarketPrice$fNFDataJournal $fEqWhichDate$fShowWhichDate $fEqDateSpan $fOrdDateSpan$fDataDateSpan$fGenericDateSpan $fEqPeriod $fOrdPeriod $fShowPeriod $fDataPeriod$fGenericPeriod $fEqInterval$fShowInterval $fOrdInterval$fDataInterval$fGenericInterval$fEqAccountAlias$fReadAccountAlias$fShowAccountAlias$fOrdAccountAlias$fDataAccountAlias$fGenericAccountAlias$fEqSide $fShowSide $fReadSide $fOrdSide $fDataSide $fGenericSide$fEqDigitGroupStyle$fOrdDigitGroupStyle$fReadDigitGroupStyle$fShowDigitGroupStyle$fDataDigitGroupStyle$fGenericDigitGroupStyle$fEqAmountStyle$fOrdAmountStyle$fReadAmountStyle$fShowAmountStyle$fDataAmountStyle$fGenericAmountStyle$fShowCommodity $fEqCommodity$fDataCommodity$fGenericCommodity $fEqAmount $fOrdAmount $fDataAmount$fGenericAmount $fEqPrice $fOrdPrice $fDataPrice$fGenericPrice$fEqMixedAmount$fOrdMixedAmount$fDataMixedAmount$fGenericMixedAmount$fEqPostingType$fShowPostingType$fDataPostingType$fGenericPostingType $fEqStatus $fOrdStatus$fBoundedStatus $fEnumStatus $fDataStatus$fGenericStatus$fEqGenericSourcePos$fReadGenericSourcePos$fShowGenericSourcePos$fOrdGenericSourcePos$fDataGenericSourcePos$fGenericGenericSourcePos$fEqTransaction$fDataTransaction$fGenericTransaction $fDataPosting$fGenericPosting$fEqModifierTransaction$fDataModifierTransaction$fGenericModifierTransaction$fEqPeriodicTransaction$fDataPeriodicTransaction$fGenericPeriodicTransaction$fEqTimeclockCode$fOrdTimeclockCode$fDataTimeclockCode$fGenericTimeclockCode$fEqTimeclockEntry$fOrdTimeclockEntry$fDataTimeclockEntry$fGenericTimeclockEntry$fEqMarketPrice$fOrdMarketPrice$fDataMarketPrice$fGenericMarketPrice $fEqJournal $fDataJournal$fGenericJournal $fDataAccount$fGenericAccount$fShowNormalSign$fDataNormalSign$fEqNormalSign$fGenericClockTime$fDataClockTime$fDataDecimalRawperiodAsDateSpandateSpanAsPeriodsimplifyPeriodisLastDayOfMonthisStandardPeriod showPeriodshowPeriodMonthAbbrev periodStart periodEnd periodNextperiodPrevious periodNextInperiodPreviousIn periodMoveTo periodGrow periodShrink mondayBeforeyearMonthContainingWeekStartingquarterContainingMonthfirstMonthOfQuarterstartOfFirstWeekInMonth CustomErr JournalParser TextParserSimpleTextParserSimpleStringParserchoice' choiceInState surroundedBy parsewithparsewithStringparseWithStateparseWithState' fromparse parseerrorshowDateParseErrornonspaceisNonNewlineSpacespacenonewline restoflineeolof lowercase uppercasestriplstriprstripchomp stripbrackets elideLeft elideRight formatString underline quoteIfNeededsingleQuoteIfNeeded escapeQuoteswords'unwords' unbracketconcatTopPaddedconcatBottomPadded concatOneLinevConcatLeftAlignedvConcatRightAlignedpadtop padbottompadleftpadright cliptopleftfitto fitStringfitStringMulti padLeftWide padRightWide takeWidthstrWidth stripAnsi charWidth textstrip textlstrip textrstriptextElideRight quoteIfSpacedescapeDoubleQuotes stripquotes textUnbrackettextConcatTopPaddedfitTexttextPadLeftWidetextPadRightWide textTakeWidth textWidthtests_Hledger_Utils_Textpprint traceWithptrace debugLeveldbg0dbg1dbg2dbg3dbg4dbg5dbg6dbg7dbg8dbg9dbg0IOdbg1IOdbg2IOdbg3IOdbg4IOdbg5IOdbg6IOdbg7IOdbg8IOdbg9IO tracePrettyAttracePrettyAtIOlog0 logPrettyAt dbgppshowdbgExitpdbgdbglogfirst3second3third3first4second4third4fourth4first5second5third5fourth5fifth5first6second6third6fourth6fifth6sixth6splitAtElementgetCurrentLocalTimegetCurrentZonedTimeisLeftisRightapplyN expandPath firstJustreadFilePortablyreadFileOrStdinPortablyreadHandlePortablymaximum' sumStrict maximumStrict minimumStrict sequence'mapM'tests_Hledger_Utils $fDefaultBoolRawOptssetopt setboolopt inRawOptsbooloptmaybestringopt stringoptlistofstringopt maybeintoptintoptshowDate showDateSpanshowDateSpanMonthAbbrev getCurrentDaygetCurrentMonthgetCurrentYearelapsedSeconds spanStartspanEnd spansSpan splitSpan daysInSpanspanContainsDateperiodContainsDatespansIntersect spanIntersectspanIntervalIntersectspanDefaultsFrom spansUnion spanUnionparsePeriodExprparsePeriodExpr' maybePeriodfixSmartDateStrfixSmartDateStrEitherfixSmartDateStrEither' fixSmartDateprevday parsedateM parsedate smartdate datesepchars datesepchar isDateSepCharfailIfInvalidYearfailIfInvalidMonthfailIfInvalidDay periodexprp mkdatespan nulldatespannulldate$fShowDateSpannonsimplecommoditycharsisNonsimpleCommodityCharquoteCommoditySymbolIfNeeded commoditycommoditysymbolscommconversionRatetests_Hledger_Data_Commodity amountstyleamountnullamt missingamtnumhrsusdeurgbpat@@amountWithCommodity costOfAmount divideAmountisNegativeAmount isZeroAmountisReallyZeroAmountsetAmountPrecision withPrecisionshowAmountDebugshowAmountWithoutPrice styleAmount showAmount cshowAmountshowAmountWithZeroCommodity maxprecisionmaxprecisionwithpointcanonicaliseAmount amountValue nullmixedamtmissingmixedamtmixednormaliseMixedAmount*normaliseMixedAmountSquashPricesForDisplayamountsfilterMixedAmountfilterMixedAmountByCommoditycostOfMixedAmountdivideMixedAmountaverageMixedAmountsisNegativeMixedAmountisZeroMixedAmountisReallyZeroMixedAmountisReallyZeroMixedAmountCoststyleMixedAmountshowMixedAmount showMixedAmountWithZeroCommodityshowMixedAmountOneLine ltraceamountsetMixedAmountPrecisionshowMixedAmountWithPrecisionshowMixedAmountDebugshowMixedAmountWithoutPricecshowMixedAmountWithoutPrice"showMixedAmountOneLineWithoutPrice#cshowMixedAmountOneLineWithoutPricecanonicaliseMixedAmountmixedAmountValuetests_Hledger_Data_Amount$fNumMixedAmount$fShowMixedAmount $fNumAmount $fShowAmount$fShowMarketPriceshowMarketPricetests_Hledger_Data_MarketPrice acctsepcharacctsepaccountNameComponentsaccountNameFromComponentsaccountLeafNameaccountSummarisedNameaccountNameLevelunbudgetedAccountNameaccountNameDropexpandAccountNamesexpandAccountNametopAccountNamesparentAccountNameparentAccountNamesisAccountNamePrefixOfisSubAccountNameOfsubAccountNamesFromaccountNameTreeFromnullaccountnametreeelideAccountNameclipAccountNameclipOrEllipsifyAccountName escapeNameaccountNameToAccountRegexaccountNameToAccountOnlyRegexaccountRegexToAccountNameisAccountRegextests_Hledger_Data_AccountName nullpostingpostingpostoriginalPosting showPosting showCommentisReal isVirtualisBalancedVirtual hasAmount isAssignmentaccountNamesFromPostings sumPostings removePrices postingDate postingDate2 postingStatustransactionPayeetransactionNotepayeeAndNoteFromDescriptionpostingAllTagstransactionAllTagsrelatedPostingsisPostingInDateSpanisPostingInDateSpan'isEmptyPostingpostingsDateSpanpostingsDateSpan'accountNamePostingTypeaccountNameWithoutPostingTypeaccountNameWithPostingTypejoinAccountNamesconcatAccountNamesaccountNameApplyAliasesaccountNameApplyAliasesMemotests_Hledger_Data_Posting $fShowPostingsourceFilePathsourceFirstLineshowGenericSourcePos nullsourceposnulltransactionshowTransactionshowTransactionUnelided%showTransactionUnelidedOneLineAmountsshowPostingLineshowPostingLinesshowAccountNamehasRealPostings realPostingsassignmentPostingsvirtualPostingsbalancedVirtualPostingstransactionsPostingstransactionPostingBalancesisTransactionBalancedbalanceTransactionbalanceTransactionUpdatetransactionDate2 txnTieKnot txnUntieKnottests_Hledger_Data_Transaction$fShowPeriodicTransaction$fShowModifierTransaction$fShowTransactionQueryOptQueryOptInAcctOnlyQueryOptInAcctQueryAnyNoneNotOrAndCodeDescAcctDateDate2StatusQRealAmtSymEmptyDepth parseQuerywords'' simplifyQuery filterQuery queryIsNull queryIsDepth queryIsDate queryIsDate2queryIsDateOrDate2 queryIsAcct queryIsSym queryIsReal queryIsStatus queryIsEmptyqueryIsStartDateOnlyqueryStartDate queryEndDate queryDateSpanqueryDateSpan' queryDepth inAccountinAccountQuerymatchesAccountmatchesMixedAmount matchesAmountmatchesPostingmatchesTransactiontests_Hledger_Query $fShowQuery$fShowQueryOpt $fEqQueryOpt$fDataQueryOpt $fShowOrdPlus $fEqOrdPlus $fDataOrdPlus $fEqQuery $fDataQuerytimeclockEntriesToTransactionsentryFromTimeclockInOuttests_Hledger_Data_Timeclock$fReadTimeclockCode$fShowTimeclockCode$fShowTimeclockEntryrunModifierTransaction mtvaluequery jdatespanrunPeriodicTransaction!checkPeriodicTransactionStartDateperiodTransactionInterval nulljournaljournalFilePathjournalFilePathsaddTransactionaddModifierTransactionaddPeriodicTransactionaddMarketPricejournalTransactionAtjournalNextTransactionjournalPrevTransactionjournalDescriptionsjournalPostingsjournalAccountNamesUsedjournalAccountNamesImpliedjournalAccountNamesDeclared!journalAccountNamesDeclaredOrUsed$journalAccountNamesDeclaredOrImpliedjournalAccountNames journalProfitAndLossAccountQueryjournalIncomeAccountQueryjournalExpenseAccountQueryjournalBalanceSheetAccountQueryjournalAssetAccountQueryjournalLiabilityAccountQueryjournalEquityAccountQueryjournalCashAccountQueryfilterJournalTransactionsfilterJournalPostingsfilterJournalAmountsfilterTransactionAmountsfilterPostingAmountfilterTransactionPostingsjournalFinalisejournalNumberAndTieTransactionsjournalUntieTransactionsjournalCheckBalanceAssertionsjournalBalanceTransactionsjournalApplyCommodityStylesjournalCommodityStylescommodityStylesFromAmountscanonicalStyleFromjournalConvertAmountsToCostjournalAmountsoverJournalAmountstraverseJournalAmountsjournalDateSpan journalPivot matchpats samplejournaltests_Hledger_Data_Journal$fMonoidJournal$fSemigroupJournal $fShowJournalnullacctaccountsFromPostingsnameTreeToAccounttieAccountParentsaccountSetCodeFromparentAccountsaccountsLevels mapAccounts anyAccounts sumAccounts clipAccountsclipAccountsAndAggregate pruneAccountsflattenAccountsfilterAccountssortAccountTreeByAmount#sortAccountTreeByAccountCodeAndNameaccountCodeAndNameForSort lookupAccount printAccounts showAccountsshowAccountsBoringFlagshowAccountDebugtests_Hledger_Data_Account $fEqAccount $fShowAccount nullledgerledgerFromJournalledgerAccountNames ledgerAccountledgerRootAccountledgerTopAccountsledgerLeafAccountsledgerAccountsMatchingledgerPostingsledgerDateSpanledgerCommoditiestests_ledgerFromJournaltests_Hledger_Data_Ledger $fShowLedgerReportItemField AccountFieldDefaultDateFieldDescriptionField TotalFieldDepthSpacerFieldFieldNoStringFormatComponent FormatLiteral FormatField StringFormatOneLine TopAligned BottomAlignedparseStringFormatdefaultStringFormatStyletests_Hledger_Data_StringFormat$fShowReportItemField$fEqReportItemField$fShowStringFormatComponent$fEqStringFormatComponent$fShowStringFormat$fEqStringFormattests_Hledger_DataPeriodicReportRowPeriodicReportAverageTotalBalanceChange Percentage$fShowPeriodicReport ReportOptsperiod_ interval_ statuses_cost_depth_display_date2_empty_ no_elide_real_format_query_average_related_ balancetype_accountlistmode_drop_ row_total_ no_total_value_pretty_tables_ sort_amount_invert_normalbalance_color_ forecast_AccountListMode ALDefaultALTreeALFlat BalanceType PeriodChangeCumulativeChangeHistoricalBalance FormatStr defreportoptsrawOptsToReportOptscheckReportOptsintervalFromRawOptssimplifyStatusesreportOptsToggleStatustransactionDateFn postingDateFnwhichDateFromOptstree_flat_journalSelectingAmountFromOpts queryFromOptsqueryFromOptsOnlyqueryOptsFromOpts reportSpanreportStartDate reportEndDatespecifiedStartEndDatesspecifiedStartDatespecifiedEndDate#tests_Hledger_Reports_ReportOptions$fDefaultBalanceType$fDefaultAccountListMode$fDefaultReportOpts$fEqBalanceType$fShowBalanceType$fDataBalanceType$fEqAccountListMode$fShowAccountListMode$fDataAccountListMode$fShowReportOpts$fDataReportOptsAccountTransactionsReportItemAccountTransactionsReportTransactionsReportItemTransactionsReporttriOrigTransactiontriDate triAmount triBalancetriCommodityAmounttriCommodityBalancejournalTransactionsReportaccountTransactionsReporttransactionRegisterDatetransactionsReportByCommodityPostingsReportItemPostingsReportpostingsReportmkpostingsReportItem$tests_Hledger_Reports_PostingsReportEntriesReportItem EntriesReport entriesReport#tests_Hledger_Reports_EntriesReportaccountBalanceHistory InputOptsmformat_ mrules_file_aliases_anon_ignore_assertions_new_ new_save_pivot_auto_ReaderrFormat rExtensionsrParser rExperimental definputoptsrawOptsToInputOpts runTextParserrtprunJournalParserrjpgenericSourcePosjournalSourcePosgenerateAutomaticPostingsparseAndFinaliseJournalparseAndFinaliseJournal'setYeargetYearsetDefaultCommodityAndStylegetDefaultCommodityAndStylegetDefaultAmountStylegetAmountStyle pushAccountpushParentAccountpopParentAccountgetParentAccountaddAccountAliasgetAccountAliasesclearAccountAliasesjournalAddFilestatuspcodep descriptionpdatep datetimepsecondarydatepmodifiedaccountnamep accountnamepsinglespacedtextp singlespacepspaceandamountormissingpamountpamountp' mamountp'commoditysymbolp priceamountppartialbalanceassertionpfixedlotpricepnumberp fromRawNumber rawnumberpmultilinecommentpemptyorcommentlinepfollowingcommentptransactioncommentppostingcommentpbracketeddatetagsp$fDefaultInputOpts $fShowReader$fMonoidDigitGrp$fSemigroupDigitGrp$fShowDigitGrp$fShowInputOpts$fDataInputOpts $fEqDigitGrp$fShowRawNumber $fEqRawNumber$fShowAmbiguousNumber$fEqAmbiguousNumberreader timedotfilep tests_Hledger_Read_TimedotReadertimeclockfilep"tests_Hledger_Read_TimeclockReaderjournalp directivepdefaultyeardirectivepmarketpricedirectiveppostingp tests_Hledger_Read_JournalReader CsvRecord rulesFileForparseRulesFileexpandIncludesparseAndValidateCsvRulestransactionFromCsvRecordtests_Hledger_Read_CsvReader$fShowErrorComponent[]$fShowCsvRules $fEqCsvRulesPrefixedFilePathdefaultJournaldefaultJournalPathsplitReaderPrefixrequireJournalFileExistsensureJournalFileExists readJournal'readJournalFilesreadJournalFile readJournaltests_Hledger_ReadBalanceReportItem BalanceReportflatShowsExclusiveBalance balanceReport#tests_Hledger_Reports_BalanceReportrender verticalBarleftBarrightBarmidBar doubleMidBar horizontalBardoubleHorizontalBar renderColumns renderHLine doubleCrossdoubleVerticalCrosscross renderHLine'MultiBalanceReportRowMultiBalanceReportmultiBalanceReportmbrNormaliseSign mbrNegatemultiBalanceReportSpan#balanceReportFromMultiBalanceReport tableAsText(tests_Hledger_Reports_MultiBalanceReport$fShowMultiBalanceReport BudgetReport BudgetAverage BudgetTotal BudgetGoal budgetReport budgetJournal budgetRollUpcombineBudgetAndActualbudgetReportSpanbudgetReportAsTextbudgetReportAsTablemaybeAccountNameDrop"tests_Hledger_Reports_BudgetReporttests_Hledger_Reports tests_HledgertoRegex replaceAllByversion getBinDir getLibDir getDynLibDir getDataDir getLibexecDir getSysconfDirgetDataFileName text-1.2.3.0Data.Text.InternalText ErrorFailAtErrorWithSource'megaparsec-6.5.0-4VKBtSFJhna3iLscGKIZAPText.Megaparsecregion parseErrorAtparseErrorAtRegion withSourcecustomParseErrorPrettyText.Megaparsec.ErrorparseErrorPrettycustomParseErrorPretty'GHC.BaseString selectLine expandTabcustomParseErrorPretty_ isEmptySpanspanFromSmartDatenthdayofyearcontainingnthdayofmonthcontainingnthdayofweekcontainingnthweekdayofmonthcontainingadvancetonthweekday smartdateonlydoubledatespanpsimilarAmountsOpshowAmountWithPrecisioncshowAmountWithoutPrice!showAmountWithoutPriceOrCommodityshowamountquantitypunctuatenumbercommodityValue sumSimilarAmountsUsingFirstPriceinferBalancingAmountinferBalancingPricespriceInferrerForpostingSetTransactionparseQueryTerm parseStatus parseBoolqueryDateSpansqueryDateSpans'earliestMaybeDatelatestMaybeDateearliestMaybeDate'latestMaybeDate'compareMaybeDates compareAmount matchesTagstdatesEnvCurrentBalancesModifierjournalNumberTransactionsjournalTieTransactionscheckBalanceAssertionjournalBalanceTransactionsSTdiscriminateByDatecheckInferAndRegisterAmountsaddAmountAndCheckBalance setBalance addToBalancestoreTransaction liftModifierjournalInferCommodityStylestransactionPivot postingPivot checkRawOptsstatusesFromRawOptsaccountTransactionsReportItemssummarisePostingAccountsSummaryPostingadjustReportDatesmatchedPostingsBeforeAndDuringpostingsReportItemssummarisePostingsByIntervalsummarisePostingsInDateSpan skipMany'parse timedotdayp timedotentryptimedotnumericp timedotdotsptimeclockentrypaliasesFromOptsaddJournalItemPorRethrowIOErrorcommoditydirectivepcommoditydirectiveonelinepcommoditydirectivemultilinepformatdirectivep keywordspperiodictransactionp transactionpCsvRulesreadJournalFromCsv validateCsv parseCsvRules validateRules simplifySign showRecordgetEffectiveAssignmentnewJournalContent findReader latestDatessaveLatestDatespreviousLatestDateslatestDatesFileForjournalFilterSinceLatestDates tryReadersmarkBoringParentAccountsbrNegate&tabular-0.2.2.7-HF2IJKR6TJrGdD2ud3QwlY Text.TabularTable