HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Modulehledger-1.52.4GHC2021

Hledger.Cli.Commands.Run

The run command allows you to run multiple commands via REPL or from the supplied file(s).

  • 5 values
  • Packagehledger-1.52.4
  • Exports5
  • LanguageGHC2021
  • LicenceGPL-3.0-or-later
  • SourceRun.hs
valuerunOrReplStub :: CliOpts -> Journal -> IO ()
#

The fake run/repl command introduced to break circular dependency. This module needs access to findBuiltinCommand, which is defined in Hledger.Cli.Commands However, Hledger.Cli.Commands imports this module, which creates circular dependency. We expose this do-nothing function so that it could be included in the list of all commands inside Hledger.Cli.Commands and ensure that "run" is recognized as a valid command by the Hledger.Cli top-level command line parser. That parser, however, would not call run'. It has a special case for "run", and will call "run" (see below), passing it findBuiltinCommand, thus breaking circular dependency.