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.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.