-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Command-line interface for the hledger accounting system
--   
--   The command-line interface for the hledger accounting system. Its
--   basic function is to read a plain text file describing financial
--   transactions and produce useful reports.
--   
--   hledger is a robust, cross-platform set of tools for tracking money,
--   time, or any other commodity, using double-entry accounting and a
--   simple, editable file format, with command-line, terminal and web
--   interfaces. It is a Haskell rewrite of Ledger, and one of the leading
--   implementations of Plain Text Accounting. Read more at:
--   <a>https://hledger.org</a>
@package hledger
@version 1.30.1


-- | Instances for anonymizing sensitive data in various types.
--   
--   Note that there is no clear way to anonymize numbers.
module Hledger.Cli.Anon
class Anon a

-- | Consistent converter to structure with sensitive data anonymized
anon :: Anon a => a -> a

-- | Anonymize account name preserving hierarchy
anonAccount :: AccountName -> AccountName
instance Hledger.Cli.Anon.Anon Hledger.Data.Types.Journal
instance Hledger.Cli.Anon.Anon Hledger.Data.Types.Posting
instance Hledger.Cli.Anon.Anon Hledger.Data.Types.Transaction
instance Hledger.Cli.Anon.Anon Data.Text.Internal.Text


-- | Embedded documentation files in various formats, and helpers for
--   viewing them.
--   
--   |
module Hledger.Cli.DocFiles
type Topic = String

-- | Print plain text help for this tool. Takes an optional topic argument
--   for convenience but it is currently ignored.
printHelpForTopic :: Tool -> Maybe Topic -> IO ()

-- | Display a man page for this tool, scrolled to the given topic if
--   provided, using the "man" executable in $PATH. Note when a topic is
--   provided we force man to use the "less" executable in $PATH, ignoring
--   $MANPAGER and $PAGER.
runManForTopic :: Tool -> Maybe Topic -> IO ()

-- | Display an info manual for this topic, opened at the given topic if
--   provided, using the "info" executable in $PATH.
runInfoForTopic :: Tool -> Maybe Topic -> IO ()

-- | Display plain text help for this tool, scrolled to the given topic if
--   provided, using the given pager executable. Note when a topic is
--   provided we ignore the provided pager and use the "less" executable in
--   $PATH.
runPagerForTopic :: Tool -> Maybe Topic -> IO ()

module Hledger.Cli.Version
type ProgramName = String
type PackageVersion = String
type VersionString = String

-- | The "1.30.1" string defined with -D in this package's
--   package.yaml/.cabal file (by Shake setversion), if any. Normally a
--   dotted number string with 1-3 components.
packageversion :: PackageVersion

-- | The name of this package's main executable.
progname :: ProgramName

-- | Given possible git state info from the build directory (or an error
--   message, which is ignored), the name of a program (executable) in the
--   currently building package, and the package's version, make a complete
--   version string. Here is the logic:
--   
--   <ul>
--   <li>Program name, OS and architecture are always shown.</li>
--   <li>The package version is always shown.</li>
--   <li>If there is git info at build time, the latest commit hash and
--   commit date are shown, and (TODO, requires githash to use -uno for
--   giDirty): if the working copy has uncommitted changes a + sign is
--   appended.</li>
--   <li>(TODO, requires adding --match support to githash: If there are
--   tags matching THISPKG-[0-9]*, the latest one is used to calculate
--   patch level (number of commits since tag), and if non-zero, it and the
--   branch name are shown.)</li>
--   </ul>
--   
--   Some example outputs:
--   
--   <ul>
--   <li>A homebrew binary, not built in git repo: hledger-ui 1.24,
--   mac-aarch64</li>
--   <li>A CI release build, built in git repo at release tag: hledger-ui
--   1.24.1-g455b35293-20211210, mac-x86_64</li>
--   <li>(TODO) A dev build, built in git repo: hledger-ui
--   1.24.1+1-g4abd8ef10-20211210 (1.24-branch), mac-x86_64</li>
--   </ul>
--   
--   This function requires git log to show the default (rfc2822-style)
--   date format, so that must not be overridden by a log.date git config
--   variable.
versionStringWith :: Either String GitInfo -> ProgramName -> PackageVersion -> VersionString


-- | Common cmdargs modes and flags, a command-line options type, and
--   related utilities used by hledger commands.
module Hledger.Cli.CliOptions

-- | Common help flags: --help, --debug, --version...
helpflags :: [Flag RawOpts]

-- | A hidden flag just for the hledger executable.
detailedversionflag :: Flag RawOpts

-- | Flags for selecting flat/tree mode, used for reports organised by
--   account. With a True argument, shows some extra help about
--   inclusive/exclusive amounts.
flattreeflags :: Bool -> [Flag RawOpts]

-- | Common flags that are accepted but not shown in --help, such as
--   --effective, --aux-date.
hiddenflags :: [Flag RawOpts]

-- | Common input-related flags: --file, --rules-file, --alias...
inputflags :: [Flag RawOpts]

-- | Common report-related flags: --period, --cost, etc.
reportflags :: [Flag RawOpts]

-- | Common output-related flags: --output-file, --output-format...
outputFormatFlag :: [String] -> Flag RawOpts
outputFileFlag :: Flag RawOpts
generalflagsgroup1 :: (String, [Flag RawOpts])
generalflagsgroup2 :: (String, [Flag RawOpts])
generalflagsgroup3 :: (String, [Flag RawOpts])

-- | An empty cmdargs mode to use as a template. Modes describe the
--   top-level command, ie the program, or a subcommand, telling cmdargs
--   how to parse a command line and how to generate the command's usage
--   text.
defMode :: Mode RawOpts

-- | A cmdargs mode suitable for a hledger built-in command with the given
--   names (primary name + optional aliases). The usage message shows
--   [QUERY] as argument.
defCommandMode :: [Name] -> Mode RawOpts

-- | A cmdargs mode representing the hledger add-on command with the given
--   name, providing hledger's common input<i>reporting</i>help flags. Just
--   used when invoking addons.
addonCommandMode :: Name -> Mode RawOpts

-- | Build a cmdarg mode for a hledger command, from a help template and
--   flag/argument specifications. Reduces boilerplate a little, though the
--   complicated cmdargs flag and argument specs are still required.
hledgerCommandMode :: CommandDoc -> [Flag RawOpts] -> [(String, [Flag RawOpts])] -> [Flag RawOpts] -> ([Arg RawOpts], Maybe (Arg RawOpts)) -> Mode RawOpts
argsFlag :: FlagHelp -> Arg RawOpts

-- | Get a mode's usage message as a nicely wrapped string.
showModeUsage :: Mode a -> String

-- | Add command aliases to the command's help string.
withAliases :: String -> [String] -> String

-- | Get all sorted unique filenames in the current user's PATH. We do not
--   currently filter out non-file objects or files without execute
--   permission.
likelyExecutablesInPath :: IO [String]

-- | Get the sorted unique filenames of all hledger-* executables in the
--   current user's PATH. These are files in any of the PATH directories,
--   named hledger-*, with either no extension (and no periods in the name)
--   or one of the addonExtensions. We do not currently filter out non-file
--   objects or files without execute permission.
hledgerExecutablesInPath :: IO [String]

-- | Convert an argument-less --debug flag to --debug=1 in the given
--   arguments list. Used by hledger<i>ui</i>web to make their command line
--   parsing easier somehow.
ensureDebugHasArg :: (Eq (t Char), IsString (t Char), Foldable t) => [t Char] -> [t Char]

-- | Command line options, used in the <tt>hledger</tt> package and above.
--   This is the "opts" used throughout hledger CLI code. representing the
--   options and arguments that were provided at startup on the
--   command-line.
data CliOpts
CliOpts :: RawOpts -> String -> [FilePath] -> InputOpts -> ReportSpec -> Maybe FilePath -> Maybe String -> Int -> Bool -> Maybe String -> Int -> POSIXTime -> CliOpts
[rawopts_] :: CliOpts -> RawOpts
[command_] :: CliOpts -> String
[file_] :: CliOpts -> [FilePath]
[inputopts_] :: CliOpts -> InputOpts
[reportspec_] :: CliOpts -> ReportSpec
[output_file_] :: CliOpts -> Maybe FilePath
[output_format_] :: CliOpts -> Maybe String

-- | debug level, set by <tt>--debug[=N]</tt>. See also <a>debugLevel</a>.
[debug_] :: CliOpts -> Int
[no_new_accounts_] :: CliOpts -> Bool

-- | the --width value provided, if any
[width_] :: CliOpts -> Maybe String

-- | estimated usable screen width, based on 1. the COLUMNS env var, if set
--   2. the width reported by the terminal, if supported 3. the default
--   (80)
[available_width_] :: CliOpts -> Int
[progstarttime_] :: CliOpts -> POSIXTime
class HasCliOpts c_acd4
cliOpts :: HasCliOpts c_acd4 => Lens' c_acd4 CliOpts
available_width :: HasCliOpts c_acd4 => Lens' c_acd4 Int
command :: HasCliOpts c_acd4 => Lens' c_acd4 String
debug__ :: HasCliOpts c_acd4 => Lens' c_acd4 Int
file__ :: HasCliOpts c_acd4 => Lens' c_acd4 [FilePath]
inputopts :: HasCliOpts c_acd4 => Lens' c_acd4 InputOpts
no_new_accounts :: HasCliOpts c_acd4 => Lens' c_acd4 Bool
output_file :: HasCliOpts c_acd4 => Lens' c_acd4 (Maybe FilePath)
output_format :: HasCliOpts c_acd4 => Lens' c_acd4 (Maybe String)
progstarttime :: HasCliOpts c_acd4 => Lens' c_acd4 POSIXTime
rawopts__ :: HasCliOpts c_acd4 => Lens' c_acd4 RawOpts
reportspec :: HasCliOpts c_acd4 => Lens' c_acd4 ReportSpec
width__ :: HasCliOpts c_acd4 => Lens' c_acd4 (Maybe String)
defcliopts :: CliOpts
getHledgerCliOpts :: Mode RawOpts -> IO CliOpts

-- | A helper for addon commands: this parses options and arguments from
--   the current command line using the given hledger-style cmdargs mode,
--   and returns a CliOpts. Or, with --help or -h present, it prints long
--   or short help, and exits the program. When --debug is present, also
--   prints some debug output. Note this is not used by the main hledger
--   executable.
--   
--   The help texts are generated from the mode. Long help includes the
--   full usage description generated by cmdargs (including all supported
--   options), framed by whatever pre- and postamble text the mode
--   specifies. It's intended that this forms a complete help document or
--   manual.
--   
--   Short help is a truncated version of the above: the preamble and the
--   first part of the usage, up to the first line containing "flags:"
--   (normally this marks the start of the common hledger flags); plus a
--   mention of --help and the (presumed supported) common hledger options
--   not displayed.
--   
--   Tips: Empty lines in the pre/postamble are removed by cmdargs; add a
--   space character to preserve them.
getHledgerCliOpts' :: Mode RawOpts -> [String] -> IO CliOpts

-- | Parse raw option string values to the desired final data types. Any
--   relative smart dates will be converted to fixed dates based on today's
--   date. Parsing failures will raise an error. Also records the terminal
--   width, if supported.
rawOptsToCliOpts :: RawOpts -> IO CliOpts
outputFormats :: [String]
defaultOutputFormat :: String

-- | A command's documentation. Used both as part of CLI help, and as part
--   of the hledger manual. See parseCommandDoc.
type CommandDoc = String

-- | Get the (tilde-expanded, absolute) journal file path from 1. options,
--   2. an environment variable, or 3. the default. Actually, returns one
--   or more file paths. There will be more than one if multiple -f options
--   were provided. File paths can have a READER: prefix naming a
--   reader/data format.
journalFilePathFromOpts :: CliOpts -> IO [String]

-- | Get the (tilde-expanded) rules file path from options, if any.
rulesFilePathFromOpts :: CliOpts -> IO (Maybe FilePath)

-- | Get the expanded, absolute output file path specified by an
--   -o/--output-file options, or nothing, meaning stdout.
outputFileFromOpts :: CliOpts -> IO (Maybe FilePath)

-- | Get the output format from the --output-format option, otherwise from
--   a recognised file extension in the --output-file option, otherwise the
--   default (txt).
outputFormatFromOpts :: CliOpts -> String

-- | Default width for hledger console output, when not otherwise
--   specified.
defaultWidth :: Int

-- | Replace any numeric flags (eg -2) with their long form (--depth 2), as
--   I'm guessing cmdargs doesn't support this directly.
replaceNumericFlags :: [String] -> [String]

-- | Get the width in characters to use for the register command's console
--   output, and also the description column width if specified (following
--   the main width, comma-separated). The widths will be as follows: <tt>
--   no --width flag - overall width is the available width (COLUMNS, or
--   posix terminal width, or 80); description width is unspecified (auto)
--   --width W - overall width is W, description width is auto --width W,D
--   - overall width is W, description width is D </tt> Will raise a parse
--   error for a malformed --width argument.
registerWidthsFromOpts :: CliOpts -> (Int, Maybe Int)

-- | Get the sorted unique canonical names of hledger addon commands found
--   in the current user's PATH. These are used in command line parsing and
--   to display the commands list.
--   
--   Canonical addon names are the filenames of hledger-* executables in
--   PATH, without the "hledger-" prefix, and without the file extension
--   except when it's needed for disambiguation (see below).
--   
--   When there are exactly two versions of an executable (same base name,
--   different extensions) that look like a source and compiled pair (one
--   has .exe, .com, or no extension), the source version will be excluded
--   (even if it happens to be newer). When there are three or more
--   versions (or two versions that don't look like a source/compiled
--   pair), they are all included, with file extensions intact.
hledgerAddons :: IO [String]

-- | Get the most appropriate documentation topic for a mode. Currently,
--   that is either the hledger, hledger-ui or hledger-web manual.
topicForMode :: Mode a -> Topic
instance Hledger.Cli.CliOptions.HasCliOpts Hledger.Cli.CliOptions.CliOpts
instance Hledger.Read.InputOptions.HasInputOpts Hledger.Cli.CliOptions.CliOpts
instance Hledger.Reports.ReportOptions.HasReportSpec Hledger.Cli.CliOptions.CliOpts
instance Hledger.Data.Balancing.HasBalancingOpts Hledger.Cli.CliOptions.CliOpts
instance Hledger.Reports.ReportOptions.HasReportOptsNoUpdate Hledger.Cli.CliOptions.CliOpts
instance Hledger.Reports.ReportOptions.HasReportOpts Hledger.Cli.CliOptions.CliOpts
instance GHC.Show.Show Hledger.Cli.CliOptions.CliOpts
instance Data.Default.Class.Default Hledger.Cli.CliOptions.CliOpts


-- | Utilities for top-level modules and ghci. See also Hledger.Read and
--   Hledger.Utils.
module Hledger.Cli.Utils

-- | Standard error message for a bad output format specified with -O/-o.
unsupportedOutputFormatError :: String -> String

-- | Parse the user's specified journal file(s) as a Journal, maybe apply
--   some transformations according to options, and run a hledger command
--   with it. Or, throw an error.
withJournalDo :: CliOpts -> (Journal -> IO a) -> IO a

-- | Write some output to stdout or to a file selected by --output-file. If
--   the file exists it will be overwritten.
writeOutput :: CliOpts -> String -> IO ()

-- | Write some output to stdout or to a file selected by --output-file. If
--   the file exists it will be overwritten. This function operates on Lazy
--   Text values.
writeOutputLazyText :: CliOpts -> Text -> IO ()

-- | Apply some extra post-parse transformations to the journal, if
--   specified by options. These happen after journal validation, but
--   before report calculation. They include:
--   
--   <ul>
--   <li>adding forecast transactions (--forecast)</li>
--   <li>pivoting account names (--pivot)</li>
--   <li>anonymising (--anonymise).</li>
--   </ul>
--   
--   This will return an error message if the query in any auto posting
--   rule fails to parse, or the generated transactions are not balanced.
journalTransform :: CliOpts -> Journal -> Journal

-- | Re-read the journal file(s) specified by options, applying any
--   transformations specified by options. Or return an error string. Reads
--   the full journal, without filtering.
journalReload :: CliOpts -> ExceptT String IO Journal

-- | Re-read the option-specified journal file(s), but only if any of them
--   has changed since last read. (If the file is standard input, this will
--   either do nothing or give an error, not tested yet). Returns a journal
--   or error message, and a flag indicating whether it was re-read or not.
--   Like withJournalDo and journalReload, reads the full journal, without
--   filtering.
journalReloadIfChanged :: CliOpts -> Day -> Journal -> ExceptT String IO (Journal, Bool)

-- | Has the specified file changed since the journal was last read ?
--   Typically this is one of the journal's journalFilePaths. These are not
--   always real files, so the file's existence is tested first; for
--   non-files the answer is always no.
journalFileIsNewer :: Journal -> FilePath -> IO Bool

-- | Attempt to open a web browser on the given url, all platforms.
openBrowserOn :: String -> IO ExitCode

-- | Back up this file with a (incrementing) numbered suffix, then
--   overwrite it with this new text, or give an error.
writeFileWithBackup :: FilePath -> String -> IO ()

-- | Back up this file with a (incrementing) numbered suffix then overwrite
--   it with this new text, or give an error, but only if the text is
--   different from the current file contents, and return a flag indicating
--   whether we did anything.
--   
--   The given text should have unix line endings (n); the existing file
--   content will be normalised to unix line endings before comparing the
--   two. If the file is overwritten, the new file will have the current
--   system's native line endings (n on unix, rn on windows). This could be
--   different from the file's previous line endings, if working with a DOS
--   file on unix or vice-versa.
writeFileWithBackupIfChanged :: FilePath -> Text -> IO Bool
readFileStrictly :: FilePath -> IO Text

-- | Apply the pivot transformation on a journal, if option is present.
pivotByOpts :: CliOpts -> Journal -> Journal

-- | Apply the anonymisation transformation on a journal, if option is
--   present
anonymiseByOpts :: CliOpts -> Journal -> Journal
journalSimilarTransaction :: CliOpts -> Journal -> Text -> Maybe Transaction

-- | Render a <a>PostingsReport</a> or <a>AccountTransactionsReport</a> as
--   Text, determining the appropriate starting widths and increasing as
--   necessary.
postingsOrTransactionsReportAsText :: Bool -> CliOpts -> (Int -> Int -> (a, [WideBuilder], [WideBuilder]) -> Builder) -> (a -> MixedAmount) -> (a -> MixedAmount) -> [a] -> Builder
tests_Cli_Utils :: TestTree

module Hledger.Cli.Commands.Tags
tagsmode :: Mode RawOpts
tags :: CliOpts -> Journal -> IO ()


-- | Print some statistics for the journal.
module Hledger.Cli.Commands.Stats
statsmode :: Mode RawOpts

-- | Print various statistics for the journal.
stats :: CliOpts -> Journal -> IO ()


-- | The <tt>roi</tt> command prints internal rate of return and
--   time-weighted rate of return for and investment.
module Hledger.Cli.Commands.Roi
roimode :: Mode RawOpts
roi :: CliOpts -> Journal -> IO ()
instance GHC.Show.Show Hledger.Cli.Commands.Roi.OneSpan


-- | A ledger-compatible <tt>register</tt> command.
module Hledger.Cli.Commands.Register
registermode :: Mode RawOpts

-- | Print a (posting) register report.
register :: CliOpts -> Journal -> IO ()

-- | Render a register report as plain text suitable for console output.
postingsReportAsText :: CliOpts -> PostingsReport -> Text

-- | Render one register report line item as plain text. Layout is like so:
--   <tt> <a>width (specified, terminal width, or 80)
--   --------------------</a> date (10) description account amount (12)
--   balance (12) DDDDDDDDDD dddddddddddddddddddd aaaaaaaaaaaaaaaaaaa
--   AAAAAAAAAAAA AAAAAAAAAAAA </tt> If description's width is specified,
--   account will use the remaining space. Otherwise, description and
--   account divide up the space equally.
--   
--   With a report interval, the layout is like so: <tt> <a>width
--   (specified, terminal width, or 80) --------------------</a> date (21)
--   account amount (12) balance (12) DDDDDDDDDDDDDDDDDDDDD
--   aaaaaaaaaaaaaaaaaaaaaaaaaaaaa AAAAAAAAAAAA AAAAAAAAAAAA </tt>
--   
--   date and description are shown for the first posting of a transaction
--   only.
--   
--   Returns a string which can be multi-line, eg if the running balance
--   has multiple commodities. Does not yet support formatting control like
--   balance reports.
--   
--   Also returns the natural width (without padding) of the amount and
--   balance fields.
postingsReportItemAsText :: CliOpts -> Int -> Int -> (PostingsReportItem, [WideBuilder], [WideBuilder]) -> Builder
tests_Register :: TestTree


-- | A ledger-compatible <tt>print</tt> command.
module Hledger.Cli.Commands.Print
printmode :: Mode RawOpts

-- | Print journal transactions in standard format.
print' :: CliOpts -> Journal -> IO ()
originalTransaction :: Transaction -> Transaction

module Hledger.Cli.Commands.Rewrite
rewritemode :: Mode RawOpts
rewrite :: CliOpts -> Journal -> IO ()
instance Data.Traversable.Traversable Hledger.Cli.Commands.Rewrite.DiffLine
instance Data.Foldable.Foldable Hledger.Cli.Commands.Rewrite.DiffLine
instance GHC.Base.Functor Hledger.Cli.Commands.Rewrite.DiffLine
instance GHC.Show.Show a => GHC.Show.Show (Hledger.Cli.Commands.Rewrite.DiffLine a)

module Hledger.Cli.Commands.Prices
pricesmode :: Mode RawOpts
prices :: CliOpts -> Journal -> IO ()


-- | The <tt>payees</tt> command lists all unique payees (description part
--   before a |) seen in transactions, sorted alphabetically.
module Hledger.Cli.Commands.Payees

-- | Command line options for this command.
payeesmode :: Mode RawOpts

-- | The payees command.
payees :: CliOpts -> Journal -> IO ()


-- | The <tt>notes</tt> command lists all unique notes (description part
--   after a |) seen in transactions, sorted alphabetically.
module Hledger.Cli.Commands.Notes

-- | Command line options for this command.
notesmode :: Mode RawOpts

-- | The notes command.
notes :: CliOpts -> Journal -> IO ()


-- | The help command.
--   
--   |
module Hledger.Cli.Commands.Help
helpmode :: Mode RawOpts

-- | Display the hledger manual in various formats. You can select a docs
--   viewer with one of the `--info`, `--man`, `--pager` flags. Otherwise
--   it will use the first available of: info, man, $PAGER, less, stdout
--   (and always stdout if output is non-interactive).
help' :: CliOpts -> Journal -> IO ()


-- | The <tt>files</tt> command lists included files.
module Hledger.Cli.Commands.Files

-- | Command line options for this command.
filesmode :: Mode RawOpts

-- | The files command.
files :: CliOpts -> Journal -> IO ()


-- | The <tt>diff</tt> command compares two diff.
module Hledger.Cli.Commands.Diff

-- | Command line options for this command.
diffmode :: Mode RawOpts

-- | The diff command.
diff :: CliOpts -> Journal -> IO ()
instance GHC.Show.Show Hledger.Cli.Commands.Diff.PostingWithPath
instance GHC.Classes.Eq Hledger.Cli.Commands.Diff.PostingWithPath


-- | The <tt>descriptions</tt> command lists all unique descriptions seen
--   in transactions, sorted alphabetically.
module Hledger.Cli.Commands.Descriptions

-- | Command line options for this command.
descriptionsmode :: Mode RawOpts

-- | The descriptions command.
descriptions :: CliOpts -> Journal -> IO ()


-- | The <tt>demo</tt> command lists and plays small hledger demos in the
--   terminal, using asciinema.
module Hledger.Cli.Commands.Demo

-- | Command line options for this command.
demomode :: Mode RawOpts

-- | The demo command.
demo :: CliOpts -> Journal -> IO ()


-- | The <tt>commodities</tt> command lists commodity/currency symbols.
module Hledger.Cli.Commands.Commodities

-- | Command line options for this command.
commoditiesmode :: Mode RawOpts
commodities :: CliOpts -> Journal -> IO ()


-- | The <tt>codes</tt> command lists the codes seen in transactions, in
--   the order parsed.
module Hledger.Cli.Commands.Codes

-- | Command line options for this command.
codesmode :: Mode RawOpts

-- | The codes command.
codes :: CliOpts -> Journal -> IO ()

module Hledger.Cli.Commands.Close
closemode :: Mode RawOpts
close :: CliOpts -> Journal -> IO ()

module Hledger.Cli.Commands.Check
checkmode :: Mode RawOpts
check :: CliOpts -> Journal -> IO ()
instance GHC.Enum.Bounded Hledger.Cli.Commands.Check.Check
instance GHC.Enum.Enum Hledger.Cli.Commands.Check.Check
instance GHC.Classes.Eq Hledger.Cli.Commands.Check.Check
instance GHC.Show.Show Hledger.Cli.Commands.Check.Check
instance GHC.Read.Read Hledger.Cli.Commands.Check.Check


