HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulecabal-install-3.12.1.0Haskell2010

Distribution.Client.Main

Entry point to the default cabal-install front-end.

  • 1 value
valuemain :: [String] -> IO ()
#

Entry point

This does three things.

One, it initializes the program, providing support for termination signals, preparing console linebuffering, and relaxing encoding errors.

Two, it processes (via an IO action) response files, calling expandResponse in Cabal/Distribution.Compat.ResponseFile

Note that here, it splits the arguments on a strict match to "--", and won't parse response files after the split.

Three, it calls the mainWorker, which calls the argument parser, producing CommandParse data, which mainWorker pattern-matches into IO actions for execution.