HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Modulecabal-install-3.16.0.0Haskell2010

Distribution.Client.SavedFlags

  • 4 values
valuereadCommandFlags :: FilePath -> CommandUI flags -> IO flags
#

Read command-line arguments, separated by null characters, from a file. Returns the default flags if the file does not exist.

valuewriteCommandFlags
  1. :: Verbosity
  2. -> FilePath
  3. -> CommandUI flags
  4. -> flags
  5. -> IO ()
#

Write command-line flags to a file, separated by null characters. This format is also suitable for the xargs -0 command. Using the null character also avoids the problem of escaping newlines or spaces, because unlike other whitespace characters, the null character is not valid in command-line arguments.