-- | A ledger-compatible <tt>balance</tt> command, with additional support
--   for multi-column reports.
--   
--   Here is a description/specification for the balance command. See also
--   <a>Hledger.Reports</a> -&gt; "Balance reports".
--   
--   <i>Basic balance report</i>
--   
--   With no report interval (<tt>--monthly</tt> etc.), hledger's balance
--   command emulates ledger's, showing accounts indented according to
--   hierarchy, along with their total amount posted (including
--   subaccounts).
--   
--   Here's an example. With <tt>examples/sample.journal</tt>, which
--   defines the following account tree:
--   
--   <pre>
--   assets
--     bank
--       checking
--       saving
--     cash
--   expenses
--     food
--     supplies
--   income
--     gifts
--     salary
--   liabilities
--     debts
--   </pre>
--   
--   the basic <tt>balance</tt> command gives this output:
--   
--   <pre>
--    $ hledger -f sample.journal balance
--                    $-1  assets
--                     $1    bank:saving
--                    $-2    cash
--                     $2  expenses
--                     $1    food
--                     $1    supplies
--                    $-2  income
--                    $-1    gifts
--                    $-1    salary
--                     $1  liabilities:debts
--   --------------------
--                      0
--   </pre>
--   
--   Subaccounts are displayed indented below their parent. Only the
--   account leaf name (the final part) is shown. (With <tt>--flat</tt>,
--   account names are shown in full and unindented.)
--   
--   Each account's "balance" is the sum of postings in that account and
--   any subaccounts during the report period. When the report period
--   includes all transactions, this is equivalent to the account's current
--   balance.
--   
--   The overall total of the highest-level displayed accounts is shown
--   below the line. (The <tt>--no-total/-N</tt> flag prevents this.)
--   
--   <i>Eliding and omitting</i>
--   
--   Accounts which have a zero balance, and no non-zero subaccount
--   balances, are normally omitted from the report. (The
--   <tt>--empty/-E</tt> flag forces such accounts to be displayed.) Eg,
--   above <tt>checking</tt> is omitted because it has a zero balance and
--   no subaccounts.
--   
--   Accounts which have a single subaccount also being displayed, with the
--   same balance, are normally elided into the subaccount's line. (The
--   <tt>--no-elide</tt> flag prevents this.) Eg, above <tt>bank</tt> is
--   elided to <tt>bank:saving</tt> because it has only a single displayed
--   subaccount (<tt>saving</tt>) and their balance is the same ($1).
--   Similarly, <tt>liabilities</tt> is elided to
--   <tt>liabilities:debts</tt>.
--   
--   <i>Date limiting</i>
--   
--   The default report period is that of the whole journal, including all
--   known transactions. The <tt>--begin/-b</tt>, <tt>--end/-e</tt>,
--   <tt>--period/-p</tt> options or <tt>date:</tt>/<tt>date2:</tt>
--   patterns can be used to report only on transactions before and/or
--   after specified dates.
--   
--   <i>Depth limiting</i>
--   
--   The <tt>--depth</tt> option can be used to limit the depth of the
--   balance report. Eg, to see just the top level accounts (still
--   including their subaccount balances):
--   
--   <pre>
--   $ hledger -f sample.journal balance --depth 1
--                    $-1  assets
--                     $2  expenses
--                    $-2  income
--                     $1  liabilities
--   --------------------
--                      0
--   </pre>
--   
--   <i>Account limiting</i>
--   
--   With one or more account pattern arguments, the report is restricted
--   to accounts whose name matches one of the patterns, plus their parents
--   and subaccounts. Eg, adding the pattern <tt>o</tt> to the first
--   example gives:
--   
--   <pre>
--    $ hledger -f sample.journal balance o
--                     $1  expenses:food
--                    $-2  income
--                    $-1    gifts
--                    $-1    salary
--   --------------------
--                    $-1
--   </pre>
--   
--   <ul>
--   <li>The <tt>o</tt> pattern matched <tt>food</tt> and <tt>income</tt>,
--   so they are shown.</li>
--   <li><tt>food</tt>'s parent (<tt>expenses</tt>) is shown even though
--   the pattern didn't match it, to clarify the hierarchy. The usual
--   eliding rules cause it to be elided here.</li>
--   <li><tt>income</tt>'s subaccounts are also shown.</li>
--   </ul>
--   
--   <i>Multi-column balance report</i>
--   
--   hledger's balance command will show multiple columns when a reporting
--   interval is specified (eg with <tt>--monthly</tt>), one column for
--   each sub-period.
--   
--   There are three accumulation strategies for multi-column balance
--   report, indicated by the heading:
--   
--   <ul>
--   <li>A "period balance" (or "flow") report (with <tt>--change</tt>, the
--   default) shows the change of account balance in each period, which is
--   equivalent to the sum of postings in each period. Here, checking's
--   balance increased by 10 in Feb:</li>
--   </ul>
--   
--   <pre>
--   Change of balance (flow):
--   
--                    Jan   Feb   Mar
--   assets:checking   20    10    -5
--   </pre>
--   
--   <ul>
--   <li>A "cumulative balance" report (with <tt>--cumulative</tt>) shows
--   the accumulated ending balance across periods, starting from zero at
--   the report's start date. Here, 30 is the sum of checking postings
--   during Jan and Feb:</li>
--   </ul>
--   
--   <pre>
--   Ending balance (cumulative):
--   
--                    Jan   Feb   Mar
--   assets:checking   20    30    25
--   </pre>
--   
--   <ul>
--   <li>A "historical balance" report (with <tt>--historical/-H</tt>) also
--   shows ending balances, but it includes the starting balance from any
--   postings before the report start date. Here, 130 is the balance from
--   all checking postings at the end of Feb, including pre-Jan postings
--   which created a starting balance of 100:</li>
--   </ul>
--   
--   <pre>
--   Ending balance (historical):
--   
--                    Jan   Feb   Mar
--   assets:checking  120   130   125
--   </pre>
--   
--   <i>Eliding and omitting, 2</i>
--   
--   Here's a (imperfect?) specification for the eliding/omitting
--   behaviour:
--   
--   <ul>
--   <li>Each account is normally displayed on its own line.</li>
--   <li>An account less deep than the report's max depth, with just one
--   interesting subaccount, and the same balance as the subaccount, is
--   non-interesting, and prefixed to the subaccount's line, unless
--   <tt>--no-elide</tt> is in effect.</li>
--   <li>An account with a zero inclusive balance and less than two
--   interesting subaccounts is not displayed at all, unless
--   <tt>--empty</tt> is in effect.</li>
--   <li>Multi-column balance reports show full account names with no
--   eliding (like <tt>--flat</tt>). Accounts (and periods) are omitted as
--   described below.</li>
--   </ul>
--   
--   <i>Which accounts to show in balance reports</i>
--   
--   By default:
--   
--   <ul>
--   <li>single-column: accounts with non-zero balance in report period.
--   (With <tt>--flat</tt>: accounts with non-zero balance and
--   postings.)</li>
--   <li>change: accounts with postings and non-zero period balance in any
--   period</li>
--   <li>cumulative: accounts with non-zero cumulative balance in any
--   period</li>
--   <li>historical: accounts with non-zero historical balance in any
--   period</li>
--   </ul>
--   
--   With <tt>-E/--empty</tt>:
--   
--   <ul>
--   <li>single-column: accounts with postings in report period</li>
--   <li>change: accounts with postings in report period</li>
--   <li>cumulative: accounts with postings in report period</li>
--   <li>historical: accounts with non-zero starting balance + accounts
--   with postings in report period</li>
--   </ul>
--   
--   <i>Which periods (columns) to show in balance reports</i>
--   
--   An empty period/column is one where no report account has any
--   postings. A zero period/column is one where no report account has a
--   non-zero period balance.
--   
--   Currently,
--   
--   by default:
--   
--   <ul>
--   <li>single-column: N/A</li>
--   <li>change: all periods within the overall report period, except for
--   leading and trailing empty periods</li>
--   <li>cumulative: all periods within the overall report period, except
--   for leading and trailing empty periods</li>
--   <li>historical: all periods within the overall report period, except
--   for leading and trailing empty periods</li>
--   </ul>
--   
--   With <tt>-E/--empty</tt>:
--   
--   <ul>
--   <li>single-column: N/A</li>
--   <li>change: all periods within the overall report period</li>
--   <li>cumulative: all periods within the overall report period</li>
--   <li>historical: all periods within the overall report period</li>
--   </ul>
--   
--   <i>What to show in empty cells</i>
--   
--   An empty periodic balance report cell is one which has no
--   corresponding postings. An empty cumulative/historical balance report
--   cell is one which has no corresponding or prior postings, ie the
--   account doesn't exist yet. Currently, empty cells show 0.
module Hledger.Cli.Commands.Balance

-- | Command line options for this command.
balancemode :: Mode RawOpts

-- | The balance command, prints a balance report.
balance :: CliOpts -> Journal -> IO ()

-- | Render a single-column balance report as plain text.
balanceReportAsText :: ReportOpts -> BalanceReport -> Builder

-- | Render a single-column balance report as CSV.
balanceReportAsCsv :: ReportOpts -> BalanceReport -> CSV

-- | Render one balance report line item as plain text suitable for console
--   output (or whatever string format is specified). Note, prices will not
--   be rendered, and differently-priced quantities of the same commodity
--   will appear merged. The output will be one or more lines depending on
--   the format and number of commodities.
balanceReportItemAsText :: ReportOpts -> BalanceReportItem -> (Builder, [Int])
multiBalanceRowAsCsvText :: ReportOpts -> [DateSpan] -> PeriodicReportRow a MixedAmount -> [[Text]]
multiBalanceRowAsTableText :: ReportOpts -> PeriodicReportRow a MixedAmount -> [[WideBuilder]]

-- | Render a multi-column balance report as plain text suitable for
--   console output.
multiBalanceReportAsText :: ReportOpts -> MultiBalanceReport -> Text

-- | Render a multi-column balance report as CSV. The CSV will always
--   include the initial headings row, and will include the final totals
--   row unless --no-total is set.
multiBalanceReportAsCsv :: ReportOpts -> MultiBalanceReport -> CSV

-- | Render a multi-column balance report as HTML.
multiBalanceReportAsHtml :: ReportOpts -> MultiBalanceReport -> Html ()

-- | Render the HTML table rows for a MultiBalanceReport. Returns the
--   heading row, 0 or more body rows, and the totals row if enabled.
multiBalanceReportHtmlRows :: ReportOpts -> MultiBalanceReport -> (Html (), [Html ()], [Html ()])

-- | Render one MultiBalanceReport totals row as a HTML table row.
multiBalanceReportHtmlFootRow :: ReportOpts -> [Text] -> Html ()

-- | Build a <a>Table</a> from a multi-column balance report.
balanceReportAsTable :: ReportOpts -> MultiBalanceReport -> Table Text Text WideBuilder
balanceReportTableAsText :: ReportOpts -> Table Text Text WideBuilder -> Builder
tests_Balance :: TestTree


-- | Common helpers for making multi-section balance report commands like
--   balancesheet, cashflow, and incomestatement.
module Hledger.Cli.CompoundBalanceCommand

-- | Description of a compound balance report command, from which we
--   generate the command's cmdargs mode and IO action. A compound balance
--   report command shows one or more sections/subreports, each with its
--   own title and subtotals row, in a certain order, plus a grand totals
--   row if there's more than one section. Examples are the balancesheet,
--   cashflow and incomestatement commands.
--   
--   Compound balance reports do sign normalisation: they show all account
--   balances as normally positive, unlike the ordinary BalanceReport and
--   most hledger commands which show income<i>liability</i>equity balances
--   as normally negative. Each subreport specifies the normal sign of its
--   amounts, and whether it should be added to or subtracted from the
--   grand total.
data CompoundBalanceCommandSpec
CompoundBalanceCommandSpec :: CommandDoc -> String -> [CBCSubreportSpec DisplayName] -> BalanceAccumulation -> CompoundBalanceCommandSpec

-- | the command's name(s) and documentation
[cbcdoc] :: CompoundBalanceCommandSpec -> CommandDoc

-- | overall report title
[cbctitle] :: CompoundBalanceCommandSpec -> String

-- | subreport details
[cbcqueries] :: CompoundBalanceCommandSpec -> [CBCSubreportSpec DisplayName]

-- | how to accumulate balances (per-period, cumulative, historical)
--   (overrides command line flags)
[cbcaccum] :: CompoundBalanceCommandSpec -> BalanceAccumulation

-- | Generate a cmdargs option-parsing mode from a compound balance command
--   specification.
compoundBalanceCommandMode :: CompoundBalanceCommandSpec -> Mode RawOpts

-- | Generate a runnable command from a compound balance command
--   specification.
compoundBalanceCommand :: CompoundBalanceCommandSpec -> CliOpts -> Journal -> IO ()


-- | The <tt>incomestatement</tt> command prints a simple income statement
--   (profit &amp; loss report).
module Hledger.Cli.Commands.Incomestatement
incomestatementmode :: Mode RawOpts
incomestatement :: CliOpts -> Journal -> IO ()


-- | The <tt>cashflow</tt> command prints a simplified cashflow statement.
--   It just shows the change in all "cash" accounts for the period
--   (without the traditional segmentation into operating, investing, and
--   financing cash flows.)
module Hledger.Cli.Commands.Cashflow
cashflowmode :: Mode RawOpts
cashflow :: CliOpts -> Journal -> IO ()


-- | The <tt>balancesheetequity</tt> command prints a simple balance sheet.
module Hledger.Cli.Commands.Balancesheetequity
balancesheetequitymode :: Mode RawOpts
balancesheetequity :: CliOpts -> Journal -> IO ()


-- | The <tt>balancesheet</tt> command prints a simple balance sheet.
module Hledger.Cli.Commands.Balancesheet
balancesheetmode :: Mode RawOpts
balancesheet :: CliOpts -> Journal -> IO ()


-- | The <tt>aregister</tt> command lists a single account's transactions,
--   like the account register in hledger-ui and hledger-web, and unlike
--   the register command which lists postings across multiple accounts.
module Hledger.Cli.Commands.Aregister
aregistermode :: Mode RawOpts

-- | Print an account register report for a specified account.
aregister :: CliOpts -> Journal -> IO ()
tests_Aregister :: TestTree


-- | A history-aware add command to help with data entry. |
module Hledger.Cli.Commands.Add
addmode :: Mode RawOpts

-- | Read multiple transactions from the console, prompting for each field,
--   and append them to the journal file. If the journal came from stdin,
--   this command has no effect.
add :: CliOpts -> Journal -> IO ()

-- | Append a string, typically one or more transactions, to a journal
--   file, or if the file is "-", dump it to stdout. Tries to avoid excess
--   whitespace.
--   
--   XXX This writes unix line endings (n), some at least, even if the file
--   uses dos line endings (rn), which could leave mixed line endings in
--   the file. See also writeFileWithBackupIfChanged.
appendToJournalFileOrStdout :: FilePath -> Text -> IO ()

-- | Append this transaction to the journal's file and transaction list.
journalAddTransaction :: Journal -> CliOpts -> Transaction -> IO Journal
instance GHC.Show.Show Hledger.Cli.Commands.Add.EntryState
instance GHC.Show.Show Hledger.Cli.Commands.Add.RestartTransactionException
instance GHC.Show.Show Hledger.Cli.Commands.Add.TxnParams
instance GHC.Show.Show Hledger.Cli.Commands.Add.PrevInput
instance GHC.Exception.Type.Exception Hledger.Cli.Commands.Add.RestartTransactionException

module Hledger.Cli.Commands.Import
importmode :: Mode RawOpts
importcmd :: CliOpts -> Journal -> IO ()


-- | Print a bar chart of posting activity per day, or other report
--   interval.
module Hledger.Cli.Commands.Activity
activitymode :: Mode RawOpts
barchar :: Char

-- | Print a bar chart of number of postings per report interval.
activity :: CliOpts -> Journal -> IO ()
showHistogram :: ReportSpec -> Journal -> String
printDayWith :: (PrintfArg t, PrintfType t) => (t -> t) -> (DateSpan, t) -> t
countBar :: Foldable t => t a -> [Char]


-- | The <tt>accounts</tt> command lists account names:
--   
--   <ul>
--   <li>in flat mode (default), it lists the full names of accounts posted
--   to by matched postings, clipped to the specified depth, possibly with
--   leading components dropped.</li>
--   <li>in tree mode, it shows the indented short names of accounts posted
--   to by matched postings, and their parents, to the specified
--   depth.</li>
--   </ul>
module Hledger.Cli.Commands.Accounts

-- | Command line options for this command.
accountsmode :: Mode RawOpts

-- | The accounts command.
accounts :: CliOpts -> Journal -> IO ()


-- | hledger's built-in commands, and helpers for printing the commands
--   list.
--   
--   New built-in commands should be added in four places below: the export
--   list, the import list, builtinCommands, commandsList.
module Hledger.Cli.Commands

-- | The test command, which runs the hledger and hledger-lib packages'
--   unit tests. This command also accepts tasty test runner options,
--   written after a -- (double hyphen).
--   
--   Unlike most hledger commands, this one does not read the user's
--   journal. A <a>Journal</a> argument remains in the type signature, but
--   it should not be used (and would raise an error).
testcmd :: CliOpts -> Journal -> IO ()

-- | The cmdargs subcommand mode (for command-line parsing) and IO action
--   (for doing the command's work) for each builtin command. Command
--   actions take parsed CLI options and a (lazy) finalised journal.
builtinCommands :: [(Mode RawOpts, CliOpts -> Journal -> IO ())]

-- | All names and aliases of the builtin commands.
builtinCommandNames :: [String]

-- | Look up a builtin command's mode and action by exact command name or
--   alias.
findBuiltinCommand :: String -> Maybe (Mode RawOpts, CliOpts -> Journal -> IO ())

-- | Canonical names of the known addon commands which have a slot in the
--   commands list, in alphabetical order.
knownAddonCommands :: [String]

-- | Canonical names of all commands which have a slot in the commands
--   list, in alphabetical order. These include the builtin commands and
--   the known addon commands.
knownCommands :: [String]

-- | Print the commands list, with a pager if appropriate, customising the
--   commandsList template above with the given version string and the
--   installed addons. Uninstalled known addons will be removed from the
--   list, installed known addons will have the + prefix removed, and
--   installed unknown addons will be added under Misc.
printCommandsList :: String -> [String] -> IO ()
tests_Hledger_Cli :: TestTree


-- | Hledger.Cli re-exports the options, utilities and commands provided by
--   the hledger command-line program. This module also aggregates the
--   built-in unit tests defined throughout hledger and hledger-lib, and
--   adds some more which are easier to define here.
module Hledger.Cli
type Help = String
data () => Group a
Group :: [a] -> [a] -> [(Help, [a])] -> Group a
[groupUnnamed] :: Group a -> [a]
[groupHidden] :: Group a -> [a]
[groupNamed] :: Group a -> [(Help, [a])]
data () => Complete
CompleteValue :: String -> Complete
CompleteFile :: String -> FilePath -> Complete
CompleteDir :: String -> FilePath -> Complete
data () => Arg a
Arg :: Update a -> FlagHelp -> Bool -> Arg a
[argValue] :: Arg a -> Update a
[argType] :: Arg a -> FlagHelp
[argRequire] :: Arg a -> Bool
data () => Flag a
Flag :: [Name] -> FlagInfo -> Update a -> FlagHelp -> Help -> Flag a
[flagNames] :: Flag a -> [Name]
[flagInfo] :: Flag a -> FlagInfo
[flagValue] :: Flag a -> Update a
[flagType] :: Flag a -> FlagHelp
[flagHelp] :: Flag a -> Help
type FlagHelp = String
data () => Mode a
Mode :: Group (Mode a) -> [Name] -> a -> (a -> Either String a) -> (a -> Maybe [String]) -> Bool -> Help -> [String] -> ([Arg a], Maybe (Arg a)) -> Group (Flag a) -> Mode a
[modeGroupModes] :: Mode a -> Group (Mode a)
[modeNames] :: Mode a -> [Name]
[modeValue] :: Mode a -> a
[modeCheck] :: Mode a -> a -> Either String a
[modeReform] :: Mode a -> a -> Maybe [String]
[modeExpandAt] :: Mode a -> Bool
[modeHelp] :: Mode a -> Help
[modeHelpSuffix] :: Mode a -> [String]
[modeArgs] :: Mode a -> ([Arg a], Maybe (Arg a))
[modeGroupFlags] :: Mode a -> Group (Flag a)
data () => HelpFormat
HelpFormatDefault :: HelpFormat
HelpFormatOne :: HelpFormat
HelpFormatAll :: HelpFormat
HelpFormatBash :: HelpFormat
HelpFormatZsh :: HelpFormat
data () => FlagInfo
FlagReq :: FlagInfo
FlagOpt :: String -> FlagInfo
FlagOptRare :: String -> FlagInfo
FlagNone :: FlagInfo
class () => Remap (m :: Type -> Type)
remap :: Remap m => (a -> b) -> (b -> (a, a -> b)) -> m a -> m b
type Update a = String -> a -> Either String a
process :: Mode a -> [String] -> Either String a
flagNone :: [Name] -> (a -> a) -> Help -> Flag a
flagReq :: [Name] -> Update a -> FlagHelp -> Help -> Flag a
mode :: Name -> a -> Help -> Arg a -> [Flag a] -> Mode a
flagOpt :: String -> [Name] -> Update a -> FlagHelp -> Help -> Flag a
flagArg :: Update a -> FlagHelp -> Arg a
toGroup :: [a] -> Group a
helpText :: [String] -> HelpFormat -> Mode a -> [Text]
expandArgsAt :: [String] -> IO [String]
modes :: String -> a -> Help -> [Mode a] -> Mode a
complete :: Mode a -> [String] -> (Int, Int) -> [Complete]
joinArgs :: [String] -> String
splitArgs :: String -> [String]
checkMode :: Mode a -> Maybe String
flagBool :: [Name] -> (Bool -> a -> a) -> Help -> Flag a
fromFlagOpt :: FlagInfo -> String
fromGroup :: Group a -> [a]
modeEmpty :: a -> Mode a
modeFlags :: Mode a -> [Flag a]
modeModes :: Mode a -> [Mode a]
parseBool :: String -> Maybe Bool
remap2 :: Remap m => (a -> b) -> (b -> a) -> m a -> m b
remapUpdate :: (a -> b) -> (b -> (a, a -> b)) -> Update a -> Update b
flagHelpFormat :: (HelpFormat -> TextFormat -> a -> a) -> Flag a
flagHelpSimple :: (a -> a) -> Flag a
flagNumericVersion :: (a -> a) -> Flag a
flagVersion :: (a -> a) -> Flag a
flagsVerbosity :: (Verbosity -> a -> a) -> [Flag a]
processArgs :: Mode a -> IO a
processValue :: Mode a -> [String] -> a
processValueIO :: Mode a -> [String] -> IO a

-- | The program name and version string for this build of the hledger
--   tool, including any git info available at build time.
prognameandversion :: String

-- | A helper to generate the best version string we can from the given
--   program name and package version strings, current os and architecture,
--   and any git info available at build time (commit hash, commit date,
--   branch name, patchlevel since latest release tag for that program's
--   package). Typically called for programs "hledger", "hledger-ui", or
--   "hledger-web".
--   
--   The git info changes whenever any file in the repository changes.
--   Keeping this template haskell call here and not down in
--   Hledger.Cli.Version helps reduce the number of modules recompiled.
versionString :: ProgramName -> PackageVersion -> String


-- | hledger - a ledger-compatible accounting tool. Copyright (c) 2007-2022
--   Simon Michael <a>simon@joyful.com</a> Released under GPL version 3 or
--   later.
--   
--   hledger is a partial haskell clone of John Wiegley's "ledger". It
--   generates ledger-compatible register &amp; balance reports from a
--   plain text journal, and demonstrates a functional implementation of
--   ledger. For more information, see http://hledger.org .
--   
--   This module provides the main function for the hledger command-line
--   executable. It is exposed here so that it can be imported by eg
--   benchmark scripts.
--   
--   You can use the command line:
--   
--   <pre>
--   $ hledger --help
--   </pre>
--   
--   or ghci:
--   
--   <pre>
--   $ ghci hledger
--   &gt; Right j &lt;- readJournalFile definputopts "examples/sample.journal"
--   &gt; register [] ["income","expenses"] j
--   2008/01/01 income               income:salary                   $-1          $-1
--   2008/06/01 gift                 income:gifts                    $-1          $-2
--   2008/06/03 eat &amp; shop           expenses:food                    $1          $-1
--                                   expenses:supplies                $1            0
--   &gt; balance [Depth "1"] [] l
--                    $-1  assets
--                     $2  expenses
--                    $-2  income
--                     $1  liabilities
--   &gt; j &lt;- defaultJournal
--   </pre>
--   
--   etc.
module Hledger.Cli.Main

-- | The overall cmdargs mode describing hledger's command-line options and
--   subcommands.
mainmode :: [Name] -> Mode RawOpts

-- | Let's go!
main :: IO ()

-- | Parse hledger CLI options from these command line arguments and add-on
--   command names, or raise any error.
argsToCliOpts :: [String] -> [String] -> IO CliOpts

-- | A hacky workaround for cmdargs not accepting flags before the
--   subcommand name: try to detect and move such flags after the command.
--   This allows the user to put them in either position. The order of
--   options is not preserved, but that should be ok.
--   
--   Since we're not parsing flags as precisely as cmdargs here, this is
--   imperfect. We make a decent effort to: - move all no-argument
--   help<i>input</i>report flags - move all required-argument
--   help<i>input</i>report flags along with their values, space-separated
--   or not - ensure --debug has an argument (because.. "or this all goes
--   to hell") - not confuse things further or cause misleading errors.
moveFlagsAfterCommand :: [String] -> [String]
isMovableNoArgFlag :: [Char] -> Bool
isMovableReqArgFlag :: [Char] -> Bool
isMovableArgFlagAndValue :: [Char] -> Bool
isValue :: String -> Bool
flagstomove :: [Flag RawOpts]
noargflagstomove :: [Name]
reqargflagstomove :: [Name]
optargflagstomove :: [Name]


-- | A convenient module to import in hledger scripts, aiming to provide
--   the most useful imports and reduce boilerplate. |
module Hledger.Cli.Script
data () => Text
data () => Char
data () => Ordering
LT :: Ordering
EQ :: Ordering
GT :: Ordering
data () => Maybe a
Nothing :: Maybe a
Just :: a -> Maybe a
class Functor f => Applicative (f :: Type -> Type)
pure :: Applicative f => a -> f a
(<*>) :: Applicative f => f (a -> b) -> f a -> f b
liftA2 :: Applicative f => (a -> b -> c) -> f a -> f b -> f c
(*>) :: Applicative f => f a -> f b -> f b
(<*) :: Applicative f => f a -> f b -> f a
class () => Functor (f :: Type -> Type)
fmap :: Functor f => (a -> b) -> f a -> f b
(<$) :: Functor f => a -> f b -> f a
class Applicative m => Monad (m :: Type -> Type)
(>>=) :: Monad m => m a -> (a -> m b) -> m b
(>>) :: Monad m => m a -> m b -> m b
return :: Monad m => a -> m a
data () => IO a
class Eq a => Ord a
compare :: Ord a => a -> a -> Ordering
(<) :: Ord a => a -> a -> Bool
(<=) :: Ord a => a -> a -> Bool
(>) :: Ord a => a -> a -> Bool
(>=) :: Ord a => a -> a -> Bool
max :: Ord a => a -> a -> a
min :: Ord a => a -> a -> a
type FilePath = String

-- | Command line options, used in the <tt>hledger</tt> package and above.
--   This is the "opts" used throughout hledger CLI code. representing the
--   options and arguments that were provided at startup on the
--   command-line.
data CliOpts
CliOpts :: RawOpts -> String -> [FilePath] -> InputOpts -> ReportSpec -> Maybe FilePath -> Maybe String -> Int -> Bool -> Maybe String -> Int -> POSIXTime -> CliOpts
[rawopts_] :: CliOpts -> RawOpts
[command_] :: CliOpts -> String
[file_] :: CliOpts -> [FilePath]
[inputopts_] :: CliOpts -> InputOpts
[reportspec_] :: CliOpts -> ReportSpec
[output_file_] :: CliOpts -> Maybe FilePath
[output_format_] :: CliOpts -> Maybe String

-- | debug level, set by <tt>--debug[=N]</tt>. See also <a>debugLevel</a>.
[debug_] :: CliOpts -> Int
[no_new_accounts_] :: CliOpts -> Bool

-- | the --width value provided, if any
[width_] :: CliOpts -> Maybe String

-- | estimated usable screen width, based on 1. the COLUMNS env var, if set
--   2. the width reported by the terminal, if supported 3. the default
--   (80)
[available_width_] :: CliOpts -> Int
[progstarttime_] :: CliOpts -> POSIXTime
class HasCliOpts c_acd4
cliOpts :: HasCliOpts c_acd4 => Lens' c_acd4 CliOpts
available_width :: HasCliOpts c_acd4 => Lens' c_acd4 Int
command :: HasCliOpts c_acd4 => Lens' c_acd4 String
debug__ :: HasCliOpts c_acd4 => Lens' c_acd4 Int
file__ :: HasCliOpts c_acd4 => Lens' c_acd4 [FilePath]
inputopts :: HasCliOpts c_acd4 => Lens' c_acd4 InputOpts
no_new_accounts :: HasCliOpts c_acd4 => Lens' c_acd4 Bool
output_file :: HasCliOpts c_acd4 => Lens' c_acd4 (Maybe FilePath)
output_format :: HasCliOpts c_acd4 => Lens' c_acd4 (Maybe String)
progstarttime :: HasCliOpts c_acd4 => Lens' c_acd4 POSIXTime
rawopts__ :: HasCliOpts c_acd4 => Lens' c_acd4 RawOpts
reportspec :: HasCliOpts c_acd4 => Lens' c_acd4 ReportSpec
width__ :: HasCliOpts c_acd4 => Lens' c_acd4 (Maybe String)

-- | A command's documentation. Used both as part of CLI help, and as part
--   of the hledger manual. See parseCommandDoc.
type CommandDoc = String
data () => Either a b
Left :: a -> Either a b
Right :: b -> Either a b
type Topic = String
newtype () => Day
ModifiedJulianDay :: Integer -> Day
[toModifiedJulianDay] :: Day -> Integer
type ProgramName = String
type PackageVersion = String
type VersionString = String
type Balance = MixedAmount
type Help = String
data () => Group a
Group :: [a] -> [a] -> [(Help, [a])] -> Group a
[groupUnnamed] :: Group a -> [a]
[groupHidden] :: Group a -> [a]
[groupNamed] :: Group a -> [(Help, [a])]
data () => Journal
Journal :: Maybe Year -> Maybe (CommoditySymbol, AmountStyle) -> Maybe DecimalMark -> [AccountName] -> [AccountAlias] -> [TimeclockEntry] -> [FilePath] -> [(Payee, PayeeDeclarationInfo)] -> [(TagName, TagDeclarationInfo)] -> [(AccountName, AccountDeclarationInfo)] -> Map AccountName [Tag] -> Map AccountType [AccountName] -> Map AccountName AccountType -> Map CommoditySymbol AmountStyle -> Map CommoditySymbol Commodity -> Map CommoditySymbol AmountStyle -> [PriceDirective] -> [MarketPrice] -> [TransactionModifier] -> [PeriodicTransaction] -> [Transaction] -> Text -> [(FilePath, Text)] -> POSIXTime -> Journal
[jparsedefaultyear] :: Journal -> Maybe Year
[jparsedefaultcommodity] :: Journal -> Maybe (CommoditySymbol, AmountStyle)
[jparsedecimalmark] :: Journal -> Maybe DecimalMark
[jparseparentaccounts] :: Journal -> [AccountName]
[jparsealiases] :: Journal -> [AccountAlias]
[jparsetimeclockentries] :: Journal -> [TimeclockEntry]
[jincludefilestack] :: Journal -> [FilePath]
[jdeclaredpayees] :: Journal -> [(Payee, PayeeDeclarationInfo)]
[jdeclaredtags] :: Journal -> [(TagName, TagDeclarationInfo)]
[jdeclaredaccounts] :: Journal -> [(AccountName, AccountDeclarationInfo)]
[jdeclaredaccounttags] :: Journal -> Map AccountName [Tag]
[jdeclaredaccounttypes] :: Journal -> Map AccountType [AccountName]
[jaccounttypes] :: Journal -> Map AccountName AccountType
[jglobalcommoditystyles] :: Journal -> Map CommoditySymbol AmountStyle
[jcommodities] :: Journal -> Map CommoditySymbol Commodity
[jinferredcommodities] :: Journal -> Map CommoditySymbol AmountStyle
[jpricedirectives] :: Journal -> [PriceDirective]
[jinferredmarketprices] :: Journal -> [MarketPrice]
[jtxnmodifiers] :: Journal -> [TransactionModifier]
[jperiodictxns] :: Journal -> [PeriodicTransaction]
[jtxns] :: Journal -> [Transaction]
[jfinalcommentlines] :: Journal -> Text
[jfiles] :: Journal -> [(FilePath, Text)]
[jlastreadtime] :: Journal -> POSIXTime
data () => Posting
Posting :: Maybe Day -> Maybe Day -> Status -> AccountName -> MixedAmount -> Text -> PostingType -> [Tag] -> Maybe BalanceAssertion -> Maybe Transaction -> Maybe Posting -> Posting
[pdate] :: Posting -> Maybe Day
[pdate2] :: Posting -> Maybe Day
[pstatus] :: Posting -> Status
[paccount] :: Posting -> AccountName
[pamount] :: Posting -> MixedAmount
[pcomment] :: Posting -> Text
[ptype] :: Posting -> PostingType
[ptags] :: Posting -> [Tag]
[pbalanceassertion] :: Posting -> Maybe BalanceAssertion
[ptransaction] :: Posting -> Maybe Transaction
[poriginal] :: Posting -> Maybe Posting
data () => Transaction
Transaction :: Integer -> Text -> (SourcePos, SourcePos) -> Day -> Maybe Day -> Status -> Text -> Text -> Text -> [Tag] -> [Posting] -> Transaction
[tindex] :: Transaction -> Integer
[tprecedingcomment] :: Transaction -> Text
[tsourcepos] :: Transaction -> (SourcePos, SourcePos)
[tdate] :: Transaction -> Day
[tdate2] :: Transaction -> Maybe Day
[tstatus] :: Transaction -> Status
[tcode] :: Transaction -> Text
[tdescription] :: Transaction -> Text
[tcomment] :: Transaction -> Text
[ttags] :: Transaction -> [Tag]
[tpostings] :: Transaction -> [Posting]
type AccountName = Text
type IOError = IOException
class Applicative f => Alternative (f :: Type -> Type)
empty :: Alternative f => f a
(<|>) :: Alternative f => f a -> f a -> f a
some :: Alternative f => f a -> f [a]
many :: Alternative f => f a -> f [a]
class (Alternative m, Monad m) => MonadPlus (m :: Type -> Type)
mzero :: MonadPlus m => m a
mplus :: MonadPlus m => m a -> m a -> m a
class () => PrintfArg a
formatArg :: PrintfArg a => a -> FieldFormatter
parseFormat :: PrintfArg a => a -> ModifierParser
type FieldFormatter = FieldFormat -> ShowS
data () => FieldFormat
FieldFormat :: Maybe Int -> Maybe Int -> Maybe FormatAdjustment -> Maybe FormatSign -> Bool -> String -> Char -> FieldFormat
[fmtWidth] :: FieldFormat -> Maybe Int
[fmtPrecision] :: FieldFormat -> Maybe Int
[fmtAdjust] :: FieldFormat -> Maybe FormatAdjustment
[fmtSign] :: FieldFormat -> Maybe FormatSign
[fmtAlternate] :: FieldFormat -> Bool
[fmtModifiers] :: FieldFormat -> String
[fmtChar] :: FieldFormat -> Char
type ModifierParser = String -> FormatParse
data () => FormatParse
FormatParse :: String -> Char -> String -> FormatParse
[fpModifiers] :: FormatParse -> String
[fpChar] :: FormatParse -> Char
[fpRest] :: FormatParse -> String
type HasCallStack = ?callStack :: CallStack
data () => AmountDisplayOpts
AmountDisplayOpts :: Bool -> Bool -> Bool -> Bool -> Bool -> Maybe Int -> Maybe Int -> Maybe [CommoditySymbol] -> AmountDisplayOpts
[displayPrice] :: AmountDisplayOpts -> Bool
[displayZeroCommodity] :: AmountDisplayOpts -> Bool
[displayThousandsSep] :: AmountDisplayOpts -> Bool
[displayColour] :: AmountDisplayOpts -> Bool
[displayOneLine] :: AmountDisplayOpts -> Bool
[displayMinWidth] :: AmountDisplayOpts -> Maybe Int
[displayMaxWidth] :: AmountDisplayOpts -> Maybe Int
[displayOrder] :: AmountDisplayOpts -> Maybe [CommoditySymbol]
data () => BalancingOpts
BalancingOpts :: Bool -> Bool -> Maybe (Map CommoditySymbol AmountStyle) -> BalancingOpts
[ignore_assertions_] :: BalancingOpts -> Bool
[infer_balancing_costs_] :: BalancingOpts -> Bool
[commodity_styles_] :: BalancingOpts -> Maybe (Map CommoditySymbol AmountStyle)
class () => HasBalancingOpts c
balancingOpts :: HasBalancingOpts c => Lens' c BalancingOpts
commodity_styles :: HasBalancingOpts c => Lens' c (Maybe (Map CommoditySymbol AmountStyle))
ignore_assertions :: HasBalancingOpts c => Lens' c Bool
infer_balancing_costs :: HasBalancingOpts c => Lens' c Bool
type ErroringJournalParser (m :: Type -> Type) a = StateT Journal ParsecT HledgerParseErrorData Text ExceptT FinalParseError m a
type JournalParser (m :: Type -> Type) a = StateT Journal ParsecT HledgerParseErrorData Text m a
data () => RawOpts
data () => ReportItemField
AccountField :: ReportItemField
DefaultDateField :: ReportItemField
DescriptionField :: ReportItemField
TotalField :: ReportItemField
DepthSpacerField :: ReportItemField
FieldNo :: Int -> ReportItemField
data () => StringFormat
OneLine :: [StringFormatComponent] -> StringFormat
TopAligned :: [StringFormatComponent] -> StringFormat
BottomAligned :: [StringFormatComponent] -> StringFormat
data () => StringFormatComponent
FormatLiteral :: Text -> StringFormatComponent
FormatField :: Bool -> Maybe Int -> Maybe Int -> ReportItemField -> StringFormatComponent
data () => Account
Account :: AccountName -> Maybe AccountDeclarationInfo -> [Account] -> Maybe Account -> Bool -> Int -> MixedAmount -> MixedAmount -> Account
[aname] :: Account -> AccountName
[adeclarationinfo] :: Account -> Maybe AccountDeclarationInfo
[asubs] :: Account -> [Account]
[aparent] :: Account -> Maybe Account
[aboring] :: Account -> Bool
[anumpostings] :: Account -> Int
[aebalance] :: Account -> MixedAmount
[aibalance] :: Account -> MixedAmount
data () => AccountAlias
BasicAlias :: AccountName -> AccountName -> AccountAlias
RegexAlias :: Regexp -> Replacement -> AccountAlias
data () => AccountDeclarationInfo
AccountDeclarationInfo :: Text -> [Tag] -> Int -> SourcePos -> AccountDeclarationInfo
[adicomment] :: AccountDeclarationInfo -> Text
[aditags] :: AccountDeclarationInfo -> [Tag]
[adideclarationorder] :: AccountDeclarationInfo -> Int
[adisourcepos] :: AccountDeclarationInfo -> SourcePos
data () => AccountType
Asset :: AccountType
Liability :: AccountType
Equity :: AccountType
Revenue :: AccountType
Expense :: AccountType
Cash :: AccountType
Conversion :: AccountType
data () => Amount
Amount :: !CommoditySymbol -> !Quantity -> !AmountStyle -> !Maybe AmountPrice -> Amount
[acommodity] :: Amount -> !CommoditySymbol
[aquantity] :: Amount -> !Quantity
[astyle] :: Amount -> !AmountStyle
[aprice] :: Amount -> !Maybe AmountPrice
data () => AmountPrecision
Precision :: !Word8 -> AmountPrecision
NaturalPrecision :: AmountPrecision
data () => AmountPrice
UnitPrice :: !Amount -> AmountPrice
TotalPrice :: !Amount -> AmountPrice
data () => AmountStyle
AmountStyle :: !Side -> !Bool -> !AmountPrecision -> !Maybe Char -> !Maybe DigitGroupStyle -> AmountStyle
[ascommodityside] :: AmountStyle -> !Side
[ascommodityspaced] :: AmountStyle -> !Bool
[asprecision] :: AmountStyle -> !AmountPrecision
[asdecimalpoint] :: AmountStyle -> !Maybe Char
[asdigitgroups] :: AmountStyle -> !Maybe DigitGroupStyle
data () => BalanceAssertion
BalanceAssertion :: Amount -> Bool -> Bool -> SourcePos -> BalanceAssertion
[baamount] :: BalanceAssertion -> Amount
[batotal] :: BalanceAssertion -> Bool
[bainclusive] :: BalanceAssertion -> Bool
[baposition] :: BalanceAssertion -> SourcePos
data () => Commodity
Commodity :: CommoditySymbol -> Maybe AmountStyle -> Commodity
[csymbol] :: Commodity -> CommoditySymbol
[cformat] :: Commodity -> Maybe AmountStyle
type CommoditySymbol = Text
data () => DateSpan
DateSpan :: Maybe EFDay -> Maybe EFDay -> DateSpan
type DateTag = (TagName, Day)
type DayOfMonth = Int
class Ord p => DayPeriod p
periodFirstDay :: DayPeriod p => p -> Day
periodLastDay :: DayPeriod p => p -> Day
dayPeriod :: DayPeriod p => Day -> p
type DecimalMark = Char
data () => DigitGroupStyle
DigitGroups :: !Char -> ![Word8] -> DigitGroupStyle
data () => EFDay
Exact :: Day -> EFDay
Flex :: Day -> EFDay
data () => Interval
NoInterval :: Interval
Days :: Int -> Interval
Weeks :: Int -> Interval
Months :: Int -> Interval
Quarters :: Int -> Interval
Years :: Int -> Interval
DayOfMonth :: Int -> Interval
WeekdayOfMonth :: Int -> Int -> Interval
DaysOfWeek :: [Int] -> Interval
DayOfYear :: Int -> Int -> Interval
data () => Ledger
Ledger :: Journal -> [Account] -> Ledger
[ljournal] :: Ledger -> Journal
[laccounts] :: Ledger -> [Account]
data () => MarketPrice
MarketPrice :: Day -> CommoditySymbol -> CommoditySymbol -> Quantity -> MarketPrice
[mpdate] :: MarketPrice -> Day
[mpfrom] :: MarketPrice -> CommoditySymbol
[mpto] :: MarketPrice -> CommoditySymbol
[mprate] :: MarketPrice -> Quantity
data () => MixedAmount
type Month = Int
type MonthDay = Int
type MonthWeek = Int
data () => NormalSign
NormallyPositive :: NormalSign
NormallyNegative :: NormalSign
type ParsedJournal = Journal
type Payee = Text
data () => PayeeDeclarationInfo
PayeeDeclarationInfo :: Text -> [Tag] -> PayeeDeclarationInfo
[pdicomment] :: PayeeDeclarationInfo -> Text
[pditags] :: PayeeDeclarationInfo -> [Tag]
data () => Period
DayPeriod :: Day -> Period
WeekPeriod :: Day -> Period
MonthPeriod :: Year -> Month -> Period
QuarterPeriod :: Year -> Quarter -> Period
YearPeriod :: Year -> Period
PeriodBetween :: Day -> Day -> Period
PeriodFrom :: Day -> Period
PeriodTo :: Day -> Period
PeriodAll :: Period
data () => PeriodicTransaction
PeriodicTransaction :: Text -> Interval -> DateSpan -> (SourcePos, SourcePos) -> Status -> Text -> Text -> Text -> [Tag] -> [Posting] -> PeriodicTransaction
[ptperiodexpr] :: PeriodicTransaction -> Text
[ptinterval] :: PeriodicTransaction -> Interval
[ptspan] :: PeriodicTransaction -> DateSpan
[ptsourcepos] :: PeriodicTransaction -> (SourcePos, SourcePos)
[ptstatus] :: PeriodicTransaction -> Status
[ptcode] :: PeriodicTransaction -> Text
[ptdescription] :: PeriodicTransaction -> Text
[ptcomment] :: PeriodicTransaction -> Text
[pttags] :: PeriodicTransaction -> [Tag]
[ptpostings] :: PeriodicTransaction -> [Posting]
data () => PostingType
RegularPosting :: PostingType
VirtualPosting :: PostingType
BalancedVirtualPosting :: PostingType
data () => PriceDirective
PriceDirective :: Day -> CommoditySymbol -> Amount -> PriceDirective
[pddate] :: PriceDirective -> Day
[pdcommodity] :: PriceDirective -> CommoditySymbol
[pdamount] :: PriceDirective -> Amount
type Quantity = Decimal
type Quarter = Int
data () => Side
L :: Side
R :: Side
data () => SmartDate
SmartCompleteDate :: Day -> SmartDate
SmartAssumeStart :: Year -> Maybe Month -> SmartDate
SmartFromReference :: Maybe Month -> MonthDay -> SmartDate
SmartMonth :: Month -> SmartDate
SmartRelative :: Integer -> SmartInterval -> SmartDate
data () => SmartInterval
Day :: SmartInterval
Week :: SmartInterval
Month :: SmartInterval
Quarter :: SmartInterval
Year :: SmartInterval
data () => Status
Unmarked :: Status
Pending :: Status
Cleared :: Status
type StorageFormat = String
data () => TMPostingRule
TMPostingRule :: Posting -> Bool -> TMPostingRule
[tmprPosting] :: TMPostingRule -> Posting
[tmprIsMultiplier] :: TMPostingRule -> Bool
type Tag = (TagName, TagValue)
newtype () => TagDeclarationInfo
TagDeclarationInfo :: Text -> TagDeclarationInfo
[tdicomment] :: TagDeclarationInfo -> Text
type TagName = Text
type TagValue = Text
data () => TimeclockCode
SetBalance :: TimeclockCode
SetRequiredHours :: TimeclockCode
In :: TimeclockCode
Out :: TimeclockCode
FinalOut :: TimeclockCode
data () => TimeclockEntry
TimeclockEntry :: SourcePos -> TimeclockCode -> LocalTime -> AccountName -> Text -> Text -> [Tag] -> TimeclockEntry
[tlsourcepos] :: TimeclockEntry -> SourcePos
[tlcode] :: TimeclockEntry -> TimeclockCode
[tldatetime] :: TimeclockEntry -> LocalTime
[tlaccount] :: TimeclockEntry -> AccountName
[tldescription] :: TimeclockEntry -> Text
[tlcomment] :: TimeclockEntry -> Text
[tltags] :: TimeclockEntry -> [Tag]
data () => TransactionModifier
TransactionModifier :: Text -> [TMPostingRule] -> TransactionModifier
[tmquerytxt] :: TransactionModifier -> Text
[tmpostingrules] :: TransactionModifier -> [TMPostingRule]
type WeekDay = Int
data () => WhichDate
PrimaryDate :: WhichDate
SecondaryDate :: WhichDate
type Year = Integer
type YearDay = Int
type YearWeek = Int
data () => ConversionOp
NoConversionOp :: ConversionOp
ToCost :: ConversionOp
type PriceOracle = (Day, CommoditySymbol, Maybe CommoditySymbol) -> Maybe (CommoditySymbol, Quantity)
data () => ValuationType
AtThen :: Maybe CommoditySymbol -> ValuationType
AtEnd :: Maybe CommoditySymbol -> ValuationType
AtNow :: Maybe CommoditySymbol -> ValuationType
AtDate :: Day -> Maybe CommoditySymbol -> ValuationType
data () => TestTree
data () => Complete
CompleteValue :: String -> Complete
CompleteFile :: String -> FilePath -> Complete
CompleteDir :: String -> FilePath -> Complete
newtype () => Down a
Down :: a -> Down a
[getDown] :: Down a -> a
data () => Handle
data () => TimeLocale
TimeLocale :: [(String, String)] -> [(String, String)] -> (String, String) -> String -> String -> String -> String -> [TimeZone] -> TimeLocale
[wDays] :: TimeLocale -> [(String, String)]
[months] :: TimeLocale -> [(String, String)]
[amPm] :: TimeLocale -> (String, String)
[dateTimeFmt] :: TimeLocale -> String
[dateFmt] :: TimeLocale -> String
[timeFmt] :: TimeLocale -> String
[time12Fmt] :: TimeLocale -> String
[knownTimeZones] :: TimeLocale -> [TimeZone]
data () => WideBuilder
WideBuilder :: !Builder -> !Int -> WideBuilder
[wbBuilder] :: WideBuilder -> !Builder
[wbWidth] :: WideBuilder -> !Int
type TextParser (m :: Type -> Type) a = ParsecT HledgerParseErrorData Text m a
type HledgerParseErrors = ParseErrorBundle Text HledgerParseErrorData
data () => HledgerParseErrorData
data () => UTCTime
UTCTime :: Day -> DiffTime -> UTCTime
[utctDay] :: UTCTime -> Day
[utctDayTime] :: UTCTime -> DiffTime
data () => SourcePos
SourcePos :: FilePath -> !Pos -> !Pos -> SourcePos
[sourceName] :: SourcePos -> FilePath
[sourceLine] :: SourcePos -> !Pos
[sourceColumn] :: SourcePos -> !Pos
data () => ZonedTime
ZonedTime :: LocalTime -> TimeZone -> ZonedTime
[zonedTimeToLocalTime] :: ZonedTime -> LocalTime
[zonedTimeZone] :: ZonedTime -> TimeZone
data () => LocalTime
LocalTime :: Day -> TimeOfDay -> LocalTime
[localDay] :: LocalTime -> Day
[localTimeOfDay] :: LocalTime -> TimeOfDay
class Monad m => MonadFail (m :: Type -> Type)
fail :: MonadFail m => String -> m a
data () => Query
Not :: Query -> Query
And :: [Query] -> Query
Or :: [Query] -> Query
Any :: Query
None :: Query
Date :: DateSpan -> Query
Date2 :: DateSpan -> Query
StatusQ :: Status -> Query
Code :: Regexp -> Query
Desc :: Regexp -> Query
Tag :: Regexp -> Maybe Regexp -> Query
Acct :: Regexp -> Query
Type :: [AccountType] -> Query
Depth :: Int -> Query
Real :: Bool -> Query
Amt :: OrdPlus -> Quantity -> Query
Sym :: Regexp -> Query
type RegexError = String
data () => Regexp
type Replacement = String
data () => TimeOfDay
TimeOfDay :: Int -> Int -> Pico -> TimeOfDay
[todHour] :: TimeOfDay -> Int
[todMin] :: TimeOfDay -> Int
[todSec] :: TimeOfDay -> Pico
newtype () => Const a (b :: k)
Const :: a -> Const a (b :: k)
[getConst] :: Const a (b :: k) -> a
data () => CalendarDiffDays
CalendarDiffDays :: Integer -> Integer -> CalendarDiffDays
[cdMonths] :: CalendarDiffDays -> Integer
[cdDays] :: CalendarDiffDays -> Integer
type MonthOfYear = Int
data () => DiffTime
data () => DayOfWeek
Monday :: DayOfWeek
Tuesday :: DayOfWeek
Wednesday :: DayOfWeek
Thursday :: DayOfWeek
Friday :: DayOfWeek
Saturday :: DayOfWeek
Sunday :: DayOfWeek
data () => NominalDiffTime
newtype () => UniversalTime
ModJulianDate :: Rational -> UniversalTime
[getModJulianDate] :: UniversalTime -> Rational
class () => FormatTime t
data () => CalendarDiffTime
CalendarDiffTime :: Integer -> NominalDiffTime -> CalendarDiffTime
[ctMonths] :: CalendarDiffTime -> Integer
[ctTime] :: CalendarDiffTime -> NominalDiffTime
data () => TimeZone
TimeZone :: Int -> Bool -> String -> TimeZone
[timeZoneMinutes] :: TimeZone -> Int
[timeZoneSummerOnly] :: TimeZone -> Bool
[timeZoneName] :: TimeZone -> String
class () => ParseTime t
data () => Arg a
Arg :: Update a -> FlagHelp -> Bool -> Arg a
[argValue] :: Arg a -> Update a
[argType] :: Arg a -> FlagHelp
[argRequire] :: Arg a -> Bool
data () => ThreadId
data () => SeekMode
AbsoluteSeek :: SeekMode
RelativeSeek :: SeekMode
SeekFromEnd :: SeekMode
data () => TextEncoding
data () => HandlePosn
data () => BufferMode
NoBuffering :: BufferMode
LineBuffering :: BufferMode
BlockBuffering :: Maybe Int -> BufferMode
data () => Newline
LF :: Newline
CRLF :: Newline
data () => NewlineMode
NewlineMode :: Newline -> Newline -> NewlineMode
[inputNL] :: NewlineMode -> Newline
[outputNL] :: NewlineMode -> Newline
data () => IOMode
ReadMode :: IOMode
WriteMode :: IOMode
AppendMode :: IOMode
ReadWriteMode :: IOMode
data () => FormatAdjustment
LeftAdjust :: FormatAdjustment
ZeroPad :: FormatAdjustment
data () => FormatSign
SignPlus :: FormatSign
SignSpace :: FormatSign
data () => CmdSpec
ShellCommand :: String -> CmdSpec
RawCommand :: FilePath -> [String] -> CmdSpec
data () => CreateProcess
CreateProcess :: CmdSpec -> Maybe FilePath -> Maybe [(String, String)] -> StdStream -> StdStream -> StdStream -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> Maybe GroupID -> Maybe UserID -> Bool -> CreateProcess
[cmdspec] :: CreateProcess -> CmdSpec
[cwd] :: CreateProcess -> Maybe FilePath
[env] :: CreateProcess -> Maybe [(String, String)]
[std_in] :: CreateProcess -> StdStream
[std_out] :: CreateProcess -> StdStream
[std_err] :: CreateProcess -> StdStream
[close_fds] :: CreateProcess -> Bool
[create_group] :: CreateProcess -> Bool
[delegate_ctlc] :: CreateProcess -> Bool
[detach_console] :: CreateProcess -> Bool
[create_new_console] :: CreateProcess -> Bool
[new_session] :: CreateProcess -> Bool
[child_group] :: CreateProcess -> Maybe GroupID
[child_user] :: CreateProcess -> Maybe UserID
[use_process_jobs] :: CreateProcess -> Bool
data () => ProcessHandle
data () => StdStream
Inherit :: StdStream
UseHandle :: Handle -> StdStream
CreatePipe :: StdStream
NoStream :: StdStream
type Pid = CPid
data () => ExitCode
ExitSuccess :: ExitCode
ExitFailure :: Int -> ExitCode
type SimpleStringParser a = Parsec HledgerParseErrorData String a
type SimpleTextParser = Parsec HledgerParseErrorData Text
data () => DependencyType
AllSucceed :: DependencyType
AllFinish :: DependencyType
type TestName = String
data () => Timeout
Timeout :: Integer -> String -> Timeout
NoTimeout :: Timeout
class () => Assertable t
assert :: Assertable t => t -> Assertion
type Assertion = IO ()
class () => AssertionPredicable t
assertionPredicate :: AssertionPredicable t => t -> IO Bool
type AssertionPredicate = IO Bool
data () => HUnitFailure
HUnitFailure :: Maybe SrcLoc -> String -> HUnitFailure
class () => HPrintfType t
class () => IsChar c
toChar :: IsChar c => c -> Char
fromChar :: IsChar c => Char -> c
class () => PrintfType t
data () => MVar a
data () => Flag a
Flag :: [Name] -> FlagInfo -> Update a -> FlagHelp -> Help -> Flag a
[flagNames] :: Flag a -> [Name]
[flagInfo] :: Flag a -> FlagInfo
[flagValue] :: Flag a -> Update a
[flagType] :: Flag a -> FlagHelp
[flagHelp] :: Flag a -> Help
type FlagHelp = String
data () => Mode a
Mode :: Group (Mode a) -> [Name] -> a -> (a -> Either String a) -> (a -> Maybe [String]) -> Bool -> Help -> [String] -> ([Arg a], Maybe (Arg a)) -> Group (Flag a) -> Mode a
[modeGroupModes] :: Mode a -> Group (Mode a)
[modeNames] :: Mode a -> [Name]
[modeValue] :: Mode a -> a
[modeCheck] :: Mode a -> a -> Either String a
[modeReform] :: Mode a -> a -> Maybe [String]
[modeExpandAt] :: Mode a -> Bool
[modeHelp] :: Mode a -> Help
[modeHelpSuffix] :: Mode a -> [String]
[modeArgs] :: Mode a -> ([Arg a], Maybe (Arg a))
[modeGroupFlags] :: Mode a -> Group (Flag a)
data () => InputOpts
InputOpts :: Maybe StorageFormat -> Maybe FilePath -> [String] -> Bool -> Bool -> Bool -> String -> Maybe DateSpan -> Bool -> DateSpan -> Bool -> Bool -> Bool -> BalancingOpts -> Bool -> Day -> InputOpts
[mformat_] :: InputOpts -> Maybe StorageFormat
[mrules_file_] :: InputOpts -> Maybe FilePath
[aliases_] :: InputOpts -> [String]
[anon_] :: InputOpts -> Bool
[new_] :: InputOpts -> Bool
[new_save_] :: InputOpts -> Bool
[pivot_] :: InputOpts -> String
[forecast_] :: InputOpts -> Maybe DateSpan
[verbose_tags_] :: InputOpts -> Bool
[reportspan_] :: InputOpts -> DateSpan
[auto_] :: InputOpts -> Bool
[infer_equity_] :: InputOpts -> Bool
[infer_costs_] :: InputOpts -> Bool
[balancingopts_] :: InputOpts -> BalancingOpts
[strict_] :: InputOpts -> Bool
[_ioDay] :: InputOpts -> Day
data () => ReportSpec
ReportSpec :: ReportOpts -> Day -> Query -> [QueryOpt] -> ReportSpec
[_rsReportOpts] :: ReportSpec -> ReportOpts
[_rsDay] :: ReportSpec -> Day
[_rsQuery] :: ReportSpec -> Query
[_rsQueryOpts] :: ReportSpec -> [QueryOpt]
type PrefixedFilePath = FilePath
class () => HasInputOpts c
inputOpts :: HasInputOpts c => Lens' c InputOpts
aliases :: HasInputOpts c => Lens' c [String]
anon__ :: HasInputOpts c => Lens' c Bool
auto__ :: HasInputOpts c => Lens' c Bool
balancingopts :: HasInputOpts c => Lens' c BalancingOpts
forecast :: HasInputOpts c => Lens' c (Maybe DateSpan)
infer_costs :: HasInputOpts c => Lens' c Bool
infer_equity :: HasInputOpts c => Lens' c Bool
ioDay :: HasInputOpts c => Lens' c Day
mformat :: HasInputOpts c => Lens' c (Maybe StorageFormat)
mrules_file :: HasInputOpts c => Lens' c (Maybe FilePath)
new__ :: HasInputOpts c => Lens' c Bool
new_save :: HasInputOpts c => Lens' c Bool
pivot :: HasInputOpts c => Lens' c String
reportspan :: HasInputOpts c => Lens' c DateSpan
strict :: HasInputOpts c => Lens' c Bool
verbose_tags :: HasInputOpts c => Lens' c Bool
class () => HasReportSpec c
reportSpec :: HasReportSpec c => Lens' c ReportSpec
rsDay :: HasReportSpec c => Lens' c Day
rsQuery :: HasReportSpec c => Lens' c Query
rsQueryOpts :: HasReportSpec c => Lens' c [QueryOpt]
rsReportOpts :: HasReportSpec c => Lens' c ReportOpts
class () => HasReportOptsNoUpdate c
reportOptsNoUpdate :: HasReportOptsNoUpdate c => Lens' c ReportOpts
accountlistmode :: HasReportOptsNoUpdate c => Lens' c AccountListMode
average :: HasReportOptsNoUpdate c => Lens' c Bool
balanceaccum :: HasReportOptsNoUpdate c => Lens' c BalanceAccumulation
balancecalc :: HasReportOptsNoUpdate c => Lens' c BalanceCalculation
budgetpat :: HasReportOptsNoUpdate c => Lens' c (Maybe Text)
color__ :: HasReportOptsNoUpdate c => Lens' c Bool
conversionop :: HasReportOptsNoUpdate c => Lens' c (Maybe ConversionOp)
date2NoUpdate :: HasReportOptsNoUpdate c => Lens' c Bool
declared :: HasReportOptsNoUpdate c => Lens' c Bool
depthNoUpdate :: HasReportOptsNoUpdate c => Lens' c (Maybe Int)
drop__ :: HasReportOptsNoUpdate c => Lens' c Int
empty__ :: HasReportOptsNoUpdate c => Lens' c Bool
format :: HasReportOptsNoUpdate c => Lens' c StringFormat
infer_prices :: HasReportOptsNoUpdate c => Lens' c Bool
interval :: HasReportOptsNoUpdate c => Lens' c Interval
invert :: HasReportOptsNoUpdate c => Lens' c Bool
layout :: HasReportOptsNoUpdate c => Lens' c Layout
no_elide :: HasReportOptsNoUpdate c => Lens' c Bool
no_total :: HasReportOptsNoUpdate c => Lens' c Bool
normalbalance :: HasReportOptsNoUpdate c => Lens' c (Maybe NormalSign)
percent :: HasReportOptsNoUpdate c => Lens' c Bool
periodNoUpdate :: HasReportOptsNoUpdate c => Lens' c Period
pretty :: HasReportOptsNoUpdate c => Lens' c Bool
querystringNoUpdate :: HasReportOptsNoUpdate c => Lens' c [Text]
realNoUpdate :: HasReportOptsNoUpdate c => Lens' c Bool
related :: HasReportOptsNoUpdate c => Lens' c Bool
row_total :: HasReportOptsNoUpdate c => Lens' c Bool
show_costs :: HasReportOptsNoUpdate c => Lens' c Bool
sort_amount :: HasReportOptsNoUpdate c => Lens' c Bool
statusesNoUpdate :: HasReportOptsNoUpdate c => Lens' c [Status]
transpose__ :: HasReportOptsNoUpdate c => Lens' c Bool
txn_dates :: HasReportOptsNoUpdate c => Lens' c Bool
value :: HasReportOptsNoUpdate c => Lens' c (Maybe ValuationType)
class HasReportOptsNoUpdate a => HasReportOpts a
reportOpts :: HasReportOpts a => ReportableLens' a ReportOpts
period :: HasReportOpts a => ReportableLens' a Period
statuses :: HasReportOpts a => ReportableLens' a [Status]
depth :: HasReportOpts a => ReportableLens' a (Maybe Int)
date2 :: HasReportOpts a => ReportableLens' a Bool
real :: HasReportOpts a => ReportableLens' a Bool
querystring :: HasReportOpts a => ReportableLens' a [Text]
data () => GeneralCategory
UppercaseLetter :: GeneralCategory
LowercaseLetter :: GeneralCategory
TitlecaseLetter :: GeneralCategory
ModifierLetter :: GeneralCategory
OtherLetter :: GeneralCategory
NonSpacingMark :: GeneralCategory
SpacingCombiningMark :: GeneralCategory
EnclosingMark :: GeneralCategory
DecimalNumber :: GeneralCategory
LetterNumber :: GeneralCategory
OtherNumber :: GeneralCategory
ConnectorPunctuation :: GeneralCategory
DashPunctuation :: GeneralCategory
OpenPunctuation :: GeneralCategory
ClosePunctuation :: GeneralCategory
InitialQuote :: GeneralCategory
FinalQuote :: GeneralCategory
OtherPunctuation :: GeneralCategory
MathSymbol :: GeneralCategory
CurrencySymbol :: GeneralCategory
ModifierSymbol :: GeneralCategory
OtherSymbol :: GeneralCategory
Space :: GeneralCategory
LineSeparator :: GeneralCategory
ParagraphSeparator :: GeneralCategory
Control :: GeneralCategory
Format :: GeneralCategory
Surrogate :: GeneralCategory
PrivateUse :: GeneralCategory
NotAssigned :: GeneralCategory
data () => HelpFormat
HelpFormatDefault :: HelpFormat
HelpFormatOne :: HelpFormat
HelpFormatAll :: HelpFormat
HelpFormatBash :: HelpFormat
HelpFormatZsh :: HelpFormat
data () => FlagInfo
FlagReq :: FlagInfo
FlagOpt :: String -> FlagInfo
FlagOptRare :: String -> FlagInfo
FlagNone :: FlagInfo
class () => Remap (m :: Type -> Type)
remap :: Remap m => (a -> b) -> (b -> (a, a -> b)) -> m a -> m b
type Update a = String -> a -> Either String a
data () => Permissions
data () => XdgDirectory
XdgData :: XdgDirectory
XdgConfig :: XdgDirectory
XdgCache :: XdgDirectory
XdgState :: XdgDirectory
data () => XdgDirectoryList
XdgDataDirs :: XdgDirectoryList
XdgConfigDirs :: XdgDirectoryList
data () => OrdPlus
Lt :: OrdPlus
LtEq :: OrdPlus
Gt :: OrdPlus
GtEq :: OrdPlus
Eq :: OrdPlus
AbsLt :: OrdPlus
AbsLtEq :: OrdPlus
AbsGt :: OrdPlus
AbsGtEq :: OrdPlus
AbsEq :: OrdPlus
data () => QueryOpt
QueryOptInAcctOnly :: AccountName -> QueryOpt
QueryOptInAcct :: AccountName -> QueryOpt
data () => Reader (m :: Type -> Type)
Reader :: StorageFormat -> [String] -> (InputOpts -> FilePath -> Text -> ExceptT String IO Journal) -> (MonadIO m => ErroringJournalParser m ParsedJournal) -> Reader (m :: Type -> Type)
[rFormat] :: Reader (m :: Type -> Type) -> StorageFormat
[rExtensions] :: Reader (m :: Type -> Type) -> [String]
[rReadFn] :: Reader (m :: Type -> Type) -> InputOpts -> FilePath -> Text -> ExceptT String IO Journal
[rParser] :: Reader (m :: Type -> Type) -> MonadIO m => ErroringJournalParser m ParsedJournal
type AccountTransactionsReport = [AccountTransactionsReportItem]
type AccountTransactionsReportItem = (Transaction, Transaction, Bool, Text, MixedAmount, MixedAmount)
type BalanceReport = ([BalanceReportItem], MixedAmount)
type BalanceReportItem = (AccountName, AccountName, Int, MixedAmount)
type BudgetAverage = Average
type BudgetCell = (Maybe Change, Maybe BudgetGoal)
type BudgetGoal = Change
type BudgetReport = PeriodicReport DisplayName BudgetCell
type BudgetReportRow = PeriodicReportRow DisplayName BudgetCell
type BudgetTotal = Total
type EntriesReport = [EntriesReportItem]
type EntriesReportItem = Transaction
type MultiBalanceReport = PeriodicReport DisplayName MixedAmount
type MultiBalanceReportRow = PeriodicReportRow DisplayName MixedAmount
type PostingsReport = [PostingsReportItem]
type PostingsReportItem = (Maybe Day, Maybe Period, Maybe Text, Posting, MixedAmount)
data () => AccountListMode
ALFlat :: AccountListMode
ALTree :: AccountListMode
data () => BalanceAccumulation
PerPeriod :: BalanceAccumulation
Cumulative :: BalanceAccumulation
Historical :: BalanceAccumulation
data () => BalanceCalculation
CalcChange :: BalanceCalculation
CalcBudget :: BalanceCalculation
CalcValueChange :: BalanceCalculation
CalcGain :: BalanceCalculation
CalcPostingsCount :: BalanceCalculation
data () => Layout
LayoutWide :: Maybe Int -> Layout
LayoutTall :: Layout
LayoutBare :: Layout
LayoutTidy :: Layout
data () => ReportOpts
ReportOpts :: Period -> Interval -> [Status] -> Maybe ConversionOp -> Maybe ValuationType -> Bool -> Maybe Int -> Bool -> Bool -> Bool -> Bool -> StringFormat -> Bool -> [Text] -> Bool -> Bool -> Bool -> BalanceCalculation -> BalanceAccumulation -> Maybe Text -> AccountListMode -> Int -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> Bool -> Maybe NormalSign -> Bool -> Bool -> Layout -> ReportOpts
[period_] :: ReportOpts -> Period
[interval_] :: ReportOpts -> Interval
[statuses_] :: ReportOpts -> [Status]
[conversionop_] :: ReportOpts -> Maybe ConversionOp
[value_] :: ReportOpts -> Maybe ValuationType
[infer_prices_] :: ReportOpts -> Bool
[depth_] :: ReportOpts -> Maybe Int
[date2_] :: ReportOpts -> Bool
[empty_] :: ReportOpts -> Bool
[no_elide_] :: ReportOpts -> Bool
[real_] :: ReportOpts -> Bool
[format_] :: ReportOpts -> StringFormat
[pretty_] :: ReportOpts -> Bool
[querystring_] :: ReportOpts -> [Text]
[average_] :: ReportOpts -> Bool
[related_] :: ReportOpts -> Bool
[txn_dates_] :: ReportOpts -> Bool
[balancecalc_] :: ReportOpts -> BalanceCalculation
[balanceaccum_] :: ReportOpts -> BalanceAccumulation
[budgetpat_] :: ReportOpts -> Maybe Text
[accountlistmode_] :: ReportOpts -> AccountListMode
[drop_] :: ReportOpts -> Int
[declared_] :: ReportOpts -> Bool
[row_total_] :: ReportOpts -> Bool
[no_total_] :: ReportOpts -> Bool
[show_costs_] :: ReportOpts -> Bool
[sort_amount_] :: ReportOpts -> Bool
[percent_] :: ReportOpts -> Bool
[invert_] :: ReportOpts -> Bool
[normalbalance_] :: ReportOpts -> Maybe NormalSign
[color_] :: ReportOpts -> Bool
[transpose_] :: ReportOpts -> Bool
[layout_] :: ReportOpts -> Layout
type Average = MixedAmount
data () => CBCSubreportSpec a
CBCSubreportSpec :: Text -> Query -> (ReportOpts -> ReportOpts) -> (PeriodicReport DisplayName MixedAmount -> PeriodicReport a MixedAmount) -> Bool -> CBCSubreportSpec a
[cbcsubreporttitle] :: CBCSubreportSpec a -> Text
[cbcsubreportquery] :: CBCSubreportSpec a -> Query
[cbcsubreportoptions] :: CBCSubreportSpec a -> ReportOpts -> ReportOpts
[cbcsubreporttransform] :: CBCSubreportSpec a -> PeriodicReport DisplayName MixedAmount -> PeriodicReport a MixedAmount
[cbcsubreportincreasestotal] :: CBCSubreportSpec a -> Bool
type Change = MixedAmount
data () => CompoundPeriodicReport a b
CompoundPeriodicReport :: Text -> [DateSpan] -> [(Text, PeriodicReport a b, Bool)] -> PeriodicReportRow () b -> CompoundPeriodicReport a b
[cbrTitle] :: CompoundPeriodicReport a b -> Text
[cbrDates] :: CompoundPeriodicReport a b -> [DateSpan]
[cbrSubreports] :: CompoundPeriodicReport a b -> [(Text, PeriodicReport a b, Bool)]
[cbrTotals] :: CompoundPeriodicReport a b -> PeriodicReportRow () b
data () => DisplayName
DisplayName :: AccountName -> AccountName -> Int -> DisplayName
[displayFull] :: DisplayName -> AccountName
[displayName] :: DisplayName -> AccountName
[displayDepth] :: DisplayName -> Int
type Percentage = Decimal
data () => PeriodicReport a b
PeriodicReport :: [DateSpan] -> [PeriodicReportRow a b] -> PeriodicReportRow () b -> PeriodicReport a b
[prDates] :: PeriodicReport a b -> [DateSpan]
[prRows] :: PeriodicReport a b -> [PeriodicReportRow a b]
[prTotals] :: PeriodicReport a b -> PeriodicReportRow () b
data () => PeriodicReportRow a b
PeriodicReportRow :: a -> [b] -> b -> b -> PeriodicReportRow a b
[prrName] :: PeriodicReportRow a b -> a
[prrAmounts] :: PeriodicReportRow a b -> [b]
[prrTotal] :: PeriodicReportRow a b -> b
[prrAverage] :: PeriodicReportRow a b -> b
type Total = MixedAmount
newtype () => ZipList a
ZipList :: [a] -> ZipList a
[getZipList] :: ZipList a -> [a]
newtype () => WrappedArrow (a :: Type -> Type -> Type) b c
WrapArrow :: a b c -> WrappedArrow (a :: Type -> Type -> Type) b c
[unwrapArrow] :: WrappedArrow (a :: Type -> Type -> Type) b c -> a b c
newtype () => WrappedMonad (m :: Type -> Type) a
WrapMonad :: m a -> WrappedMonad (m :: Type -> Type) a
[unwrapMonad] :: WrappedMonad (m :: Type -> Type) a -> m a
data () => IOErrorType
data () => Chan a
data () => QSem
data () => QSemN
pattern MixedAmountKeyUnitPrice :: () => !CommoditySymbol -> !CommoditySymbol -> !Quantity -> MixedAmountKey
pattern MixedAmountKeyNoPrice :: () => !CommoditySymbol -> MixedAmountKey
pattern MixedAmountKeyTotalPrice :: () => !CommoditySymbol -> !CommoditySymbol -> MixedAmountKey
pattern April :: MonthOfYear
pattern August :: MonthOfYear
pattern BeforeCommonEra :: Integer -> Year
pattern CommonEra :: Integer -> Year
pattern December :: MonthOfYear
pattern February :: MonthOfYear
pattern January :: MonthOfYear
pattern July :: MonthOfYear
pattern June :: MonthOfYear
pattern March :: MonthOfYear
pattern May :: MonthOfYear
pattern November :: MonthOfYear
pattern October :: MonthOfYear
pattern September :: MonthOfYear
pattern YearMonthDay :: Year -> MonthOfYear -> DayOfMonth -> Day
sum :: (Foldable t, Num a) => t a -> a
product :: (Foldable t, Num a) => t a -> a
null :: Foldable t => t a -> Bool
length :: Foldable t => t a -> Int
foldr1 :: Foldable t => (a -> a -> a) -> t a -> a
foldl1 :: Foldable t => (a -> a -> a) -> t a -> a
elem :: (Foldable t, Eq a) => a -> t a -> Bool
foldl' :: Foldable t => (b -> a -> b) -> b -> t a -> b
maximum :: (Foldable t, Ord a) => t a -> a
minimum :: (Foldable t, Ord a) => t a -> a
foldl :: Foldable t => (b -> a -> b) -> b -> t a -> b
foldr :: Foldable t => (a -> b -> b) -> b -> t a -> b
pager :: String -> IO ()
process :: Mode a -> [String] -> Either String a
(++) :: [a] -> [a] -> [a]
map :: (a -> b) -> [a] -> [b]
join :: Monad m => m (m a) -> m a
cycle :: HasCallStack => [a] -> [a]
groupBy :: (a -> a -> Bool) -> [a] -> [[a]]
unzip :: [(a, b)] -> ([a], [b])
($>) :: Functor f => f a -> b -> f b
partition :: (a -> Bool) -> [a] -> ([a], [a])
stripPrefix :: Eq a => [a] -> [a] -> Maybe [a]
liftM2 :: Monad m => (a1 -> a2 -> r) -> m a1 -> m a2 -> m r
(<=<) :: Monad m => (b -> m c) -> (a -> m b) -> a -> m c
repeat :: a -> [a]
iterate :: (a -> a) -> a -> [a]
void :: Functor f => f a -> f ()
zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]
filter :: (a -> Bool) -> [a] -> [a]
replicate :: Int -> a -> [a]
when :: Applicative f => Bool -> f () -> f ()
uncurry3 :: (a -> b -> c -> d) -> (a, b, c) -> d
curry3 :: ((a, b, c) -> d) -> a -> b -> c -> d
dropWhile :: (a -> Bool) -> [a] -> [a]
takeWhile :: (a -> Bool) -> [a] -> [a]
span :: (a -> Bool) -> [a] -> ([a], [a])
comparing :: Ord a => (b -> a) -> b -> b -> Ordering
group :: Eq a => [a] -> [[a]]
sort :: Ord a => [a] -> [a]
nub :: Eq a => [a] -> [a]
unzip3 :: [(a, b, c)] -> ([a], [b], [c])
take :: Int -> [a] -> [a]
drop :: Int -> [a] -> [a]
splitAt :: Int -> [a] -> ([a], [a])
inits :: [a] -> [[a]]
tails :: [a] -> [[a]]
break :: (a -> Bool) -> [a] -> ([a], [a])
isSpace :: Char -> Bool
lines :: String -> [String]
words :: String -> [String]
head :: HasCallStack => [a] -> a
tail :: HasCallStack => [a] -> [a]
init :: HasCallStack => [a] -> [a]
last :: HasCallStack => [a] -> a
catMaybes :: [Maybe a] -> [a]
zip :: [a] -> [b] -> [(a, b)]
concat :: Foldable t => t [a] -> [a]
proc :: FilePath -> [String] -> CreateProcess

-- | The program name and version string for this build of the hledger
--   tool, including any git info available at build time.
prognameandversion :: String

-- | A helper to generate the best version string we can from the given
--   program name and package version strings, current os and architecture,
--   and any git info available at build time (commit hash, commit date,
--   branch name, patchlevel since latest release tag for that program's
--   package). Typically called for programs "hledger", "hledger-ui", or
--   "hledger-web".
--   
--   The git info changes whenever any file in the repository changes.
--   Keeping this template haskell call here and not down in
--   Hledger.Cli.Version helps reduce the number of modules recompiled.
versionString :: ProgramName -> PackageVersion -> String

-- | Common help flags: --help, --debug, --version...
helpflags :: [Flag RawOpts]

-- | A hidden flag just for the hledger executable.
detailedversionflag :: Flag RawOpts

-- | Flags for selecting flat/tree mode, used for reports organised by
--   account. With a True argument, shows some extra help about
--   inclusive/exclusive amounts.
flattreeflags :: Bool -> [Flag RawOpts]

-- | Common flags that are accepted but not shown in --help, such as
--   --effective, --aux-date.
hiddenflags :: [Flag RawOpts]

-- | Common input-related flags: --file, --rules-file, --alias...
inputflags :: [Flag RawOpts]

-- | Common report-related flags: --period, --cost, etc.
reportflags :: [Flag RawOpts]

-- | Common output-related flags: --output-file, --output-format...
outputFormatFlag :: [String] -> Flag RawOpts
outputFileFlag :: Flag RawOpts
generalflagsgroup1 :: (String, [Flag RawOpts])
generalflagsgroup2 :: (String, [Flag RawOpts])
generalflagsgroup3 :: (String, [Flag RawOpts])

-- | An empty cmdargs mode to use as a template. Modes describe the
--   top-level command, ie the program, or a subcommand, telling cmdargs
--   how to parse a command line and how to generate the command's usage
--   text.
defMode :: Mode RawOpts

-- | A cmdargs mode suitable for a hledger built-in command with the given
--   names (primary name + optional aliases). The usage message shows
--   [QUERY] as argument.
defCommandMode :: [Name] -> Mode RawOpts

-- | A cmdargs mode representing the hledger add-on command with the given
--   name, providing hledger's common input<i>reporting</i>help flags. Just
--   used when invoking addons.
addonCommandMode :: Name -> Mode RawOpts

-- | Build a cmdarg mode for a hledger command, from a help template and
--   flag/argument specifications. Reduces boilerplate a little, though the
--   complicated cmdargs flag and argument specs are still required.
hledgerCommandMode :: CommandDoc -> [Flag RawOpts] -> [(String, [Flag RawOpts])] -> [Flag RawOpts] -> ([Arg RawOpts], Maybe (Arg RawOpts)) -> Mode RawOpts
argsFlag :: FlagHelp -> Arg RawOpts

-- | Get a mode's usage message as a nicely wrapped string.
showModeUsage :: Mode a -> String

-- | Add command aliases to the command's help string.
withAliases :: String -> [String] -> String

-- | Get all sorted unique filenames in the current user's PATH. We do not
--   currently filter out non-file objects or files without execute
--   permission.
likelyExecutablesInPath :: IO [String]

-- | Get the sorted unique filenames of all hledger-* executables in the
--   current user's PATH. These are files in any of the PATH directories,
--   named hledger-*, with either no extension (and no periods in the name)
--   or one of the addonExtensions. We do not currently filter out non-file
--   objects or files without execute permission.
hledgerExecutablesInPath :: IO [String]

-- | Convert an argument-less --debug flag to --debug=1 in the given
--   arguments list. Used by hledger<i>ui</i>web to make their command line
--   parsing easier somehow.
ensureDebugHasArg :: (Eq (t Char), IsString (t Char), Foldable t) => [t Char] -> [t Char]
defcliopts :: CliOpts
getHledgerCliOpts :: Mode RawOpts -> IO CliOpts

-- | A helper for addon commands: this parses options and arguments from
--   the current command line using the given hledger-style cmdargs mode,
--   and returns a CliOpts. Or, with --help or -h present, it prints long
--   or short help, and exits the program. When --debug is present, also
--   prints some debug output. Note this is not used by the main hledger
--   executable.
--   
--   The help texts are generated from the mode. Long help includes the
--   full usage description generated by cmdargs (including all supported
--   options), framed by whatever pre- and postamble text the mode
--   specifies. It's intended that this forms a complete help document or
--   manual.
--   
--   Short help is a truncated version of the above: the preamble and the
--   first part of the usage, up to the first line containing "flags:"
--   (normally this marks the start of the common hledger flags); plus a
--   mention of --help and the (presumed supported) common hledger options
--   not displayed.
--   
--   Tips: Empty lines in the pre/postamble are removed by cmdargs; add a
--   space character to preserve them.
getHledgerCliOpts' :: Mode RawOpts -> [String] -> IO CliOpts

-- | Parse raw option string values to the desired final data types. Any
--   relative smart dates will be converted to fixed dates based on today's
--   date. Parsing failures will raise an error. Also records the terminal
--   width, if supported.
rawOptsToCliOpts :: RawOpts -> IO CliOpts
outputFormats :: [String]
defaultOutputFormat :: String

-- | Get the (tilde-expanded, absolute) journal file path from 1. options,
--   2. an environment variable, or 3. the default. Actually, returns one
--   or more file paths. There will be more than one if multiple -f options
--   were provided. File paths can have a READER: prefix naming a
--   reader/data format.
journalFilePathFromOpts :: CliOpts -> IO [String]

-- | Get the (tilde-expanded) rules file path from options, if any.
rulesFilePathFromOpts :: CliOpts -> IO (Maybe FilePath)

-- | Get the expanded, absolute output file path specified by an
--   -o/--output-file options, or nothing, meaning stdout.
outputFileFromOpts :: CliOpts -> IO (Maybe FilePath)

-- | Get the output format from the --output-format option, otherwise from
--   a recognised file extension in the --output-file option, otherwise the
--   default (txt).
outputFormatFromOpts :: CliOpts -> String

-- | Default width for hledger console output, when not otherwise
--   specified.
defaultWidth :: Int

-- | Replace any numeric flags (eg -2) with their long form (--depth 2), as
--   I'm guessing cmdargs doesn't support this directly.
replaceNumericFlags :: [String] -> [String]

-- | Get the width in characters to use for the register command's console
--   output, and also the description column width if specified (following
--   the main width, comma-separated). The widths will be as follows: <tt>
--   no --width flag - overall width is the available width (COLUMNS, or
--   posix terminal width, or 80); description width is unspecified (auto)
--   --width W - overall width is W, description width is auto --width W,D
--   - overall width is W, description width is D </tt> Will raise a parse
--   error for a malformed --width argument.
registerWidthsFromOpts :: CliOpts -> (Int, Maybe Int)

-- | Get the sorted unique canonical names of hledger addon commands found
--   in the current user's PATH. These are used in command line parsing and
--   to display the commands list.
--   
--   Canonical addon names are the filenames of hledger-* executables in
--   PATH, without the "hledger-" prefix, and without the file extension
--   except when it's needed for disambiguation (see below).
--   
--   When there are exactly two versions of an executable (same base name,
--   different extensions) that look like a source and compiled pair (one
--   has .exe, .com, or no extension), the source version will be excluded
--   (even if it happens to be newer). When there are three or more
--   versions (or two versions that don't look like a source/compiled
--   pair), they are all included, with file extensions intact.
hledgerAddons :: IO [String]

-- | Get the most appropriate documentation topic for a mode. Currently,
--   that is either the hledger, hledger-ui or hledger-web manual.
topicForMode :: Mode a -> Topic
fromRight :: b -> Either a b -> b
isRight :: Either a b -> Bool
intercalate :: [a] -> [[a]] -> [a]
isInfixOf :: Eq a => [a] -> [a] -> Bool
exitSuccess :: IO a
isPrefixOf :: Eq a => [a] -> [a] -> Bool
isSuffixOf :: Eq a => [a] -> [a] -> Bool

-- | Print plain text help for this tool. Takes an optional topic argument
--   for convenience but it is currently ignored.
printHelpForTopic :: Tool -> Maybe Topic -> IO ()

-- | Display a man page for this tool, scrolled to the given topic if
--   provided, using the "man" executable in $PATH. Note when a topic is
--   provided we force man to use the "less" executable in $PATH, ignoring
--   $MANPAGER and $PAGER.
runManForTopic :: Tool -> Maybe Topic -> IO ()

-- | Display an info manual for this topic, opened at the given topic if
--   provided, using the "info" executable in $PATH.
runInfoForTopic :: Tool -> Maybe Topic -> IO ()

-- | Display plain text help for this tool, scrolled to the given topic if
--   provided, using the given pager executable. Note when a topic is
--   provided we ignore the provided pager and use the "less" executable in
--   $PATH.
runPagerForTopic :: Tool -> Maybe Topic -> IO ()
fromMaybe :: a -> Maybe a -> a
isNothing :: Maybe a -> Bool
first3 :: (a, b, c) -> a
second3 :: (a, b, c) -> b
third3 :: (a, b, c) -> c
embedFileRelative :: FilePath -> Q Exp
printf :: PrintfType r => String -> r
lookupEnv :: String -> IO (Maybe String)

-- | Standard error message for a bad output format specified with -O/-o.
unsupportedOutputFormatError :: String -> String

-- | Parse the user's specified journal file(s) as a Journal, maybe apply
--   some transformations according to options, and run a hledger command
--   with it. Or, throw an error.
withJournalDo :: CliOpts -> (Journal -> IO a) -> IO a

-- | Write some output to stdout or to a file selected by --output-file. If
--   the file exists it will be overwritten.
writeOutput :: CliOpts -> String -> IO ()

-- | Write some output to stdout or to a file selected by --output-file. If
--   the file exists it will be overwritten. This function operates on Lazy
--   Text values.
writeOutputLazyText :: CliOpts -> Text -> IO ()

-- | Apply some extra post-parse transformations to the journal, if
--   specified by options. These happen after journal validation, but
--   before report calculation. They include:
--   
--   <ul>
--   <li>adding forecast transactions (--forecast)</li>
--   <li>pivoting account names (--pivot)</li>
--   <li>anonymising (--anonymise).</li>
--   </ul>
--   
--   This will return an error message if the query in any auto posting
--   rule fails to parse, or the generated transactions are not balanced.
journalTransform :: CliOpts -> Journal -> Journal

-- | Re-read the journal file(s) specified by options, applying any
--   transformations specified by options. Or return an error string. Reads
--   the full journal, without filtering.
journalReload :: CliOpts -> ExceptT String IO Journal

-- | Re-read the option-specified journal file(s), but only if any of them
--   has changed since last read. (If the file is standard input, this will
--   either do nothing or give an error, not tested yet). Returns a journal
--   or error message, and a flag indicating whether it was re-read or not.
--   Like withJournalDo and journalReload, reads the full journal, without
--   filtering.
journalReloadIfChanged :: CliOpts -> Day -> Journal -> ExceptT String IO (Journal, Bool)

-- | Has the specified file changed since the journal was last read ?
--   Typically this is one of the journal's journalFilePaths. These are not
--   always real files, so the file's existence is tested first; for
--   non-files the answer is always no.
journalFileIsNewer :: Journal -> FilePath -> IO Bool

-- | Attempt to open a web browser on the given url, all platforms.
openBrowserOn :: String -> IO ExitCode

-- | Back up this file with a (incrementing) numbered suffix, then
--   overwrite it with this new text, or give an error.
writeFileWithBackup :: FilePath -> String -> IO ()

-- | Back up this file with a (incrementing) numbered suffix then overwrite
--   it with this new text, or give an error, but only if the text is
--   different from the current file contents, and return a flag indicating
--   whether we did anything.
--   
--   The given text should have unix line endings (n); the existing file
--   content will be normalised to unix line endings before comparing the
--   two. If the file is overwritten, the new file will have the current
--   system's native line endings (n on unix, rn on windows). This could be
--   different from the file's previous line endings, if working with a DOS
--   file on unix or vice-versa.
writeFileWithBackupIfChanged :: FilePath -> Text -> IO Bool
readFileStrictly :: FilePath -> IO Text

-- | Apply the pivot transformation on a journal, if option is present.
pivotByOpts :: CliOpts -> Journal -> Journal

-- | Apply the anonymisation transformation on a journal, if option is
--   present
anonymiseByOpts :: CliOpts -> Journal -> Journal
journalSimilarTransaction :: CliOpts -> Journal -> Text -> Maybe Transaction

-- | Render a <a>PostingsReport</a> or <a>AccountTransactionsReport</a> as
--   Text, determining the appropriate starting widths and increasing as
--   necessary.
postingsOrTransactionsReportAsText :: Bool -> CliOpts -> (Int -> Int -> (a, [WideBuilder], [WideBuilder]) -> Builder) -> (a -> MixedAmount) -> (a -> MixedAmount) -> [a] -> Builder
tests_Cli_Utils :: TestTree
readMay :: Read a => String -> Maybe a
headMay :: [a] -> Maybe a
getModificationTime :: FilePath -> IO UTCTime
getDirectoryContents :: FilePath -> IO [FilePath]
copyFile :: FilePath -> FilePath -> IO ()
doesFileExist :: FilePath -> IO Bool
(</>) :: FilePath -> FilePath -> FilePath
splitFileName :: FilePath -> (String, String)
takeDirectory :: FilePath -> FilePath
readProcessWithExitCode :: FilePath -> [String] -> String -> IO (ExitCode, String, String)
formatString :: Bool -> Maybe Int -> Maybe Int -> String -> String
pack :: String -> Text
unpack :: Text -> String
at :: Amount -> Amount -> Amount

-- | Parse hledger CLI options from these command line arguments and add-on
--   command names, or raise any error.
argsToCliOpts :: [String] -> [String] -> IO CliOpts

-- | The "1.30.1" string defined with -D in this package's
--   package.yaml/.cabal file (by Shake setversion), if any. Normally a
--   dotted number string with 1-3 components.
packageversion :: PackageVersion

-- | The name of this package's main executable.
progname :: ProgramName

-- | Given possible git state info from the build directory (or an error
--   message, which is ignored), the name of a program (executable) in the
--   currently building package, and the package's version, make a complete
--   version string. Here is the logic:
--   
--   <ul>
--   <li>Program name, OS and architecture are always shown.</li>
--   <li>The package version is always shown.</li>
--   <li>If there is git info at build time, the latest commit hash and
--   commit date are shown, and (TODO, requires githash to use -uno for
--   giDirty): if the working copy has uncommitted changes a + sign is
--   appended.</li>
--   <li>(TODO, requires adding --match support to githash: If there are
--   tags matching THISPKG-[0-9]*, the latest one is used to calculate
--   patch level (number of commits since tag), and if non-zero, it and the
--   branch name are shown.)</li>
--   </ul>
--   
--   Some example outputs:
--   
--   <ul>
--   <li>A homebrew binary, not built in git repo: hledger-ui 1.24,
--   mac-aarch64</li>
--   <li>A CI release build, built in git repo at release tag: hledger-ui
--   1.24.1-g455b35293-20211210, mac-x86_64</li>
--   <li>(TODO) A dev build, built in git repo: hledger-ui
--   1.24.1+1-g4abd8ef10-20211210 (1.24-branch), mac-x86_64</li>
--   </ul>
--   
--   This function requires git log to show the default (rfc2822-style)
--   date format, so that must not be overridden by a log.date git config
--   variable.
versionStringWith :: Either String GitInfo -> ProgramName -> PackageVersion -> VersionString

-- | The test command, which runs the hledger and hledger-lib packages'
--   unit tests. This command also accepts tasty test runner options,
--   written after a -- (double hyphen).
--   
--   Unlike most hledger commands, this one does not read the user's
--   journal. A <a>Journal</a> argument remains in the type signature, but
--   it should not be used (and would raise an error).
testcmd :: CliOpts -> Journal -> IO ()

-- | The cmdargs subcommand mode (for command-line parsing) and IO action
--   (for doing the command's work) for each builtin command. Command
--   actions take parsed CLI options and a (lazy) finalised journal.
builtinCommands :: [(Mode RawOpts, CliOpts -> Journal -> IO ())]

-- | All names and aliases of the builtin commands.
builtinCommandNames :: [String]

-- | Look up a builtin command's mode and action by exact command name or
--   alias.
findBuiltinCommand :: String -> Maybe (Mode RawOpts, CliOpts -> Journal -> IO ())

-- | Canonical names of the known addon commands which have a slot in the
--   commands list, in alphabetical order.
knownAddonCommands :: [String]

-- | Canonical names of all commands which have a slot in the commands
--   list, in alphabetical order. These include the builtin commands and
--   the known addon commands.
knownCommands :: [String]

-- | Print the commands list, with a pager if appropriate, customising the
--   commandsList template above with the given version string and the
--   installed addons. Uninstalled known addons will be removed from the
--   list, installed known addons will have the + prefix removed, and
--   installed unknown addons will be added under Misc.
printCommandsList :: String -> [String] -> IO ()
tests_Hledger_Cli :: TestTree
isAlphaNum :: Char -> Bool
withArgs :: [String] -> IO a -> IO a

-- | Command line options for this command.
accountsmode :: Mode RawOpts

-- | The accounts command.
accounts :: CliOpts -> Journal -> IO ()
forM_ :: (Foldable t, Monad m) => t a -> (a -> m b) -> m ()
headDef :: a -> [a] -> a
sortOn :: Ord b => (a -> b) -> [a] -> [a]
activitymode :: Mode RawOpts
addmode :: Mode RawOpts

-- | Read multiple transactions from the console, prompting for each field,
--   and append them to the journal file. If the journal came from stdin,
--   this command has no effect.
add :: CliOpts -> Journal -> IO ()

-- | Append a string, typically one or more transactions, to a journal
--   file, or if the file is "-", dump it to stdout. Tries to avoid excess
--   whitespace.
--   
--   XXX This writes unix line endings (n), some at least, even if the file
--   uses dos line endings (rn), which could leave mixed line endings in
--   the file. See also writeFileWithBackupIfChanged.
appendToJournalFileOrStdout :: FilePath -> Text -> IO ()

-- | Append this transaction to the journal's file and transaction list.
journalAddTransaction :: Journal -> CliOpts -> Transaction -> IO Journal
toUpper :: Char -> Char
toLower :: Char -> Char
fromJust :: HasCallStack => Maybe a -> a
isJust :: Maybe a -> Bool
formatTime :: FormatTime t => TimeLocale -> String -> t -> String
defaultTimeLocale :: TimeLocale
atMay :: [a] -> Int -> Maybe a
flagNone :: [Name] -> (a -> a) -> Help -> Flag a
stderr :: Handle
hPutStr :: Handle -> String -> IO ()
hPutStrLn :: Handle -> String -> IO ()

-- | Render a register report as plain text suitable for console output.
postingsReportAsText :: CliOpts -> PostingsReport -> Text
aregistermode :: Mode RawOpts

-- | Print an account register report for a specified account.
aregister :: CliOpts -> Journal -> IO ()
tests_Aregister :: TestTree
find :: Foldable t => (a -> Bool) -> t a -> Maybe a
flagReq :: [Name] -> Update a -> FlagHelp -> Help -> Flag a

-- | Command line options for this command.
balancemode :: Mode RawOpts

-- | The balance command, prints a balance report.
balance :: CliOpts -> Journal -> IO ()

-- | Render a single-column balance report as plain text.
balanceReportAsText :: ReportOpts -> BalanceReport -> Builder

-- | Render a single-column balance report as CSV.
balanceReportAsCsv :: ReportOpts -> BalanceReport -> CSV

-- | Render one balance report line item as plain text suitable for console
--   output (or whatever string format is specified). Note, prices will not
--   be rendered, and differently-priced quantities of the same commodity
--   will appear merged. The output will be one or more lines depending on
--   the format and number of commodities.
balanceReportItemAsText :: ReportOpts -> BalanceReportItem -> (Builder, [Int])
multiBalanceRowAsCsvText :: ReportOpts -> [DateSpan] -> PeriodicReportRow a MixedAmount -> [[Text]]
multiBalanceRowAsTableText :: ReportOpts -> PeriodicReportRow a MixedAmount -> [[WideBuilder]]

-- | Render a multi-column balance report as plain text suitable for
--   console output.
multiBalanceReportAsText :: ReportOpts -> MultiBalanceReport -> Text

-- | Render a multi-column balance report as CSV. The CSV will always
--   include the initial headings row, and will include the final totals
--   row unless --no-total is set.
multiBalanceReportAsCsv :: ReportOpts -> MultiBalanceReport -> CSV

-- | Render a multi-column balance report as HTML.
multiBalanceReportAsHtml :: ReportOpts -> MultiBalanceReport -> Html ()

-- | Render the HTML table rows for a MultiBalanceReport. Returns the
--   heading row, 0 or more body rows, and the totals row if enabled.
multiBalanceReportHtmlRows :: ReportOpts -> MultiBalanceReport -> (Html (), [Html ()], [Html ()])

-- | Render one MultiBalanceReport totals row as a HTML table row.
multiBalanceReportHtmlFootRow :: ReportOpts -> [Text] -> Html ()

-- | Build a <a>Table</a> from a multi-column balance report.
balanceReportAsTable :: ReportOpts -> MultiBalanceReport -> Table Text Text WideBuilder
balanceReportTableAsText :: ReportOpts -> Table Text Text WideBuilder -> Builder
tests_Balance :: TestTree
transpose :: [[a]] -> [[a]]
addDays :: Integer -> Day -> Day
fromGregorian :: Year -> MonthOfYear -> DayOfMonth -> Day
maximumMay :: Ord a => [a] -> Maybe a
balancesheetmode :: Mode RawOpts
balancesheet :: CliOpts -> Journal -> IO ()
balancesheetequitymode :: Mode RawOpts
balancesheetequity :: CliOpts -> Journal -> IO ()
cashflowmode :: Mode RawOpts
cashflow :: CliOpts -> Journal -> IO ()
partitionEithers :: [Either a b] -> ([a], [b])
closemode :: Mode RawOpts
close :: CliOpts -> Journal -> IO ()

-- | Command line options for this command.
codesmode :: Mode RawOpts

-- | The codes command.
codes :: CliOpts -> Journal -> IO ()

-- | Command line options for this command.
commoditiesmode :: Mode RawOpts
commodities :: CliOpts -> Journal -> IO ()

-- | Command line options for this command.
demomode :: Mode RawOpts

-- | The demo command.
demo :: CliOpts -> Journal -> IO ()
exitFailure :: IO a
threadDelay :: Int -> IO ()
callProcess :: FilePath -> [String] -> IO ()
catchIOError :: IO a -> (IOError -> IO a) -> IO a
findIndex :: (a -> Bool) -> [a] -> Maybe Int
dropWhileEnd :: (a -> Bool) -> [a] -> [a]
hClose :: Handle -> IO ()

-- | Command line options for this command.
descriptionsmode :: Mode RawOpts

-- | The descriptions command.
descriptions :: CliOpts -> Journal -> IO ()

-- | Command line options for this command.
diffmode :: Mode RawOpts

-- | The diff command.
diff :: CliOpts -> Journal -> IO ()
(\\) :: Eq a => [a] -> [a] -> [a]
nubBy :: (a -> a -> Bool) -> [a] -> [a]
sortBy :: (a -> a -> Ordering) -> [a] -> [a]
diffDays :: Day -> Day -> Integer
helpmode :: Mode RawOpts

-- | Display the hledger manual in various formats. You can select a docs
--   viewer with one of the `--info`, `--man`, `--pager` flags. Otherwise
--   it will use the first available of: info, man, $PAGER, less, stdout
--   (and always stdout if output is non-interactive).
help' :: CliOpts -> Journal -> IO ()
importmode :: Mode RawOpts
importcmd :: CliOpts -> Journal -> IO ()
incomestatementmode :: Mode RawOpts
incomestatement :: CliOpts -> Journal -> IO ()

-- | Command line options for this command.
notesmode :: Mode RawOpts

-- | The notes command.
notes :: CliOpts -> Journal -> IO ()

-- | Command line options for this command.
payeesmode :: Mode RawOpts

-- | The payees command.
payees :: CliOpts -> Journal -> IO ()
pricesmode :: Mode RawOpts
prices :: CliOpts -> Journal -> IO ()
printmode :: Mode RawOpts

-- | Print journal transactions in standard format.
print' :: CliOpts -> Journal -> IO ()
originalTransaction :: Transaction -> Transaction
intersperse :: a -> [a] -> [a]
registermode :: Mode RawOpts

-- | Print a (posting) register report.
register :: CliOpts -> Journal -> IO ()

-- | Render one register report line item as plain text. Layout is like so:
--   <tt> <a>width (specified, terminal width, or 80)
--   --------------------</a> date (10) description account amount (12)
--   balance (12) DDDDDDDDDD dddddddddddddddddddd aaaaaaaaaaaaaaaaaaa
--   AAAAAAAAAAAA AAAAAAAAAAAA </tt> If description's width is specified,
--   account will use the remaining space. Otherwise, description and
--   account divide up the space equally.
--   
--   With a report interval, the layout is like so: <tt> <a>width
--   (specified, terminal width, or 80) --------------------</a> date (21)
--   account amount (12) balance (12) DDDDDDDDDDDDDDDDDDDDD
--   aaaaaaaaaaaaaaaaaaaaaaaaaaaaa AAAAAAAAAAAA AAAAAAAAAAAA </tt>
--   
--   date and description are shown for the first posting of a transaction
--   only.
--   
--   Returns a string which can be multi-line, eg if the running balance
--   has multiple commodities. Does not yet support formatting control like
--   balance reports.
--   
--   Also returns the natural width (without padding) of the amount and
--   balance fields.
postingsReportItemAsText :: CliOpts -> Int -> Int -> (PostingsReportItem, [WideBuilder], [WideBuilder]) -> Builder
tests_Register :: TestTree
per :: Quantity -> Amount
intersect :: Eq a => [a] -> [a] -> [a]
rewritemode :: Mode RawOpts
rewrite :: CliOpts -> Journal -> IO ()
fromLeft :: a -> Either a b -> a
isLeft :: Either a b -> Bool
statsmode :: Mode RawOpts

-- | Print various statistics for the journal.
stats :: CliOpts -> Journal -> IO ()
tagsmode :: Mode RawOpts
tags :: CliOpts -> Journal -> IO ()
mapMaybe :: (a -> Maybe b) -> [a] -> [b]
getEnv :: String -> IO String
(<$>) :: Functor f => (a -> b) -> f a -> f b
txnTieKnot :: Transaction -> Transaction
either :: (a -> c) -> (b -> c) -> Either a b -> c
all :: Foldable t => (a -> Bool) -> t a -> Bool
and :: Foldable t => t Bool -> Bool
any :: Foldable t => (a -> Bool) -> t a -> Bool
concatMap :: Foldable t => (a -> [b]) -> t a -> [b]
mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()
notElem :: (Foldable t, Eq a) => a -> t a -> Bool
or :: Foldable t => t Bool -> Bool
sequence_ :: (Foldable t, Monad m) => t (m a) -> m ()
maybe :: b -> (a -> b) -> Maybe a -> b
mapM :: (Traversable t, Monad m) => (a -> m b) -> t a -> m (t b)
sequence :: (Traversable t, Monad m) => t (m a) -> m (t a)
(=<<) :: Monad m => (a -> m b) -> m a -> m b
appendFile :: FilePath -> String -> IO ()
getChar :: IO Char
getContents :: IO String
getLine :: IO String
interact :: (String -> String) -> IO ()
print :: Show a => a -> IO ()
putChar :: Char -> IO ()
putStr :: String -> IO ()
putStrLn :: String -> IO ()
readFile :: FilePath -> IO String
readIO :: Read a => String -> IO a
readLn :: Read a => IO a
writeFile :: FilePath -> String -> IO ()
unlines :: [String] -> String
unwords :: [String] -> String
ioError :: IOError -> IO a
userError :: String -> IOError
(!!) :: HasCallStack => [a] -> Int -> a
lookup :: Eq a => a -> [(a, b)] -> Maybe b
reverse :: [a] -> [a]
scanl :: (b -> a -> b) -> b -> [a] -> [b]
scanl1 :: (a -> a -> a) -> [a] -> [a]
scanr :: (a -> b -> b) -> b -> [a] -> [b]
scanr1 :: (a -> a -> a) -> [a] -> [a]
zip3 :: [a] -> [b] -> [c] -> [(a, b, c)]
zipWith3 :: (a -> b -> c -> d) -> [a] -> [b] -> [c] -> [d]
liftM :: Monad m => (a1 -> r) -> m a1 -> m r
ord :: Char -> Int
formatRealFloat :: RealFloat a => a -> FieldFormatter
intToDigit :: Int -> Char
isDigit :: Char -> Bool
foldl1' :: HasCallStack => (a -> a -> a) -> [a] -> a
toTitle :: Char -> Char
unfoldr :: (b -> Maybe (a, b)) -> b -> [a]
singleton :: a -> [a]
isAscii :: Char -> Bool
mapAccumL :: Traversable t => (s -> a -> (s, b)) -> s -> t a -> (s, t b)
mapAccumR :: Traversable t => (s -> a -> (s, b)) -> s -> t a -> (s, t b)
strip :: String -> String
takeEnd :: Int -> [a] -> [a]
uncons :: [a] -> Maybe (a, [a])
errorShortFormat :: a
accountSetDeclarationInfo :: Journal -> Account -> Account
accountTree :: AccountName -> [AccountName] -> Account
accountsFromPostings :: [Posting] -> [Account]
accountsLevels :: Account -> [[Account]]
anyAccounts :: (Account -> Bool) -> Account -> Bool
clipAccounts :: Int -> Account -> Account
clipAccountsAndAggregate :: Maybe Int -> [Account] -> [Account]
filterAccounts :: (Account -> Bool) -> Account -> [Account]
flattenAccounts :: Account -> [Account]
lookupAccount :: AccountName -> [Account] -> Maybe Account
mapAccounts :: (Account -> Account) -> Account -> Account
nullacct :: Account
parentAccounts :: Account -> [Account]
printAccounts :: Account -> IO ()
pruneAccounts :: (Account -> Bool) -> Account -> Maybe Account
showAccounts :: Account -> String
showAccountsBoringFlag :: Account -> String
sortAccountNamesByDeclaration :: Journal -> Bool -> [AccountName] -> [AccountName]
sortAccountTreeByAmount :: NormalSign -> Account -> Account
sumAccounts :: Account -> Account
accountLeafName :: AccountName -> Text
accountNameApplyAliases :: [AccountAlias] -> AccountName -> Either RegexError AccountName
accountNameApplyAliasesMemo :: [AccountAlias] -> AccountName -> Either RegexError AccountName
accountNameComponents :: AccountName -> [Text]
accountNameDrop :: Int -> AccountName -> AccountName
accountNameFromComponents :: [Text] -> AccountName
accountNameInferType :: AccountName -> Maybe AccountType
accountNameLevel :: AccountName -> Int
accountNamePostingType :: AccountName -> PostingType
accountNameToAccountOnlyRegex :: AccountName -> Regexp
accountNameToAccountOnlyRegexCI :: AccountName -> Regexp
accountNameToAccountRegex :: AccountName -> Regexp
accountNameToAccountRegexCI :: AccountName -> Regexp
accountNameTreeFrom :: [AccountName] -> Tree AccountName
accountNameType :: Map AccountName AccountType -> AccountName -> Maybe AccountType
accountNameWithPostingType :: PostingType -> AccountName -> AccountName
accountNameWithoutPostingType :: AccountName -> AccountName
accountSummarisedName :: AccountName -> Text
acctsep :: Text
acctsepchar :: Char
assetAccountRegex :: Regexp
cashAccountRegex :: Regexp
clipAccountName :: Maybe Int -> AccountName -> AccountName
clipOrEllipsifyAccountName :: Maybe Int -> AccountName -> AccountName
concatAccountNames :: [AccountName] -> AccountName
conversionAccountRegex :: Regexp
elideAccountName :: Int -> AccountName -> AccountName
equityAccountRegex :: Regexp
escapeName :: AccountName -> Text
expandAccountName :: AccountName -> [AccountName]
expandAccountNames :: [AccountName] -> [AccountName]
expenseAccountRegex :: Regexp
isAccountNamePrefixOf :: AccountName -> AccountName -> Bool
isSubAccountNameOf :: AccountName -> AccountName -> Bool
joinAccountNames :: AccountName -> AccountName -> AccountName
liabilityAccountRegex :: Regexp
parentAccountName :: AccountName -> AccountName
parentAccountNames :: AccountName -> [AccountName]
revenueAccountRegex :: Regexp
subAccountNamesFrom :: [AccountName] -> AccountName -> [AccountName]
tests_AccountName :: TestTree
topAccountNames :: [AccountName] -> [AccountName]
unbudgetedAccountName :: Text
(@@) :: Amount -> Amount -> Amount
amountCost :: Amount -> Amount
amountIsZero :: Amount -> Bool
amountLooksZero :: Amount -> Bool
amountSetFullPrecision :: Amount -> Amount
amountSetPrecision :: AmountPrecision -> Amount -> Amount
amountStripPrices :: Amount -> Amount
amountUnstyled :: Amount -> Amount
amountWithCommodity :: CommoditySymbol -> Amount -> Amount
amounts :: MixedAmount -> [Amount]
amountsRaw :: MixedAmount -> [Amount]
amountstyle :: AmountStyle
averageMixedAmounts :: [MixedAmount] -> MixedAmount
canonicaliseAmount :: Map CommoditySymbol AmountStyle -> Amount -> Amount
canonicaliseMixedAmount :: Map CommoditySymbol AmountStyle -> MixedAmount -> MixedAmount
cshowAmount :: Amount -> String
csvDisplay :: AmountDisplayOpts
divideAmount :: Quantity -> Amount -> Amount
divideMixedAmount :: Quantity -> MixedAmount -> MixedAmount
eur :: DecimalRaw Integer -> Amount
filterMixedAmount :: (Amount -> Bool) -> MixedAmount -> MixedAmount
filterMixedAmountByCommodity :: CommoditySymbol -> MixedAmount -> MixedAmount
gbp :: DecimalRaw Integer -> Amount
hrs :: Quantity -> Amount
isMissingMixedAmount :: MixedAmount -> Bool
isNegativeAmount :: Amount -> Bool
isNegativeMixedAmount :: MixedAmount -> Maybe Bool
isNonsimpleCommodityChar :: Char -> Bool
maAddAmount :: MixedAmount -> Amount -> MixedAmount
maAddAmounts :: Foldable t => MixedAmount -> t Amount -> MixedAmount
maCommodities :: MixedAmount -> Set CommoditySymbol
maIsNonZero :: MixedAmount -> Bool
maIsZero :: MixedAmount -> Bool
maMinus :: MixedAmount -> MixedAmount -> MixedAmount
maNegate :: MixedAmount -> MixedAmount
maPlus :: MixedAmount -> MixedAmount -> MixedAmount
maSum :: Foldable t => t MixedAmount -> MixedAmount
mapMixedAmount :: (Amount -> Amount) -> MixedAmount -> MixedAmount
missingamt :: Amount
missingmixedamt :: MixedAmount
mixed :: Foldable t => t Amount -> MixedAmount
mixedAmount :: Amount -> MixedAmount
mixedAmountCost :: MixedAmount -> MixedAmount
mixedAmountIsZero :: MixedAmount -> Bool
mixedAmountLooksZero :: MixedAmount -> Bool
mixedAmountSetFullPrecision :: MixedAmount -> MixedAmount
mixedAmountSetPrecision :: AmountPrecision -> MixedAmount -> MixedAmount
mixedAmountStripPrices :: MixedAmount -> MixedAmount
mixedAmountUnstyled :: MixedAmount -> MixedAmount
multiplyAmount :: Quantity -> Amount -> Amount
multiplyMixedAmount :: Quantity -> MixedAmount -> MixedAmount
noColour :: AmountDisplayOpts
noPrice :: AmountDisplayOpts
nullamt :: Amount
nullmixedamt :: MixedAmount
num :: Quantity -> Amount
oneLine :: AmountDisplayOpts
quoteCommoditySymbolIfNeeded :: Text -> Text
setAmountDecimalPoint :: Maybe Char -> Amount -> Amount
setAmountInternalPrecision :: Word8 -> Amount -> Amount
showAmount :: Amount -> String
showAmountB :: AmountDisplayOpts -> Amount -> WideBuilder
showAmountDebug :: Amount -> String
showAmountPrice :: Amount -> WideBuilder
showAmountWithZeroCommodity :: Amount -> String
showAmountWithoutPrice :: Amount -> String
showCommoditySymbol :: Text -> Text
showMixedAmount :: MixedAmount -> String
showMixedAmountB :: AmountDisplayOpts -> MixedAmount -> WideBuilder
showMixedAmountDebug :: MixedAmount -> String
showMixedAmountElided :: Int -> Bool -> MixedAmount -> String
showMixedAmountLinesB :: AmountDisplayOpts -> MixedAmount -> [WideBuilder]
showMixedAmountOneLine :: MixedAmount -> String
showMixedAmountOneLineWithoutPrice :: Bool -> MixedAmount -> String
showMixedAmountWithZeroCommodity :: MixedAmount -> String
showMixedAmountWithoutPrice :: Bool -> MixedAmount -> String
styleAmount :: Map CommoditySymbol AmountStyle -> Amount -> Amount
styleAmountExceptPrecision :: Map CommoditySymbol AmountStyle -> Amount -> Amount
styleMixedAmount :: Map CommoditySymbol AmountStyle -> MixedAmount -> MixedAmount
tests_Amount :: TestTree
unifyMixedAmount :: MixedAmount -> Maybe Amount
usd :: DecimalRaw Integer -> Amount
withDecimalPoint :: Amount -> Maybe Char -> Amount
withInternalPrecision :: Amount -> Word8 -> Amount
withPrecision :: Amount -> AmountPrecision -> Amount
balanceTransaction :: BalancingOpts -> Transaction -> Either String Transaction
balanceTransactionHelper :: BalancingOpts -> Transaction -> Either String (Transaction, [(AccountName, MixedAmount)])
defbalancingopts :: BalancingOpts
isTransactionBalanced :: BalancingOpts -> Transaction -> Bool
journalBalanceTransactions :: BalancingOpts -> Journal -> Either String Journal
journalCheckBalanceAssertions :: Journal -> Maybe String
tests_Balancing :: TestTree
datesepchar :: forall (m :: Type -> Type). TextParser m Char
datesepchars :: String
daysInSpan :: DateSpan -> Maybe Integer
daysSpan :: [Day] -> DateSpan
elapsedSeconds :: Fractional a => UTCTime -> UTCTime -> a
emptydatespan :: DateSpan
fixSmartDate :: Day -> SmartDate -> EFDay
fixSmartDateStr :: Day -> Text -> Text
fixSmartDateStrEither :: Day -> Text -> Either HledgerParseErrors Text
fixSmartDateStrEither' :: Day -> Text -> Either HledgerParseErrors EFDay
getCurrentDay :: IO Day
getCurrentMonth :: IO Int
getCurrentYear :: IO Integer
groupByDateSpan :: Bool -> (a -> Day) -> [DateSpan] -> [a] -> [(DateSpan, [a])]
intervalBoundaryBefore :: Interval -> Day -> Day
isDateSepChar :: Char -> Bool
latestSpanContaining :: [DateSpan] -> Day -> Maybe DateSpan
nulldate :: Day
nulldatespan :: DateSpan
parsePeriodExpr :: Day -> Text -> Either HledgerParseErrors (Interval, DateSpan)
parsePeriodExpr' :: Day -> Text -> (Interval, DateSpan)
parsedateM :: String -> Maybe Day
periodContainsDate :: Period -> Day -> Bool
periodexprp :: forall (m :: Type -> Type). Day -> TextParser m (Interval, DateSpan)
prevday :: Day -> Day
showDate :: Day -> Text
showDateSpan :: DateSpan -> Text
showDateSpanDebug :: DateSpan -> String
showDateSpanMonthAbbrev :: DateSpan -> Text
showEFDate :: EFDay -> Text
smartdate :: forall (m :: Type -> Type). TextParser m SmartDate
spanContainsDate :: DateSpan -> Day -> Bool
spanDefaultsFrom :: DateSpan -> DateSpan -> DateSpan
spanEnd :: DateSpan -> Maybe Day
spanEndYear :: DateSpan -> Maybe Year
spanIntersect :: DateSpan -> DateSpan -> DateSpan
spanStart :: DateSpan -> Maybe Day
spanStartYear :: DateSpan -> Maybe Year
spanUnion :: DateSpan -> DateSpan -> DateSpan
spanYears :: DateSpan -> [Year]
spansFromBoundaries :: Day -> [Day] -> [DateSpan]
spansIntersect :: [DateSpan] -> DateSpan
spansSpan :: [DateSpan] -> DateSpan
spansUnion :: [DateSpan] -> DateSpan
splitSpan :: Bool -> Interval -> DateSpan -> [DateSpan]
tests_Dates :: TestTree
yearp :: forall (m :: Type -> Type). TextParser m Integer
makeAccountTagErrorExcerpt :: (AccountName, AccountDeclarationInfo) -> TagName -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
makeBalanceAssertionErrorExcerpt :: Posting -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
makePostingAccountErrorExcerpt :: Posting -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
makePostingErrorExcerpt :: Posting -> (Posting -> Transaction -> Text -> Maybe (Int, Maybe Int)) -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
makeTransactionErrorExcerpt :: Transaction -> (Transaction -> Maybe (Int, Maybe Int)) -> (FilePath, Int, Maybe (Int, Maybe Int), Text)
transactionFindPostingIndex :: (Posting -> Bool) -> Transaction -> Maybe Int
addPeriodicTransaction :: PeriodicTransaction -> Journal -> Journal
addPriceDirective :: PriceDirective -> Journal -> Journal
addTransaction :: Transaction -> Journal -> Journal
addTransactionModifier :: TransactionModifier -> Journal -> Journal
canonicalStyleFrom :: [AmountStyle] -> AmountStyle
commodityStylesFromAmounts :: [Amount] -> Either String (Map CommoditySymbol AmountStyle)
dbgJournalAcctDeclOrder :: String -> Journal -> Journal
filterJournalAmounts :: Query -> Journal -> Journal
filterJournalPostings :: Query -> Journal -> Journal
filterJournalRelatedPostings :: Query -> Journal -> Journal
filterJournalTransactions :: Query -> Journal -> Journal
filterPostingAmount :: Query -> Posting -> Maybe Posting
filterTransactionAmounts :: Query -> Transaction -> Transaction
filterTransactionPostings :: Query -> Transaction -> Transaction
filterTransactionPostingsExtra :: (AccountName -> Maybe AccountType) -> Query -> Transaction -> Transaction
filterTransactionRelatedPostings :: Query -> Transaction -> Transaction
journalAccountNameTree :: Journal -> Tree AccountName
journalAccountNames :: Journal -> [AccountName]
journalAccountNamesDeclared :: Journal -> [AccountName]
journalAccountNamesDeclaredOrImplied :: Journal -> [AccountName]
journalAccountNamesDeclaredOrUsed :: Journal -> [AccountName]
journalAccountNamesImplied :: Journal -> [AccountName]
journalAccountNamesUsed :: Journal -> [AccountName]
journalAccountTags :: Journal -> AccountName -> [Tag]
journalAccountType :: Journal -> AccountName -> Maybe AccountType
journalAccountTypes :: Journal -> Map AccountName AccountType
journalAddAccountTypes :: Journal -> Journal
journalAddInferredEquityPostings :: Bool -> Journal -> Journal
journalApplyAliases :: [AccountAlias] -> Journal -> Either RegexError Journal
journalApplyCommodityStyles :: Journal -> Either String Journal
journalCommodities :: Journal -> Set CommoditySymbol
journalCommoditiesDeclared :: Journal -> [CommoditySymbol]
journalCommodityStyles :: Journal -> Map CommoditySymbol AmountStyle
journalConcat :: Journal -> Journal -> Journal
journalConversionAccount :: Journal -> AccountName
journalDateSpan :: Bool -> Journal -> DateSpan
journalDateSpanBothDates :: Journal -> DateSpan
journalDescriptions :: Journal -> [Text]
journalEndDate :: Bool -> Journal -> Maybe Day
journalFilePath :: Journal -> FilePath
journalFilePaths :: Journal -> [FilePath]
journalInferCostsFromEquity :: Journal -> Either String Journal
journalInferMarketPricesFromTransactions :: Journal -> Journal
journalInheritedAccountTags :: Journal -> AccountName -> [Tag]
journalLastDay :: Bool -> Journal -> Maybe Day
journalLeafAccountNames :: Journal -> [AccountName]
journalLeafAccountNamesDeclared :: Journal -> [AccountName]
journalMapPostingAmounts :: (MixedAmount -> MixedAmount) -> Journal -> Journal
journalMapPostings :: (Posting -> Posting) -> Journal -> Journal
journalMapTransactions :: (Transaction -> Transaction) -> Journal -> Journal
journalMarkRedundantCosts :: Journal -> Either String Journal
journalModifyTransactions :: Bool -> Day -> Journal -> Either String Journal
journalNextTransaction :: Journal -> Transaction -> Maybe Transaction
journalNumberAndTieTransactions :: Journal -> Journal
journalNumberTransactions :: Journal -> Journal
journalPayeesDeclared :: Journal -> [Payee]
journalPayeesDeclaredOrUsed :: Journal -> [Payee]
journalPayeesUsed :: Journal -> [Payee]
journalPivot :: Text -> Journal -> Journal
journalPostings :: Journal -> [Posting]
journalPostingsAddAccountTags :: Journal -> Journal
journalPrevTransaction :: Journal -> Transaction -> Maybe Transaction
journalRenumberAccountDeclarations :: Journal -> Journal
journalReverse :: Journal -> Journal
journalSetLastReadTime :: POSIXTime -> Journal -> Journal
journalStartDate :: Bool -> Journal -> Maybe Day
journalTagsDeclared :: Journal -> [TagName]
journalTagsDeclaredOrUsed :: Journal -> [TagName]
journalTagsUsed :: Journal -> [TagName]
journalToCost :: ConversionOp -> Journal -> Journal
journalTransactionAt :: Journal -> Integer -> Maybe Transaction
journalTransactionsSimilarTo :: Journal -> Text -> Query -> SimilarityScore -> Int -> [(DateWeightedSimilarityScore, Age, SimilarityScore, Transaction)]
journalUntieTransactions :: Transaction -> Transaction
nulljournal :: Journal
samplejournal :: Journal
samplejournalMaybeExplicit :: Bool -> Journal
tests_Journal :: TestTree
journalCheckAccounts :: Journal -> Either String ()
journalCheckCommodities :: Journal -> Either String ()
journalCheckPairedConversionPostings :: Journal -> Either String ()
journalCheckPayees :: Journal -> Either String ()
journalCheckRecentAssertions :: Day -> Journal -> Either String ()
journalCheckTags :: Journal -> Either String ()
journalCheckOrdereddates :: WhichDate -> Journal -> Either String ()
journalCheckUniqueleafnames :: Journal -> Either String ()
readJsonFile :: FromJSON a => FilePath -> IO a
toJsonText :: ToJSON a => a -> Text
writeJsonFile :: ToJSON a => FilePath -> a -> IO ()
ledgerAccount :: Ledger -> AccountName -> Maybe Account
ledgerAccountNames :: Ledger -> [AccountName]
ledgerCommodities :: Ledger -> [CommoditySymbol]
ledgerDateSpan :: Ledger -> DateSpan
ledgerFromJournal :: Query -> Journal -> Ledger
ledgerLeafAccounts :: Ledger -> [Account]
ledgerPostings :: Ledger -> [Posting]
ledgerRootAccount :: Ledger -> Account
ledgerTopAccounts :: Ledger -> [Account]
nullledger :: Ledger
tests_Ledger :: TestTree
dateSpanAsPeriod :: DateSpan -> Period
firstMonthOfQuarter :: Num a => a -> a
isLastDayOfMonth :: (Eq a1, Eq a2, Num a1, Num a2) => Year -> a1 -> a2 -> Bool
isStandardPeriod :: Period -> Bool
mondayBefore :: Day -> Day
periodAsDateSpan :: Period -> DateSpan
periodEnd :: Period -> Maybe Day
periodGrow :: Period -> Period
periodMoveTo :: Day -> Period -> Period
periodNext :: Period -> Period
periodNextIn :: DateSpan -> Period -> Period
periodPrevious :: Period -> Period
periodPreviousIn :: DateSpan -> Period -> Period
periodShrink :: Day -> Period -> Period
periodStart :: Period -> Maybe Day
periodTextWidth :: Period -> Int
quarterContainingMonth :: Integral a => a -> a
showPeriod :: Period -> Text
showPeriodMonthAbbrev :: Period -> Text
simplifyPeriod :: Period -> Period
startOfFirstWeekInMonth :: Integer -> Int -> Day
yearMonthContainingWeekStarting :: Day -> (Year, MonthOfYear)
checkPeriodicTransactionStartDate :: Interval -> DateSpan -> Text -> Maybe String
runPeriodicTransaction :: Bool -> PeriodicTransaction -> DateSpan -> [Transaction]
accountNamesFromPostings :: [Posting] -> [AccountName]
balassert :: Amount -> Maybe BalanceAssertion
balassertParInc :: Amount -> Maybe BalanceAssertion
balassertTot :: Amount -> Maybe BalanceAssertion
balassertTotInc :: Amount -> Maybe BalanceAssertion
commentAddTag :: Text -> Tag -> Text
commentAddTagNextLine :: Text -> Tag -> Text
commentJoin :: Text -> Text -> Text
hasAmount :: Posting -> Bool
hasBalanceAssignment :: Posting -> Bool
isBalancedVirtual :: Posting -> Bool
isEmptyPosting :: Posting -> Bool
isPostingInDateSpan :: DateSpan -> Posting -> Bool
isPostingInDateSpan' :: WhichDate -> DateSpan -> Posting -> Bool
isReal :: Posting -> Bool
isVirtual :: Posting -> Bool
nullassertion :: BalanceAssertion
nullposting :: Posting
nullsourcepos :: (SourcePos, SourcePos)
originalPosting :: Posting -> Posting
post :: AccountName -> Amount -> Posting
post' :: AccountName -> Amount -> Maybe BalanceAssertion -> Posting
posting :: Posting
postingAddInferredEquityPostings :: Bool -> Text -> Posting -> [Posting]
postingAddTags :: Posting -> [Tag] -> Posting
postingAllTags :: Posting -> [Tag]
postingApplyAliases :: [AccountAlias] -> Posting -> Either RegexError Posting
postingApplyCommodityStyles :: Map CommoditySymbol AmountStyle -> Posting -> Posting
postingApplyValuation :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> ValuationType -> Posting -> Posting
postingAsLines :: Bool -> Bool -> Int -> Int -> Posting -> ([Text], Int, Int)
postingDate :: Posting -> Day
postingDate2 :: Posting -> Day
postingDateOrDate2 :: WhichDate -> Posting -> Day
postingPriceDirectivesFromCost :: Posting -> [PriceDirective]
postingStatus :: Posting -> Status
postingStripPrices :: Posting -> Posting
postingToCost :: Map CommoditySymbol AmountStyle -> ConversionOp -> Posting -> Maybe Posting
postingTransformAmount :: (MixedAmount -> MixedAmount) -> Posting -> Posting
postingsAsLines :: Bool -> [Posting] -> [Text]
relatedPostings :: Posting -> [Posting]
renderCommentLines :: Text -> [Text]
showAccountName :: Maybe Int -> PostingType -> AccountName -> Text
showBalanceAssertion :: BalanceAssertion -> WideBuilder
showPosting :: Posting -> String
showPostingLines :: Posting -> [Text]
sumPostings :: [Posting] -> MixedAmount
tests_Posting :: TestTree
transactionAllTags :: Transaction -> [Tag]
vpost :: AccountName -> Amount -> Posting
vpost' :: AccountName -> Amount -> Maybe BalanceAssertion -> Posting
appendopts :: [(String, String)] -> RawOpts -> RawOpts
boolopt :: String -> RawOpts -> Bool
choiceopt :: (String -> Maybe a) -> RawOpts -> Maybe a
collectopts :: ((String, String) -> Maybe a) -> RawOpts -> [a]
intopt :: String -> RawOpts -> Int
listofstringopt :: String -> RawOpts -> [String]
maybecharopt :: String -> RawOpts -> Maybe Char
maybeintopt :: String -> RawOpts -> Maybe Int
maybeposintopt :: String -> RawOpts -> Maybe Int
maybestringopt :: String -> RawOpts -> Maybe String
overRawOpts :: ([(String, String)] -> [(String, String)]) -> RawOpts -> RawOpts
posintopt :: String -> RawOpts -> Int
setboolopt :: String -> RawOpts -> RawOpts
setopt :: String -> String -> RawOpts -> RawOpts
stringopt :: String -> RawOpts -> String
toggleopt :: String -> RawOpts -> Bool
unsetboolopt :: String -> RawOpts -> RawOpts
defaultBalanceLineFormat :: StringFormat
defaultStringFormatStyle :: [StringFormatComponent] -> StringFormat
parseStringFormat :: Text -> Either String StringFormat
tests_StringFormat :: TestTree
tests_Timeclock :: TestTree
timeclockEntriesToTransactions :: LocalTime -> [TimeclockEntry] -> [Transaction]
annotateErrorWithTransaction :: Transaction -> String -> String
assignmentPostings :: Transaction -> [Posting]
balancedVirtualPostings :: Transaction -> [Posting]
hasRealPostings :: Transaction -> Bool
nulltransaction :: Transaction
partitionAndCheckConversionPostings :: Bool -> Map AccountName AccountType -> [IdxPosting] -> Either Text ([(IdxPosting, IdxPosting)], ([IdxPosting], [IdxPosting]))
realPostings :: Transaction -> [Posting]
showTransaction :: Transaction -> Text
showTransactionLineFirstPart :: Transaction -> Text
showTransactionOneLineAmounts :: Transaction -> Text
tests_Transaction :: TestTree
transaction :: Day -> [Posting] -> Transaction
transactionAddInferredEquityPostings :: Bool -> AccountName -> Transaction -> Transaction
transactionApplyAliases :: [AccountAlias] -> Transaction -> Either RegexError Transaction
transactionApplyValuation :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> ValuationType -> Transaction -> Transaction
transactionDate2 :: Transaction -> Day
transactionDateOrDate2 :: WhichDate -> Transaction -> Day
transactionFile :: Transaction -> FilePath
transactionInferCostsFromEquity :: Bool -> Map AccountName AccountType -> Transaction -> Either String Transaction
transactionMapPostingAmounts :: (MixedAmount -> MixedAmount) -> Transaction -> Transaction
transactionMapPostings :: (Posting -> Posting) -> Transaction -> Transaction
transactionNote :: Transaction -> Text
transactionPayee :: Transaction -> Text
transactionToCost :: Map CommoditySymbol AmountStyle -> ConversionOp -> Transaction -> Transaction
transactionTransformPostings :: (Posting -> Posting) -> Transaction -> Transaction
transactionsPostings :: [Transaction] -> [Posting]
txnUntieKnot :: Transaction -> Transaction
virtualPostings :: Transaction -> [Posting]
modifyTransactions :: (AccountName -> Maybe AccountType) -> (AccountName -> [Tag]) -> Map CommoditySymbol AmountStyle -> Day -> Bool -> [TransactionModifier] -> [Transaction] -> Either String [Transaction]
fromEFDay :: EFDay -> Day
isAccountSubtypeOf :: AccountType -> AccountType -> Bool
isBalanceSheetAccountType :: AccountType -> Bool
isDecimalMark :: Char -> Bool
isIncomeStatementAccountType :: AccountType -> Bool
maCompare :: MixedAmount -> MixedAmount -> Ordering
modifyEFDay :: (Day -> Day) -> EFDay -> EFDay
nullaccountdeclarationinfo :: AccountDeclarationInfo
nullpayeedeclarationinfo :: PayeeDeclarationInfo
nullperiodictransaction :: PeriodicTransaction
nulltagdeclarationinfo :: TagDeclarationInfo
nulltransactionmodifier :: TransactionModifier
amountPriceDirectiveFromCost :: Day -> Amount -> Maybe PriceDirective
journalPriceOracle :: Bool -> Journal -> PriceOracle
marketPriceReverse :: MarketPrice -> MarketPrice
mixedAmountApplyGain :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> Day -> ValuationType -> MixedAmount -> MixedAmount
mixedAmountApplyValuation :: PriceOracle -> Map CommoditySymbol AmountStyle -> Day -> Day -> Day -> ValuationType -> MixedAmount -> MixedAmount
mixedAmountGainAtDate :: PriceOracle -> Map CommoditySymbol AmountStyle -> Maybe CommoditySymbol -> Day -> MixedAmount -> MixedAmount
mixedAmountToCost :: Map CommoditySymbol AmountStyle -> ConversionOp -> MixedAmount -> MixedAmount
mixedAmountValueAtDate :: PriceOracle -> Map CommoditySymbol AmountStyle -> Maybe CommoditySymbol -> Day -> MixedAmount -> MixedAmount
priceDirectiveToMarketPrice :: PriceDirective -> MarketPrice
tests_Valuation :: TestTree
wbToText :: WideBuilder -> Text
wbUnpack :: WideBuilder -> String
tests_Data :: TestTree
delete :: Eq a => a -> [a] -> [a]
insert :: Ord a => a -> [a] -> [a]
union :: Eq a => [a] -> [a] -> [a]
char8 :: TextEncoding
showLitChar :: Char -> ShowS
foldM :: (Foldable t, Monad m) => (b -> a -> m b) -> b -> t a -> m b
stdout :: Handle
numDigitsInt :: Integral a => Int -> a
colorB :: ColorIntensity -> Color -> WideBuilder -> WideBuilder
textQuoteIfNeeded :: Text -> Text
wbFromText :: Text -> WideBuilder
ap :: Monad m => m (a -> b) -> m a -> m b
applyN :: Int -> (a -> a) -> a -> a
error' :: String -> a
choice' :: forall (m :: Type -> Type) a. [TextParser m a] -> TextParser m a
parsewith :: Parsec e Text a -> Text -> Either (ParseErrorBundle Text e) a
skipNonNewlineSpaces :: forall s (m :: Type -> Type). (Stream s, Token s ~ Char) => ParsecT HledgerParseErrorData s m ()
readDecimal :: Text -> Integer
customErrorBundlePretty :: HledgerParseErrors -> String
isNonNewlineSpace :: Char -> Bool
showGregorian :: Day -> String
isLeapYear :: Year -> Bool
parseTimeMultipleM :: (MonadFail m, ParseTime t) => Bool -> TimeLocale -> [(String, String)] -> m t
matchesAmount :: Query -> Amount -> Bool
matchesPosting :: Query -> Posting -> Bool
matchesPostingExtra :: (AccountName -> Maybe AccountType) -> Query -> Posting -> Bool
matchesTransaction :: Query -> Transaction -> Bool
matchesTransactionExtra :: (AccountName -> Maybe AccountType) -> Query -> Transaction -> Bool
first4 :: (a, b, c, d) -> a
treeLeaves :: Tree a -> [a]
dbg1With :: Show a => (a -> String) -> a -> a
dbg4 :: Show a => String -> a -> a
dbg7 :: Show a => String -> a -> a
debugLevel :: Int
traceOrLogAtWith :: Int -> (a -> String) -> a -> a
uppercase :: String -> String
mkPos :: Int -> Pos
filterQuery :: (Query -> Bool) -> Query -> Query
queryIsDepth :: Query -> Bool
queryIsSym :: Query -> Bool
genericTake :: Integral i => i -> [a] -> [a]
addGregorianDurationClip :: CalendarDiffDays -> Day -> Day
addGregorianDurationRollOver :: CalendarDiffDays -> Day -> Day
addGregorianMonthsClip :: Integer -> Day -> Day
addGregorianMonthsRollOver :: Integer -> Day -> Day
addGregorianYearsClip :: Integer -> Day -> Day
addGregorianYearsRollOver :: Integer -> Day -> Day
diffGregorianDurationClip :: Day -> Day -> CalendarDiffDays
diffGregorianDurationRollOver :: Day -> Day -> CalendarDiffDays
fromGregorianValid :: Year -> MonthOfYear -> DayOfMonth -> Maybe Day
gregorianMonthLength :: Year -> MonthOfYear -> DayOfMonth
toGregorian :: Day -> (Year, MonthOfYear, DayOfMonth)
utcToLocalTime :: TimeZone -> UTCTime -> LocalTime
utc :: TimeZone
ut1ToLocalTime :: Rational -> UniversalTime -> LocalTime
utcToZonedTime :: TimeZone -> UTCTime -> ZonedTime
zonedTimeToUTC :: ZonedTime -> UTCTime
iso8601DateFormat :: Maybe String -> String
rfc822DateFormat :: String
localTimeToUT1 :: Rational -> LocalTime -> UniversalTime
localTimeToUTC :: TimeZone -> LocalTime -> UTCTime
parseTimeM :: (MonadFail m, ParseTime t) => Bool -> TimeLocale -> String -> String -> m t
parseTimeOrError :: ParseTime t => Bool -> TimeLocale -> String -> String -> t
readPTime :: ParseTime t => Bool -> TimeLocale -> String -> ReadP t
readSTime :: ParseTime t => Bool -> TimeLocale -> String -> ReadS t
midnight :: TimeOfDay
minutesToTimeZone :: Int -> TimeZone
addUTCTime :: NominalDiffTime -> UTCTime -> UTCTime
diffUTCTime :: UTCTime -> UTCTime -> NominalDiffTime
dayFractionToTimeOfDay :: Rational -> TimeOfDay
localToUTCTimeOfDay :: TimeZone -> TimeOfDay -> (Integer, TimeOfDay)
timeOfDayToDayFraction :: TimeOfDay -> Rational
timeOfDayToTime :: TimeOfDay -> DiffTime
timeToTimeOfDay :: DiffTime -> TimeOfDay
utcToLocalTimeOfDay :: TimeZone -> TimeOfDay -> (Integer, TimeOfDay)
addLocalTime :: NominalDiffTime -> LocalTime -> LocalTime
diffLocalTime :: LocalTime -> LocalTime -> NominalDiffTime
getCurrentTime :: IO UTCTime
getTimeZone :: UTCTime -> IO TimeZone
getZonedTime :: IO ZonedTime
utcToLocalZonedTime :: UTCTime -> IO ZonedTime
filterM :: Applicative m => (a -> m Bool) -> [a] -> m [a]
scanl' :: (b -> a -> b) -> b -> [a] -> [b]
zip4 :: [a] -> [b] -> [c] -> [d] -> [(a, b, c, d)]
zip5 :: [a] -> [b] -> [c] -> [d] -> [e] -> [(a, b, c, d, e)]
zip6 :: [a] -> [b] -> [c] -> [d] -> [e] -> [f] -> [(a, b, c, d, e, f)]
zipWith4 :: (a -> b -> c -> d -> e) -> [a] -> [b] -> [c] -> [d] -> [e]
zipWith5 :: (a -> b -> c -> d -> e -> f) -> [a] -> [b] -> [c] -> [d] -> [e] -> [f]
zipWith6 :: (a -> b -> c -> d -> e -> f -> g) -> [a] -> [b] -> [c] -> [d] -> [e] -> [f] -> [g]
zipWithM :: Applicative m => (a -> b -> m c) -> [a] -> [b] -> m [c]
zipWithM_ :: Applicative m => (a -> b -> m c) -> [a] -> [b] -> m ()
elemIndex :: Eq a => a -> [a] -> Maybe Int
elemIndices :: Eq a => a -> [a] -> [Int]
findIndices :: (a -> Bool) -> [a] -> [Int]
foldM_ :: (Foldable t, Monad m) => (b -> a -> m b) -> b -> t a -> m ()
forM :: (Traversable t, Monad m) => t a -> (a -> m b) -> m (t b)
maximumBy :: Foldable t => (a -> a -> Ordering) -> t a -> a
minimumBy :: Foldable t => (a -> a -> Ordering) -> t a -> a
replicateM :: Applicative m => Int -> m a -> m [a]
unzip4 :: [(a, b, c, d)] -> ([a], [b], [c], [d])
unzip5 :: [(a, b, c, d, e)] -> ([a], [b], [c], [d], [e])
unzip6 :: [(a, b, c, d, e, f)] -> ([a], [b], [c], [d], [e], [f])
(<**>) :: Applicative f => f a -> f (a -> b) -> f b
liftA :: Applicative f => (a -> b) -> f a -> f b
liftA3 :: Applicative f => (a -> b -> c -> d) -> f a -> f b -> f c -> f d
liftM3 :: Monad m => (a1 -> a2 -> a3 -> r) -> m a1 -> m a2 -> m a3 -> m r
liftM4 :: Monad m => (a1 -> a2 -> a3 -> a4 -> r) -> m a1 -> m a2 -> m a3 -> m a4 -> m r
liftM5 :: Monad m => (a1 -> a2 -> a3 -> a4 -> a5 -> r) -> m a1 -> m a2 -> m a3 -> m a4 -> m a5 -> m r
clamp :: Ord a => (a, a) -> a -> a
sourcePosPairPretty :: (SourcePos, SourcePos) -> String
wrap :: Text -> Text -> Text -> Text
(<&>) :: Functor f => f a -> (a -> b) -> f b
initialPos :: FilePath -> SourcePos
sourcePosPretty :: SourcePos -> String
unPos :: Pos -> Int
periodAllDays :: DayPeriod p => p -> [Day]
periodFromDay :: DayPeriod p => Day -> (p, Int)
periodLength :: DayPeriod p => p -> Int
periodToDay :: DayPeriod p => p -> Int -> Day
periodToDayValid :: DayPeriod p => p -> Int -> Maybe Day
after :: DependencyType -> String -> TestTree -> TestTree
nominalDay :: NominalDiffTime
chr :: Int -> Char
nominalDiffTimeToSeconds :: NominalDiffTime -> Pico
secondsToNominalDiffTime :: Pico -> NominalDiffTime
callCommand :: String -> IO ()
dbg1 :: Show a => String -> a -> a
hGetContents :: Handle -> IO String
hGetLine :: Handle -> IO String
stdin :: Handle
listToMaybe :: [a] -> Maybe a
maybeToList :: Maybe a -> [a]
latin1 :: TextEncoding
mkTextEncoding :: String -> IO TextEncoding
utf16 :: TextEncoding
utf16be :: TextEncoding
utf16le :: TextEncoding
utf32 :: TextEncoding
utf32be :: TextEncoding
utf32le :: TextEncoding
utf8 :: TextEncoding
utf8_bom :: TextEncoding
hFileSize :: Handle -> IO Integer
hFlush :: Handle -> IO ()
hGetBuffering :: Handle -> IO BufferMode
hGetEcho :: Handle -> IO Bool
hGetEncoding :: Handle -> IO (Maybe TextEncoding)
hGetPosn :: Handle -> IO HandlePosn
hIsClosed :: Handle -> IO Bool
hIsEOF :: Handle -> IO Bool
hIsOpen :: Handle -> IO Bool
hIsReadable :: Handle -> IO Bool
hIsSeekable :: Handle -> IO Bool
hIsTerminalDevice :: Handle -> IO Bool
hIsWritable :: Handle -> IO Bool
hLookAhead :: Handle -> IO Char
hSeek :: Handle -> SeekMode -> Integer -> IO ()
hSetBinaryMode :: Handle -> Bool -> IO ()
hSetBuffering :: Handle -> BufferMode -> IO ()
hSetEcho :: Handle -> Bool -> IO ()
hSetEncoding :: Handle -> TextEncoding -> IO ()
hSetFileSize :: Handle -> Integer -> IO ()
hSetNewlineMode :: Handle -> NewlineMode -> IO ()
hSetPosn :: HandlePosn -> IO ()
hShow :: Handle -> IO String
hTell :: Handle -> IO Integer
isEOF :: IO Bool
hGetBuf :: Handle -> Ptr a -> Int -> IO Int
hGetBufNonBlocking :: Handle -> Ptr a -> Int -> IO Int
hGetBufSome :: Handle -> Ptr a -> Int -> IO Int
hGetChar :: Handle -> IO Char
hGetContents' :: Handle -> IO String
hPutBuf :: Handle -> Ptr a -> Int -> IO ()
hPutBufNonBlocking :: Handle -> Ptr a -> Int -> IO Int
hPutChar :: Handle -> Char -> IO ()
hWaitForInput :: Handle -> Int -> IO Bool
nativeNewline :: Newline
nativeNewlineMode :: NewlineMode
noNewlineTranslation :: NewlineMode
universalNewlineMode :: NewlineMode
openBinaryFile :: FilePath -> IOMode -> IO Handle
openFile :: FilePath -> IOMode -> IO Handle
withBinaryFile :: FilePath -> IOMode -> (Handle -> IO r) -> IO r
withFile :: FilePath -> IOMode -> (Handle -> IO r) -> IO r
newEmptyMVar :: IO (MVar a)
putMVar :: MVar a -> a -> IO ()
readMVar :: MVar a -> IO a
fixIO :: (a -> IO a) -> IO a
getContents' :: IO String
hPrint :: Show a => Handle -> a -> IO ()
hReady :: Handle -> IO Bool
localeEncoding :: TextEncoding
openBinaryTempFile :: FilePath -> String -> IO (FilePath, Handle)
openBinaryTempFileWithDefaultPermissions :: FilePath -> String -> IO (FilePath, Handle)
openTempFile :: FilePath -> String -> IO (FilePath, Handle)
openTempFileWithDefaultPermissions :: FilePath -> String -> IO (FilePath, Handle)
readFile' :: FilePath -> IO String
combine :: FilePath -> FilePath -> FilePath
createPipe :: IO (Handle, Handle)
createPipeFd :: IO (FD, FD)
createProcess_ :: String -> CreateProcess -> IO (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle)
interruptProcessGroupOf :: ProcessHandle -> IO ()
terminateProcess :: ProcessHandle -> IO ()
getProcessExitCode :: ProcessHandle -> IO (Maybe ExitCode)
cleanupProcess :: (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle) -> IO ()
createProcess :: CreateProcess -> IO (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle)
getCurrentPid :: IO Pid
getPid :: ProcessHandle -> IO (Maybe Pid)
rawSystem :: String -> [String] -> IO ExitCode
readCreateProcess :: CreateProcess -> String -> IO String
readCreateProcessWithExitCode :: CreateProcess -> String -> IO (ExitCode, String, String)
readProcess :: FilePath -> [String] -> String -> IO String
runCommand :: String -> IO ProcessHandle
runInteractiveCommand :: String -> IO (Handle, Handle, Handle, ProcessHandle)
runInteractiveProcess :: FilePath -> [String] -> Maybe FilePath -> Maybe [(String, String)] -> IO (Handle, Handle, Handle, ProcessHandle)
runProcess :: FilePath -> [String] -> Maybe FilePath -> Maybe [(String, String)] -> Maybe Handle -> Maybe Handle -> Maybe Handle -> IO ProcessHandle
shell :: String -> CreateProcess
showCommandForUser :: FilePath -> [String] -> String
spawnCommand :: String -> IO ProcessHandle
spawnProcess :: FilePath -> [String] -> IO ProcessHandle
system :: String -> IO ExitCode
waitForProcess :: ProcessHandle -> IO ExitCode
withCreateProcess :: CreateProcess -> (Maybe Handle -> Maybe Handle -> Maybe Handle -> ProcessHandle -> IO a) -> IO a
dbg0 :: Show a => String -> a -> a
dbg0IO :: (MonadIO m, Show a) => String -> a -> m ()
dbg0With :: (a -> String) -> a -> a
dbg1IO :: (MonadIO m, Show a) => String -> a -> m ()
dbg2 :: Show a => String -> a -> a
dbg2IO :: (MonadIO m, Show a) => String -> a -> m ()
dbg2With :: Show a => (a -> String) -> a -> a
dbg3 :: Show a => String -> a -> a
dbg3IO :: (MonadIO m, Show a) => String -> a -> m ()
dbg3With :: Show a => (a -> String) -> a -> a
dbg4IO :: (MonadIO m, Show a) => String -> a -> m ()
dbg4With :: Show a => (a -> String) -> a -> a
dbg5 :: Show a => String -> a -> a
dbg5IO :: (MonadIO m, Show a) => String -> a -> m ()
dbg5With :: Show a => (a -> String) -> a -> a
dbg6 :: Show a => String -> a -> a
dbg6IO :: (MonadIO m, Show a) => String -> a -> m ()
dbg6With :: Show a => (a -> String) -> a -> a
dbg7IO :: (MonadIO m, Show a) => String -> a -> m ()
dbg7With :: Show a => (a -> String) -> a -> a
dbg8 :: Show a => String -> a -> a
dbg8IO :: (MonadIO m, Show a) => String -> a -> m ()
dbg8With :: Show a => (a -> String) -> a -> a
dbg9 :: Show a => String -> a -> a
dbg9IO :: (MonadIO m, Show a) => String -> a -> m ()
dbg9With :: Show a => (a -> String) -> a -> a
dbgExit :: Show a => String -> a -> a
ptrace :: Show a => a -> a
ptraceAt :: Show a => Int -> String -> a -> a
ptraceAtIO :: (MonadIO m, Show a) => Int -> String -> a -> m ()
ptraceLogAt :: Show a => Int -> String -> a -> a
ptraceLogAtIO :: (MonadIO m, Show a) => Int -> String -> a -> m ()
ptraceOrLogAt :: Show a => Int -> String -> a -> a
ptraceOrLogAtIO :: (MonadIO m, Show a) => Int -> String -> a -> m ()
traceAt :: Int -> String -> a -> a
traceAtWith :: Int -> (a -> String) -> a -> a
traceLog :: String -> a -> a
traceLogAt :: Int -> String -> a -> a
traceLogAtIO :: MonadIO m => Int -> String -> m ()
traceLogAtWith :: Int -> (a -> String) -> a -> a
traceLogIO :: MonadIO m => String -> m ()
traceLogWith :: (a -> String) -> a -> a
traceOrLog :: String -> a -> a
traceOrLogAt :: Int -> String -> a -> a
traceWith :: (a -> String) -> a -> a
bgColor :: ColorIntensity -> Color -> String -> String
bgColorB :: ColorIntensity -> Color -> WideBuilder -> WideBuilder
black' :: String -> String
blue' :: String -> String
bold' :: String -> String
brightBlack' :: String -> String
brightBlue' :: String -> String
brightCyan' :: String -> String
brightGreen' :: String -> String
brightMagenta' :: String -> String
brightRed' :: String -> String
brightWhite' :: String -> String
brightYellow' :: String -> String
color :: ColorIntensity -> Color -> String -> String
colorOption :: String
cyan' :: String -> String
expandGlob :: FilePath -> FilePath -> IO [FilePath]
expandHomePath :: FilePath -> IO FilePath
expandPath :: FilePath -> FilePath -> IO FilePath
faint' :: String -> String
getCurrentLocalTime :: IO LocalTime
getCurrentZonedTime :: IO ZonedTime
getTerminalHeight :: IO (Maybe Int)
getTerminalHeightWidth :: IO (Maybe (Int, Int))
getTerminalWidth :: IO (Maybe Int)
green' :: String -> String
hasOutputFile :: Bool
magenta' :: String -> String
outputFileOption :: Maybe String
pprint :: Show a => a -> IO ()
pprint' :: Show a => a -> IO ()
progArgs :: [String]
pshow :: Show a => a -> String
pshow' :: Show a => a -> String
readFileOrStdinPortably :: String -> IO Text
readFilePortably :: FilePath -> IO Text
readHandlePortably :: Handle -> IO Text
red' :: String -> String
rgb' :: Word8 -> Word8 -> Word8 -> String -> String
setupPager :: IO ()
sortByModTime :: [FilePath] -> IO [FilePath]
terminalBgColor :: Maybe (RGB Float)
terminalFgColor :: Maybe (RGB Float)
terminalIsLight :: Maybe Bool
terminalLightness :: Maybe Float
usageError :: String -> a
useColorOnStderr :: Bool
useColorOnStdout :: Bool
white' :: String -> String
yellow' :: String -> String
choiceInState :: forall s (m :: Type -> Type) a. [StateT s (ParsecT HledgerParseErrorData Text m) a] -> StateT s (ParsecT HledgerParseErrorData Text m) a
dbgparse :: forall (m :: Type -> Type). Int -> String -> TextParser m ()
eolof :: forall (m :: Type -> Type). TextParser m ()
fromparse :: (Show t, Show (Token t), Show e) => Either (ParseErrorBundle t e) a -> a
isNewline :: Char -> Bool
nonspace :: forall (m :: Type -> Type). TextParser m Char
parseWithState :: Monad m => st -> StateT st (ParsecT HledgerParseErrorData Text m) a -> Text -> m (Either HledgerParseErrors a)
parseWithState' :: Stream s => st -> StateT st (ParsecT e s Identity) a -> s -> Either (ParseErrorBundle s e) a
parseerror :: (Show t, Show (Token t), Show e) => ParseErrorBundle t e -> a
parsewithString :: Parsec e String a -> String -> Either (ParseErrorBundle String e) a
restofline :: forall (m :: Type -> Type). TextParser m String
rtp :: TextParser Identity a -> Text -> Either HledgerParseErrors a
runTextParser :: TextParser Identity a -> Text -> Either HledgerParseErrors a
showDateParseError :: (Show t, Show (Token t), Show e) => ParseErrorBundle t e -> String
skipNonNewlineSpaces' :: forall s (m :: Type -> Type). (Stream s, Token s ~ Char) => ParsecT HledgerParseErrorData s m Bool
skipNonNewlineSpaces1 :: forall s (m :: Type -> Type). (Stream s, Token s ~ Char) => ParsecT HledgerParseErrorData s m ()
spacenonewline :: forall s (m :: Type -> Type). (Stream s, Char ~ Token s) => ParsecT HledgerParseErrorData s m Char
surroundedBy :: Applicative m => m openclose -> m a -> m a
traceOrLogParse :: forall (m :: Type -> Type). String -> TextParser m ()
regexMatch :: Regexp -> String -> Bool
regexMatchText :: Regexp -> Text -> Bool
regexReplace :: Regexp -> Replacement -> String -> Either RegexError String
regexReplaceAllBy :: Regexp -> (String -> String) -> String -> String
regexReplaceUnmemo :: Regexp -> Replacement -> String -> Either RegexError String
toRegex :: Text -> Either RegexError Regexp
toRegex' :: Text -> Regexp
toRegexCI :: Text -> Either RegexError Regexp
toRegexCI' :: Text -> Regexp
chomp :: String -> String
chomp1 :: String -> String
elideLeft :: Int -> String -> String
elideRight :: Int -> String -> String
lowercase :: String -> String
lstrip :: String -> String
quoteForCommandLine :: String -> String
quoteIfNeeded :: String -> String
rstrip :: String -> String
singleQuoteIfNeeded :: String -> String
singleline :: String -> String
strWidth :: String -> Int
strWidthAnsi :: String -> Int
strip1By :: (Char -> Bool) -> String -> String
strip1Char :: Char -> Char -> String -> String
stripAnsi :: String -> String
stripBy :: (Char -> Bool) -> String -> String
stripbrackets :: String -> String
takeWidth :: Int -> String -> String
underline :: String -> String
unwords' :: [String] -> String
words' :: String -> [String]
assertLeft :: (HasCallStack, Eq b, Show b) => Either a b -> Assertion
assertParse :: (HasCallStack, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> Assertion
assertParseE :: (HasCallStack, Eq a, Show a, Default st) => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError IO)) a -> Text -> Assertion
assertParseEq :: (HasCallStack, Eq a, Show a, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> a -> Assertion
assertParseEqE :: (Default st, Eq a, Show a, HasCallStack) => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError IO)) a -> Text -> a -> Assertion
assertParseEqOn :: (HasCallStack, Eq b, Show b, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> (a -> b) -> b -> Assertion
assertParseError :: (HasCallStack, Eq a, Show a, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> String -> Assertion
assertParseErrorE :: (Default st, Eq a, Show a, HasCallStack) => StateT st (ParsecT HledgerParseErrorData Text (ExceptT FinalParseError IO)) a -> Text -> String -> Assertion
assertParseStateOn :: (HasCallStack, Eq b, Show b, Default st) => StateT st (ParsecT HledgerParseErrorData Text IO) a -> Text -> (st -> b) -> b -> Assertion
assertRight :: (HasCallStack, Eq a, Show a) => Either a b -> Assertion
escapeDoubleQuotes :: Text -> Text
fitText :: Maybe Int -> Maybe Int -> Bool -> Bool -> Text -> Text
formatText :: Bool -> Maybe Int -> Maybe Int -> Text -> Text
linesPrepend :: Text -> Text -> Text
linesPrepend2 :: Text -> Text -> Text -> Text
quoteIfSpaced :: Text -> Text
stripquotes :: Text -> Text
tests_Text :: TestTree
textChomp :: Text -> Text
textConcatBottomPadded :: [Text] -> Text
textConcatTopPadded :: [Text] -> Text
textElideRight :: Int -> Text -> Text
textTakeWidth :: Int -> Text -> Text
textUnbracket :: Text -> Text
unlinesB :: [Builder] -> Builder
traceIO :: String -> IO ()
traceShowId :: Show a => a -> a
charWidth :: Char -> Int
curry2 :: ((a, b) -> c) -> a -> b -> c
curry4 :: ((a, b, c, d) -> e) -> a -> b -> c -> d -> e
fifth5 :: (a, b, c, d, e) -> e
fifth6 :: (a, b, c, d, e, f) -> e
first5 :: (a, b, c, d, e) -> a
first6 :: (a, b, c, d, e, f) -> a
fourth4 :: (a, b, c, d) -> d
fourth5 :: (a, b, c, d, e) -> d
fourth6 :: (a, b, c, d, e, f) -> d
makeHledgerClassyLenses :: Name -> DecsQ
mapM' :: Monad f => (a -> f b) -> [a] -> f [b]
maximum' :: Integral a => [a] -> a
maximumStrict :: Ord a => [a] -> a
minimumStrict :: Ord a => [a] -> a
multicol :: Int -> [String] -> String
second4 :: (a, b, c, d) -> b
second5 :: (a, b, c, d, e) -> b
second6 :: (a, b, c, d, e, f) -> b
sequence' :: Monad f => [f a] -> f [a]
sixth6 :: (a, b, c, d, e, f) -> f
splitAtElement :: Eq a => a -> [a] -> [[a]]
sumStrict :: Num a => [a] -> a
tests_Utils :: TestTree
third4 :: (a, b, c, d) -> c
third5 :: (a, b, c, d, e) -> c
third6 :: (a, b, c, d, e, f) -> c
uncurry2 :: (a -> b -> c) -> (a, b) -> c
uncurry4 :: (a -> b -> c -> d -> e) -> (a, b, c, d) -> e
adjustOption :: IsOption v => (v -> v) -> TestTree -> TestTree
askOption :: IsOption v => (v -> TestTree) -> TestTree
defaultIngredients :: [Ingredient]
localOption :: IsOption v => v -> TestTree -> TestTree
withResource :: IO a -> (a -> IO ()) -> (IO a -> TestTree) -> TestTree
defaultMainWithIngredients :: [Ingredient] -> TestTree -> IO ()
after_ :: DependencyType -> Expr -> TestTree -> TestTree
testGroup :: TestName -> [TestTree] -> TestTree
includingOptions :: [OptionDescription] -> Ingredient
mkTimeout :: Integer -> Timeout
testCase :: TestName -> Assertion -> TestTree
testCaseInfo :: TestName -> IO String -> TestTree
(@=?) :: (Eq a, Show a, HasCallStack) => a -> a -> Assertion
(@?) :: (AssertionPredicable t, HasCallStack) => t -> String -> Assertion
(@?=) :: (Eq a, Show a, HasCallStack) => a -> a -> Assertion
assertBool :: HasCallStack => String -> Bool -> Assertion
assertEqual :: (Eq a, Show a, HasCallStack) => String -> a -> a -> Assertion
assertFailure :: HasCallStack => String -> IO a
assertString :: HasCallStack => String -> Assertion
testCaseSteps :: TestName -> ((String -> IO ()) -> Assertion) -> TestTree
trace :: String -> a -> a
isUpper :: Char -> Bool
formatInt :: (Integral a, Bounded a) => a -> FieldFormatter
errorBadArgument :: a
errorBadFormat :: Char -> a
errorMissingArgument :: a
formatChar :: Char -> FieldFormatter
formatInteger :: Integer -> FieldFormatter
hPrintf :: HPrintfType r => Handle -> String -> r
perror :: String -> a
vFmt :: Char -> FieldFormat -> FieldFormat
executablePath :: Maybe (IO (Maybe FilePath))
getExecutablePath :: IO FilePath
mkIOError :: IOErrorType -> String -> Maybe Handle -> Maybe FilePath -> IOError
getArgs :: IO [String]
getEnvironment :: IO [(String, String)]
getProgName :: IO String
setEnv :: String -> String -> IO ()
unsetEnv :: String -> IO ()
withProgName :: String -> IO a -> IO a
isPathSeparator :: Char -> Bool
isRelative :: FilePath -> Bool
iterate' :: (a -> a) -> a -> [a]
takeMVar :: MVar a -> IO a
mode :: Name -> a -> Help -> Arg a -> [Flag a] -> Mode a
normalise :: FilePath -> FilePath
deleteBy :: (a -> a -> Bool) -> a -> [a] -> [a]
deleteFirstsBy :: (a -> a -> Bool) -> [a] -> [a] -> [a]
genericDrop :: Integral i => i -> [a] -> [a]
genericIndex :: Integral i => [a] -> i -> a
genericLength :: Num i => [a] -> i
genericReplicate :: Integral i => i -> a -> [a]
genericSplitAt :: Integral i => i -> [a] -> ([a], [a])
insertBy :: (a -> a -> Ordering) -> a -> [a] -> [a]
intersectBy :: (a -> a -> Bool) -> [a] -> [a] -> [a]
permutations :: [a] -> [[a]]
subsequences :: [a] -> [[a]]
unionBy :: (a -> a -> Bool) -> [a] -> [a] -> [a]
unzip7 :: [(a, b, c, d, e, f, g)] -> ([a], [b], [c], [d], [e], [f], [g])
zip7 :: [a] -> [b] -> [c] -> [d] -> [e] -> [f] -> [g] -> [(a, b, c, d, e, f, g)]
zipWith7 :: (a -> b -> c -> d -> e -> f -> g -> h) -> [a] -> [b] -> [c] -> [d] -> [e] -> [f] -> [g] -> [h]
isSubsequenceOf :: Eq a => [a] -> [a] -> Bool
lefts :: [Either a b] -> [a]
rights :: [Either a b] -> [b]
asum :: (Foldable t, Alternative f) => t (f a) -> f a
msum :: (Foldable t, MonadPlus m) => t (m a) -> m a
flagOpt :: String -> [Name] -> Update a -> FlagHelp -> Help -> Flag a
flagArg :: Update a -> FlagHelp -> Arg a
toGroup :: [a] -> Group a
helpText :: [String] -> HelpFormat -> Mode a -> [Text]
definputopts :: InputOpts
rawOptsToInputOpts :: Day -> RawOpts -> InputOpts
rawOptsToReportSpec :: Day -> RawOpts -> Either String ReportSpec
expandArgsAt :: [String] -> IO [String]
defaultJournalPath :: IO String
getCurrentDirectory :: IO FilePath
splitReaderPrefix :: PrefixedFilePath -> (Maybe String, FilePath)
splitExtension :: FilePath -> (String, String)
optional :: Alternative f => f a -> f (Maybe a)
takeBaseName :: FilePath -> String
takeExtension :: FilePath -> String
throwTo :: Exception e => ThreadId -> e -> IO ()
(<$!>) :: Monad m => (a -> b) -> m a -> m b
(>=>) :: Monad m => (a -> m b) -> (b -> m c) -> a -> m c
replicateM_ :: Applicative m => Int -> m a -> m ()
unless :: Applicative f => Bool -> f () -> f ()
forever :: Applicative f => f a -> f b
mapAndUnzipM :: Applicative m => (a -> m (b, c)) -> [a] -> m ([b], [c])
mfilter :: MonadPlus m => (a -> Bool) -> m a -> m a
guard :: Alternative f => Bool -> f ()
lexLitChar :: ReadS String
readLitChar :: ReadS Char
generalCategory :: Char -> GeneralCategory
isAlpha :: Char -> Bool
isAsciiLower :: Char -> Bool
isAsciiUpper :: Char -> Bool
isControl :: Char -> Bool
isHexDigit :: Char -> Bool
isLatin1 :: Char -> Bool
isLower :: Char -> Bool
isOctDigit :: Char -> Bool
isPrint :: Char -> Bool
isPunctuation :: Char -> Bool
isSymbol :: Char -> Bool
digitToInt :: Char -> Int
isLetter :: Char -> Bool
isMark :: Char -> Bool
isNumber :: Char -> Bool
isSeparator :: Char -> Bool
lastDef :: a -> [a] -> a
foldl1Def' :: a -> (a -> a -> a) -> [a] -> a
foldl1Def :: a -> (a -> a -> a) -> [a] -> a
foldr1Def :: a -> (a -> a -> a) -> [a] -> a
abort :: Partial => String -> a
assertNote :: Partial => String -> Bool -> a -> a
atDef :: a -> [a] -> Int -> a
atNote :: Partial => String -> [a] -> Int -> a
cycleDef :: [a] -> [a] -> [a]
cycleMay :: [a] -> Maybe [a]
cycleNote :: Partial => String -> [a] -> [a]
elemIndexJust :: (Partial, Eq a) => a -> [a] -> Int
elemIndexJustDef :: Eq a => Int -> a -> [a] -> Int
elemIndexJustNote :: (Partial, Eq a) => String -> a -> [a] -> Int
findIndexJust :: (a -> Bool) -> [a] -> Int
findIndexJustDef :: Int -> (a -> Bool) -> [a] -> Int
findIndexJustNote :: Partial => String -> (a -> Bool) -> [a] -> Int
findJust :: (a -> Bool) -> [a] -> a
findJustDef :: a -> (a -> Bool) -> [a] -> a
findJustNote :: Partial => String -> (a -> Bool) -> [a] -> a
foldl1May :: (a -> a -> a) -> [a] -> Maybe a
foldl1May' :: (a -> a -> a) -> [a] -> Maybe a
foldl1Note :: Partial => String -> (a -> a -> a) -> [a] -> a
foldl1Note' :: Partial => String -> (a -> a -> a) -> [a] -> a
foldr1May :: (a -> a -> a) -> [a] -> Maybe a
foldr1Note :: Partial => String -> (a -> a -> a) -> [a] -> a
fromJustDef :: a -> Maybe a -> a
fromJustNote :: Partial => String -> Maybe a -> a
headNote :: Partial => String -> [a] -> a
indexDef :: Ix a => Int -> (a, a) -> a -> Int
indexMay :: Ix a => (a, a) -> a -> Maybe Int
indexNote :: (Partial, Ix a) => String -> (a, a) -> a -> Int
initDef :: [a] -> [a] -> [a]
initMay :: [a] -> Maybe [a]
initNote :: Partial => String -> [a] -> [a]
initSafe :: [a] -> [a]
lastMay :: [a] -> Maybe a
lastNote :: Partial => String -> [a] -> a
lookupJust :: (Eq a, Partial) => a -> [(a, b)] -> b
lookupJustDef :: Eq a => b -> a -> [(a, b)] -> b
lookupJustNote :: (Partial, Eq a) => String -> a -> [(a, b)] -> b
maximumBound :: Ord a => a -> [a] -> a
maximumBoundBy :: a -> (a -> a -> Ordering) -> [a] -> a
maximumBounded :: (Ord a, Bounded a) => [a] -> a
maximumByDef :: a -> (a -> a -> Ordering) -> [a] -> a
maximumByMay :: (a -> a -> Ordering) -> [a] -> Maybe a
maximumByNote :: Partial => String -> (a -> a -> Ordering) -> [a] -> a
maximumDef :: Ord a => a -> [a] -> a
maximumNote :: (Partial, Ord a) => String -> [a] -> a
minimumBound :: Ord a => a -> [a] -> a
minimumBoundBy :: a -> (a -> a -> Ordering) -> [a] -> a
minimumBounded :: (Ord a, Bounded a) => [a] -> a
minimumByDef :: a -> (a -> a -> Ordering) -> [a] -> a
minimumByMay :: (a -> a -> Ordering) -> [a] -> Maybe a
minimumByNote :: Partial => String -> (a -> a -> Ordering) -> [a] -> a
minimumDef :: Ord a => a -> [a] -> a
minimumMay :: Ord a => [a] -> Maybe a
minimumNote :: (Partial, Ord a) => String -> [a] -> a
predDef :: (Enum a, Eq a, Bounded a) => a -> a -> a
predMay :: (Enum a, Eq a, Bounded a) => a -> Maybe a
predNote :: (Partial, Enum a, Eq a, Bounded a) => String -> a -> a
predSafe :: (Enum a, Eq a, Bounded a) => a -> a
readDef :: Read a => a -> String -> a
readEitherSafe :: Read a => String -> Either String a
readNote :: (Partial, Read a) => String -> String -> a
scanl1Def :: [a] -> (a -> a -> a) -> [a] -> [a]
scanl1May :: (a -> a -> a) -> [a] -> Maybe [a]
scanl1Note :: Partial => String -> (a -> a -> a) -> [a] -> [a]
scanr1Def :: [a] -> (a -> a -> a) -> [a] -> [a]
scanr1May :: (a -> a -> a) -> [a] -> Maybe [a]
scanr1Note :: Partial => String -> (a -> a -> a) -> [a] -> [a]
succDef :: (Enum a, Eq a, Bounded a) => a -> a -> a
succMay :: (Enum a, Eq a, Bounded a) => a -> Maybe a
succNote :: (Partial, Enum a, Eq a, Bounded a) => String -> a -> a
succSafe :: (Enum a, Eq a, Bounded a) => a -> a
tailDef :: [a] -> [a] -> [a]
tailMay :: [a] -> Maybe [a]
tailNote :: Partial => String -> [a] -> [a]
tailSafe :: [a] -> [a]
toEnumDef :: (Enum a, Bounded a) => a -> Int -> a
toEnumMay :: (Enum a, Bounded a) => Int -> Maybe a
toEnumNote :: (Partial, Enum a, Bounded a) => String -> Int -> a
toEnumSafe :: (Enum a, Bounded a) => Int -> a
modes :: String -> a -> Help -> [Mode a] -> Mode a
complete :: Mode a -> [String] -> (Int, Int) -> [Complete]
joinArgs :: [String] -> String
splitArgs :: String -> [String]
checkMode :: Mode a -> Maybe String
flagBool :: [Name] -> (Bool -> a -> a) -> Help -> Flag a
fromFlagOpt :: FlagInfo -> String
fromGroup :: Group a -> [a]
modeEmpty :: a -> Mode a
modeFlags :: Mode a -> [Flag a]
modeModes :: Mode a -> [Mode a]
parseBool :: String -> Maybe Bool
remap2 :: Remap m => (a -> b) -> (b -> a) -> m a -> m b
remapUpdate :: (a -> b) -> (b -> (a, a -> b)) -> Update a -> Update b
flagHelpFormat :: (HelpFormat -> TextFormat -> a -> a) -> Flag a
flagHelpSimple :: (a -> a) -> Flag a
flagNumericVersion :: (a -> a) -> Flag a
flagVersion :: (a -> a) -> Flag a
flagsVerbosity :: (Verbosity -> a -> a) -> [Flag a]
processArgs :: Mode a -> IO a
processValue :: Mode a -> [String] -> a
processValueIO :: Mode a -> [String] -> IO a
isSymbolicLink :: FilePath -> IO Bool
canonicalizePath :: FilePath -> IO FilePath
copyFileWithMetadata :: FilePath -> FilePath -> IO ()
copyPermissions :: FilePath -> FilePath -> IO ()
createDirectory :: FilePath -> IO ()
createDirectoryIfMissing :: Bool -> FilePath -> IO ()
createDirectoryLink :: FilePath -> FilePath -> IO ()
createFileLink :: FilePath -> FilePath -> IO ()
doesDirectoryExist :: FilePath -> IO Bool
doesPathExist :: FilePath -> IO Bool
emptyPermissions :: Permissions
exeExtension :: String
findExecutable :: String -> IO (Maybe FilePath)
findExecutables :: String -> IO [FilePath]
findExecutablesInDirectories :: [FilePath] -> String -> IO [FilePath]
findFile :: [FilePath] -> String -> IO (Maybe FilePath)
findFileWith :: (FilePath -> IO Bool) -> [FilePath] -> String -> IO (Maybe FilePath)
findFiles :: [FilePath] -> String -> IO [FilePath]
findFilesWith :: (FilePath -> IO Bool) -> [FilePath] -> String -> IO [FilePath]
getAccessTime :: FilePath -> IO UTCTime
getAppUserDataDirectory :: FilePath -> IO FilePath
getFileSize :: FilePath -> IO Integer
getHomeDirectory :: IO FilePath
getPermissions :: FilePath -> IO Permissions
getSymbolicLinkTarget :: FilePath -> IO FilePath
getTemporaryDirectory :: IO FilePath
getUserDocumentsDirectory :: IO FilePath
getXdgDirectory :: XdgDirectory -> FilePath -> IO FilePath
getXdgDirectoryList :: XdgDirectoryList -> IO [FilePath]
listDirectory :: FilePath -> IO [FilePath]
makeAbsolute :: FilePath -> IO FilePath
makeRelativeToCurrentDirectory :: FilePath -> IO FilePath
pathIsSymbolicLink :: FilePath -> IO Bool
removeDirectory :: FilePath -> IO ()
removeDirectoryLink :: FilePath -> IO ()
removeDirectoryRecursive :: FilePath -> IO ()
removeFile :: FilePath -> IO ()
removePathForcibly :: FilePath -> IO ()
renameDirectory :: FilePath -> FilePath -> IO ()
renameFile :: FilePath -> FilePath -> IO ()
renamePath :: FilePath -> FilePath -> IO ()
setAccessTime :: FilePath -> UTCTime -> IO ()
setCurrentDirectory :: FilePath -> IO ()
setModificationTime :: FilePath -> UTCTime -> IO ()
setOwnerExecutable :: Bool -> Permissions -> Permissions
setOwnerReadable :: Bool -> Permissions -> Permissions
setOwnerSearchable :: Bool -> Permissions -> Permissions
setOwnerWritable :: Bool -> Permissions -> Permissions
setPermissions :: FilePath -> Permissions -> IO ()
withCurrentDirectory :: FilePath -> IO a -> IO a
dropTrailingPathSeparator :: FilePath -> FilePath
splitPath :: FilePath -> [FilePath]
addExtension :: FilePath -> String -> FilePath
splitSearchPath :: String -> [FilePath]
addTrailingPathSeparator :: FilePath -> FilePath
makeRelative :: FilePath -> FilePath -> FilePath
die :: String -> IO a
exitWith :: ExitCode -> IO a
(-<.>) :: FilePath -> String -> FilePath
(<.>) :: FilePath -> String -> FilePath
dropDrive :: FilePath -> FilePath
dropExtension :: FilePath -> FilePath
dropExtensions :: FilePath -> FilePath
dropFileName :: FilePath -> FilePath
equalFilePath :: FilePath -> FilePath -> Bool
extSeparator :: Char
getSearchPath :: IO [FilePath]
hasDrive :: FilePath -> Bool
hasExtension :: FilePath -> Bool
hasTrailingPathSeparator :: FilePath -> Bool
isAbsolute :: FilePath -> Bool
isDrive :: FilePath -> Bool
isExtSeparator :: Char -> Bool
isExtensionOf :: String -> FilePath -> Bool
isSearchPathSeparator :: Char -> Bool
isValid :: FilePath -> Bool
joinDrive :: FilePath -> FilePath -> FilePath
joinPath :: [FilePath] -> FilePath
makeValid :: FilePath -> FilePath
pathSeparator :: Char
pathSeparators :: [Char]
replaceBaseName :: FilePath -> String -> FilePath
replaceDirectory :: FilePath -> String -> FilePath
replaceExtension :: FilePath -> String -> FilePath
replaceExtensions :: FilePath -> String -> FilePath
replaceFileName :: FilePath -> String -> FilePath
searchPathSeparator :: Char
splitDirectories :: FilePath -> [FilePath]
splitDrive :: FilePath -> (FilePath, FilePath)
splitExtensions :: FilePath -> (FilePath, String)
stripExtension :: String -> FilePath -> Maybe FilePath
takeDrive :: FilePath -> FilePath
takeExtensions :: FilePath -> String
takeFileName :: FilePath -> FilePath
filterQueryOrNotQuery :: (Query -> Bool) -> Query -> Query
generatedTransactionTag :: Query
inAccount :: [QueryOpt] -> Maybe (AccountName, Bool)
inAccountQuery :: [QueryOpt] -> Maybe Query
matchesAccount :: Query -> AccountName -> Bool
matchesAccountExtra :: (AccountName -> Maybe AccountType) -> (AccountName -> [Tag]) -> Query -> AccountName -> Bool
matchesCommodity :: Query -> CommoditySymbol -> Bool
matchesDescription :: Query -> Text -> Bool
matchesMixedAmount :: Query -> MixedAmount -> Bool
matchesPayeeWIP :: Query -> Payee -> Bool
matchesPriceDirective :: Query -> PriceDirective -> Bool
matchesQuery :: (Query -> Bool) -> Query -> Bool
matchesTags :: Regexp -> Maybe Regexp -> [Tag] -> Bool
noteTag :: Maybe Text -> Either RegexError Query
parseAccountType :: Bool -> Text -> Either String AccountType
parseQuery :: Day -> Text -> Either String (Query, [QueryOpt])
parseQueryList :: Day -> [Text] -> Either String (Query, [QueryOpt])
parseQueryTerm :: Day -> Text -> Either String (Query, [QueryOpt])
payeeTag :: Maybe Text -> Either RegexError Query
queryDateSpan :: Bool -> Query -> DateSpan
queryDateSpan' :: Query -> DateSpan
queryDepth :: Query -> Maybe Int
queryEndDate :: Bool -> Query -> Maybe Day
queryIsAcct :: Query -> Bool
queryIsAmt :: Query -> Bool
queryIsCode :: Query -> Bool
queryIsDate :: Query -> Bool
queryIsDate2 :: Query -> Bool
queryIsDateOrDate2 :: Query -> Bool
queryIsDesc :: Query -> Bool
queryIsNull :: Query -> Bool
queryIsReal :: Query -> Bool
queryIsStartDateOnly :: Bool -> Query -> Bool
queryIsStatus :: Query -> Bool
queryIsTag :: Query -> Bool
queryIsTransactionRelated :: Query -> Bool
queryIsType :: Query -> Bool
queryStartDate :: Bool -> Query -> Maybe Day
queryprefixes :: [Text]
simplifyQuery :: Query -> Query
tests_Query :: TestTree
words'' :: [Text] -> Text -> [Text]
defaultJournal :: IO Journal
ensureJournalFileExists :: FilePath -> IO ()
orDieTrying :: MonadIO m => ExceptT String m a -> m a
readJournal :: InputOpts -> Maybe FilePath -> Text -> ExceptT String IO Journal
readJournal' :: Text -> IO Journal
readJournalFile :: InputOpts -> PrefixedFilePath -> ExceptT String IO Journal
readJournalFile' :: PrefixedFilePath -> IO Journal
readJournalFiles :: InputOpts -> [PrefixedFilePath] -> ExceptT String IO Journal
readJournalFiles' :: [PrefixedFilePath] -> IO Journal
requireJournalFileExists :: FilePath -> IO ()
tests_Read :: TestTree
accountaliasp :: forall (m :: Type -> Type). TextParser m AccountAlias
accountnamep :: forall (m :: Type -> Type). TextParser m AccountName
addAccountAlias :: MonadState Journal m => AccountAlias -> m ()
addDeclaredAccountTags :: forall (m :: Type -> Type). AccountName -> [Tag] -> JournalParser m ()
addDeclaredAccountType :: forall (m :: Type -> Type). AccountName -> AccountType -> JournalParser m ()
aliasesFromOpts :: InputOpts -> [AccountAlias]
amountp :: forall (m :: Type -> Type). JournalParser m Amount
amountp' :: forall (m :: Type -> Type). Bool -> JournalParser m Amount
balanceassertionp :: forall (m :: Type -> Type). JournalParser m BalanceAssertion
bracketeddatetagsp :: forall (m :: Type -> Type). Maybe Year -> TextParser m [(TagName, Day)]
clearAccountAliases :: MonadState Journal m => m ()
codep :: forall (m :: Type -> Type). TextParser m Text
commoditysymbolp :: forall (m :: Type -> Type). TextParser m CommoditySymbol
costp :: forall (m :: Type -> Type). Amount -> JournalParser m AmountPrice
datep :: forall (m :: Type -> Type). JournalParser m Day
datetimep :: forall (m :: Type -> Type). JournalParser m LocalTime
descriptionp :: forall (m :: Type -> Type). TextParser m Text
emptyorcommentlinep :: forall (m :: Type -> Type). TextParser m ()
followingcommentp :: forall (m :: Type -> Type). TextParser m Text
fromRawNumber :: RawNumber -> Maybe Integer -> Either String (Quantity, Word8, Maybe Char, Maybe DigitGroupStyle)
getAccountAliases :: MonadState Journal m => m [AccountAlias]
getAmountStyle :: forall (m :: Type -> Type). CommoditySymbol -> JournalParser m (Maybe AmountStyle)
getDefaultAmountStyle :: forall (m :: Type -> Type). JournalParser m (Maybe AmountStyle)
getDefaultCommodityAndStyle :: forall (m :: Type -> Type). JournalParser m (Maybe (CommoditySymbol, AmountStyle))
getParentAccount :: forall (m :: Type -> Type). JournalParser m AccountName
getYear :: forall (m :: Type -> Type). JournalParser m (Maybe Year)
initialiseAndParseJournal :: ErroringJournalParser IO ParsedJournal -> InputOpts -> FilePath -> Text -> ExceptT String IO Journal
isLineCommentStart :: Char -> Bool
isSameLineCommentStart :: Char -> Bool
journalAddAutoPostings :: Bool -> Day -> BalancingOpts -> Journal -> Either String Journal
journalAddFile :: (FilePath, Text) -> Journal -> Journal
journalAddForecast :: Bool -> Maybe DateSpan -> Journal -> Journal
journalFinalise :: InputOpts -> FilePath -> Text -> ParsedJournal -> ExceptT String IO Journal
lotcostp :: forall (m :: Type -> Type). JournalParser m ()
modifiedaccountnamep :: forall (m :: Type -> Type). JournalParser m AccountName
multilinecommentp :: forall (m :: Type -> Type). TextParser m ()
noncommenttext1p :: forall (m :: Type -> Type). TextParser m Text
noncommenttextp :: forall (m :: Type -> Type). TextParser m Text
numberp :: forall (m :: Type -> Type). Maybe AmountStyle -> TextParser m (Quantity, Word8, Maybe Char, Maybe DigitGroupStyle)
parseAndFinaliseJournal :: ErroringJournalParser IO ParsedJournal -> InputOpts -> FilePath -> Text -> ExceptT String IO Journal
parseamount :: String -> Either HledgerParseErrors Amount
parseamount' :: String -> Amount
parsemixedamount :: String -> Either HledgerParseErrors MixedAmount
parsemixedamount' :: String -> MixedAmount
popParentAccount :: forall (m :: Type -> Type). JournalParser m ()
postingcommentp :: forall (m :: Type -> Type). Maybe Year -> TextParser m (Text, [Tag], Maybe Day, Maybe Day)
pushParentAccount :: forall (m :: Type -> Type). AccountName -> JournalParser m ()
rawnumberp :: forall (m :: Type -> Type). TextParser m (Either AmbiguousNumber RawNumber)
secondarydatep :: forall (m :: Type -> Type). Day -> TextParser m Day
setDefaultCommodityAndStyle :: forall (m :: Type -> Type). (CommoditySymbol, AmountStyle) -> JournalParser m ()
setYear :: forall (m :: Type -> Type). Year -> JournalParser m ()
singlespacednoncommenttext1p :: forall (m :: Type -> Type). TextParser m Text
singlespacedtext1p :: forall (m :: Type -> Type). TextParser m Text
singlespacedtextsatisfying1p :: forall (m :: Type -> Type). (Char -> Bool) -> TextParser m Text
singlespacep :: forall (m :: Type -> Type). TextParser m ()
spaceandamountormissingp :: forall (m :: Type -> Type). JournalParser m MixedAmount
statusp :: forall (m :: Type -> Type). TextParser m Status
tests_Common :: TestTree
transactioncommentp :: forall (m :: Type -> Type). TextParser m (Text, [Tag])
forecastPeriod :: InputOpts -> Journal -> Maybe DateSpan
findReader :: forall (m :: Type -> Type). MonadIO m => Maybe StorageFormat -> Maybe FilePath -> Maybe (Reader m)
runJournalParser :: Monad m => JournalParser m a -> Text -> m (Either HledgerParseErrors a)
tmpostingrulep :: forall (m :: Type -> Type). Maybe Year -> JournalParser m TMPostingRule
tests_Reports :: TestTree
accountTransactionsReport :: ReportSpec -> Journal -> Query -> AccountTransactionsReport
accountTransactionsReportByCommodity :: AccountTransactionsReport -> [(CommoditySymbol, AccountTransactionsReport)]
accountTransactionsReportItems :: Query -> Query -> MixedAmount -> (MixedAmount -> MixedAmount) -> (AccountName -> Maybe AccountType) -> [(Day, Transaction)] -> [AccountTransactionsReportItem]
tests_AccountTransactionsReport :: TestTree
transactionRegisterDate :: WhichDate -> Query -> Query -> Transaction -> Day
triAmount :: (a, b, c, d, e, f) -> e
triBalance :: (a, b, c, d, e, f) -> f
triCommodityAmount :: CommoditySymbol -> (a, b, c, d, MixedAmount, f) -> MixedAmount
triCommodityBalance :: CommoditySymbol -> (a, b, c, d, e, MixedAmount) -> MixedAmount
triDate :: (a, Transaction, c, d, e, f) -> Day
triOrigTransaction :: (a, b, c, d, e, f) -> a
balanceReport :: ReportSpec -> Journal -> BalanceReport
flatShowsExclusiveBalance :: Bool
tests_BalanceReport :: TestTree
budgetReport :: ReportSpec -> BalancingOpts -> DateSpan -> Journal -> BudgetReport
budgetReportAsCsv :: ReportOpts -> BudgetReport -> [[Text]]
budgetReportAsTable :: ReportOpts -> BudgetReport -> Table Text Text WideBuilder
budgetReportAsText :: ReportOpts -> BudgetReport -> Text
combineBudgetAndActual :: ReportOpts -> Journal -> MultiBalanceReport -> MultiBalanceReport -> BudgetReport
tests_BudgetReport :: TestTree
entriesReport :: ReportSpec -> Journal -> EntriesReport
tests_EntriesReport :: TestTree
compoundBalanceReport :: ReportSpec -> Journal -> [CBCSubreportSpec a] -> CompoundPeriodicReport a MixedAmount
compoundBalanceReportWith :: ReportSpec -> Journal -> PriceOracle -> [CBCSubreportSpec a] -> CompoundPeriodicReport a MixedAmount
generateMultiBalanceReport :: ReportSpec -> Journal -> PriceOracle -> Set AccountName -> [(DateSpan, [Posting])] -> HashMap AccountName Account -> MultiBalanceReport
getPostings :: ReportSpec -> Journal -> PriceOracle -> [Posting]
getPostingsByColumn :: ReportSpec -> Journal -> PriceOracle -> [DateSpan] -> [(DateSpan, [Posting])]
makeReportQuery :: ReportSpec -> DateSpan -> ReportSpec
multiBalanceReport :: ReportSpec -> Journal -> MultiBalanceReport
multiBalanceReportWith :: ReportSpec -> Journal -> PriceOracle -> Set AccountName -> MultiBalanceReport
sortRows :: ReportOpts -> Journal -> [MultiBalanceReportRow] -> [MultiBalanceReportRow]
sortRowsLike :: [AccountName] -> [PeriodicReportRow DisplayName b] -> [PeriodicReportRow DisplayName b]
startingPostings :: ReportSpec -> Journal -> PriceOracle -> DateSpan -> [Posting]
tests_MultiBalanceReport :: TestTree
mkpostingsReportItem :: Bool -> Bool -> WhichDate -> Maybe Period -> Posting -> MixedAmount -> PostingsReportItem
postingsReport :: ReportSpec -> Journal -> PostingsReport
tests_PostingsReport :: TestTree
balanceAccumulationOverride :: RawOpts -> Maybe BalanceAccumulation
defreportopts :: ReportOpts
defreportspec :: ReportSpec
flat_ :: ReportOpts -> Bool
intervalFromRawOpts :: RawOpts -> Interval
journalApplyValuationFromOpts :: ReportSpec -> Journal -> Journal
journalApplyValuationFromOptsWith :: ReportSpec -> Journal -> PriceOracle -> Journal
journalValueAndFilterPostings :: ReportSpec -> Journal -> Journal
journalValueAndFilterPostingsWith :: ReportSpec -> Journal -> PriceOracle -> Journal
mixedAmountApplyValuationAfterSumFromOptsWith :: ReportOpts -> Journal -> PriceOracle -> DateSpan -> MixedAmount -> MixedAmount
overEither :: ((a -> Either e b) -> s -> Either e t) -> (a -> b) -> s -> Either e t
postingDateFn :: ReportOpts -> Posting -> Day
queryFromFlags :: ReportOpts -> Query
rawOptsToReportOpts :: Day -> RawOpts -> ReportOpts
reportEndDate :: Journal -> ReportSpec -> Maybe Day
reportOptsToSpec :: Day -> ReportOpts -> Either String ReportSpec
reportOptsToggleStatus :: Status -> ReportOpts -> ReportOpts
reportPeriodLastDay :: ReportSpec -> Maybe Day
reportPeriodName :: BalanceAccumulation -> [DateSpan] -> DateSpan -> Text
reportPeriodOrJournalLastDay :: ReportSpec -> Journal -> Maybe Day
reportPeriodOrJournalStart :: ReportSpec -> Journal -> Maybe Day
reportPeriodStart :: ReportSpec -> Maybe Day
reportSpan :: Journal -> ReportSpec -> (DateSpan, [DateSpan])
reportSpanBothDates :: Journal -> ReportSpec -> (DateSpan, [DateSpan])
reportStartDate :: Journal -> ReportSpec -> Maybe Day
setDefaultConversionOp :: ConversionOp -> ReportSpec -> ReportSpec
setEither :: ((a -> Either e b) -> s -> Either e t) -> b -> s -> Either e t
simplifyStatuses :: Ord a => [a] -> [a]
transactionDateFn :: ReportOpts -> Transaction -> Day
tree_ :: ReportOpts -> Bool
updateReportSpec :: ReportOpts -> ReportSpec -> Either String ReportSpec
updateReportSpecWith :: (ReportOpts -> ReportOpts) -> ReportSpec -> Either String ReportSpec
valuationAfterSum :: ReportOpts -> Maybe (Maybe CommoditySymbol)
whichDate :: ReportOpts -> WhichDate
flatDisplayName :: AccountName -> DisplayName
periodicReportSpan :: PeriodicReport a b -> DateSpan
prMapMaybeName :: (a -> Maybe b) -> PeriodicReport a c -> PeriodicReport b c
prMapName :: (a -> b) -> PeriodicReport a c -> PeriodicReport b c
prrAdd :: Semigroup b => PeriodicReportRow a b -> PeriodicReportRow a b -> PeriodicReportRow a b
prrDepth :: PeriodicReportRow DisplayName a -> Int
prrDisplayName :: PeriodicReportRow DisplayName a -> AccountName
prrFullName :: PeriodicReportRow DisplayName a -> AccountName
treeDisplayName :: AccountName -> DisplayName
tests_Hledger :: TestTree
runExceptT :: ExceptT e m a -> m (Either e a)
calendarDay :: CalendarDiffDays
calendarMonth :: CalendarDiffDays
calendarWeek :: CalendarDiffDays
calendarYear :: CalendarDiffDays
scaleCalendarDiffDays :: Integer -> CalendarDiffDays -> CalendarDiffDays
dayOfWeek :: Day -> DayOfWeek
dayOfWeekDiff :: DayOfWeek -> DayOfWeek -> Int
firstDayOfWeekOnAfter :: DayOfWeek -> Day -> Day
weekAllDays :: DayOfWeek -> Day -> [Day]
weekFirstDay :: DayOfWeek -> Day -> Day
weekLastDay :: DayOfWeek -> Day -> Day
diffTimeToPicoseconds :: DiffTime -> Integer
picosecondsToDiffTime :: Integer -> DiffTime
secondsToDiffTime :: Integer -> DiffTime
getTime_resolution :: DiffTime
calendarTimeDays :: CalendarDiffDays -> CalendarDiffTime
calendarTimeTime :: NominalDiffTime -> CalendarDiffTime
scaleCalendarDiffTime :: Integer -> CalendarDiffTime -> CalendarDiffTime
daysAndTimeOfDayToTime :: Integer -> TimeOfDay -> NominalDiffTime
makeTimeOfDayValid :: Int -> Int -> Pico -> Maybe TimeOfDay
midday :: TimeOfDay
pastMidnight :: DiffTime -> TimeOfDay
sinceMidnight :: TimeOfDay -> DiffTime
timeToDaysAndTimeOfDay :: NominalDiffTime -> (Integer, TimeOfDay)
getCurrentTimeZone :: IO TimeZone
hoursToTimeZone :: Int -> TimeZone
timeZoneOffsetString :: TimeZone -> String
timeZoneOffsetString' :: Maybe Char -> TimeZone -> String
yield :: IO ()
dupChan :: Chan a -> IO (Chan a)
getChanContents :: Chan a -> IO [a]
newChan :: IO (Chan a)
readChan :: Chan a -> IO a
writeChan :: Chan a -> a -> IO ()
writeList2Chan :: Chan a -> [a] -> IO ()
addMVarFinalizer :: MVar a -> IO () -> IO ()
mkWeakMVar :: MVar a -> IO () -> IO (Weak (MVar a))
modifyMVar :: MVar a -> (a -> IO (a, b)) -> IO b
modifyMVarMasked :: MVar a -> (a -> IO (a, b)) -> IO b
modifyMVarMasked_ :: MVar a -> (a -> IO a) -> IO ()
modifyMVar_ :: MVar a -> (a -> IO a) -> IO ()
swapMVar :: MVar a -> a -> IO a
withMVar :: MVar a -> (a -> IO b) -> IO b
withMVarMasked :: MVar a -> (a -> IO b) -> IO b
newQSem :: Int -> IO QSem
signalQSem :: QSem -> IO ()
waitQSem :: QSem -> IO ()
newQSemN :: Int -> IO QSemN
signalQSemN :: QSemN -> Int -> IO ()
waitQSemN :: QSemN -> Int -> IO ()
threadWaitRead :: Fd -> IO ()
threadWaitReadSTM :: Fd -> IO (STM (), IO ())
threadWaitWrite :: Fd -> IO ()
threadWaitWriteSTM :: Fd -> IO (STM (), IO ())
forkIO :: IO () -> IO ThreadId
forkIOWithUnmask :: ((forall a. () => IO a -> IO a) -> IO ()) -> IO ThreadId
forkOn :: Int -> IO () -> IO ThreadId
forkOnWithUnmask :: Int -> ((forall a. () => IO a -> IO a) -> IO ()) -> IO ThreadId
getNumCapabilities :: IO Int
killThread :: ThreadId -> IO ()
mkWeakThreadId :: ThreadId -> IO (Weak ThreadId)
myThreadId :: IO ThreadId
setNumCapabilities :: Int -> IO ()
threadCapability :: ThreadId -> IO (Int, Bool)
isEmptyMVar :: MVar a -> IO Bool
newMVar :: a -> IO (MVar a)
tryPutMVar :: MVar a -> a -> IO Bool
tryReadMVar :: MVar a -> IO (Maybe a)
tryTakeMVar :: MVar a -> IO (Maybe a)
rtsSupportsBoundThreads :: Bool
forkFinally :: IO a -> (Either SomeException a -> IO ()) -> IO ThreadId
forkOS :: IO () -> IO ThreadId
forkOSWithUnmask :: ((forall a. () => IO a -> IO a) -> IO ()) -> IO ThreadId
isCurrentThreadBound :: IO Bool
runInBoundThread :: IO a -> IO a
runInUnboundThread :: IO a -> IO a
alreadyExistsErrorType :: IOErrorType
alreadyInUseErrorType :: IOErrorType
annotateIOError :: IOError -> String -> Maybe Handle -> Maybe FilePath -> IOError
doesNotExistErrorType :: IOErrorType
eofErrorType :: IOErrorType
fullErrorType :: IOErrorType
illegalOperationErrorType :: IOErrorType
ioeGetErrorString :: IOError -> String
ioeGetErrorType :: IOError -> IOErrorType
ioeGetFileName :: IOError -> Maybe FilePath
ioeGetHandle :: IOError -> Maybe Handle
ioeGetLocation :: IOError -> String
ioeSetErrorString :: IOError -> String -> IOError
ioeSetErrorType :: IOError -> IOErrorType -> IOError
ioeSetFileName :: IOError -> FilePath -> IOError
ioeSetHandle :: IOError -> Handle -> IOError
ioeSetLocation :: IOError -> String -> IOError
isAlreadyExistsError :: IOError -> Bool
isAlreadyExistsErrorType :: IOErrorType -> Bool
isAlreadyInUseError :: IOError -> Bool
isAlreadyInUseErrorType :: IOErrorType -> Bool
isDoesNotExistError :: IOError -> Bool
isDoesNotExistErrorType :: IOErrorType -> Bool
isEOFError :: IOError -> Bool
isEOFErrorType :: IOErrorType -> Bool
isFullError :: IOError -> Bool
isFullErrorType :: IOErrorType -> Bool
isIllegalOperation :: IOError -> Bool
isIllegalOperationErrorType :: IOErrorType -> Bool
isPermissionError :: IOError -> Bool
isPermissionErrorType :: IOErrorType -> Bool
isResourceVanishedError :: IOError -> Bool
isResourceVanishedErrorType :: IOErrorType -> Bool
isUserError :: IOError -> Bool
isUserErrorType :: IOErrorType -> Bool
modifyIOError :: (IOError -> IOError) -> IO a -> IO a
permissionErrorType :: IOErrorType
resourceVanishedErrorType :: IOErrorType
tryIOError :: IO a -> IO (Either IOError a)
userErrorType :: IOErrorType
barchar :: Char

-- | Print a bar chart of number of postings per report interval.
activity :: CliOpts -> Journal -> IO ()
showHistogram :: ReportSpec -> Journal -> String
printDayWith :: (PrintfArg t1, PrintfType t2) => (t3 -> t1) -> (DateSpan, t3) -> t2
countBar :: Foldable t => t a -> [Char]
