Commit 7fd3e3aa authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Deprecate ProgramConfiguration et al.

This stuff has been actually deprecated for ages, in 2.0 we can
finally mark it as such. Next up: removing all uses from
Cabal/cabal-install code.
parent 3a96032e
......@@ -192,28 +192,37 @@ getDbProgramOutput verbosity prog programDb args =
-- Deprecated aliases
--
{-# DEPRECATED rawSystemProgram "use runProgram instead" #-}
rawSystemProgram :: Verbosity -> ConfiguredProgram
-> [ProgArg] -> IO ()
rawSystemProgram = runProgram
{-# DEPRECATED rawSystemProgramStdout "use getProgramOutput instead" #-}
rawSystemProgramStdout :: Verbosity -> ConfiguredProgram
-> [ProgArg] -> IO String
rawSystemProgramStdout = getProgramOutput
{-# DEPRECATED rawSystemProgramConf "use runDbProgram instead" #-}
rawSystemProgramConf :: Verbosity -> Program -> ProgramConfiguration
-> [ProgArg] -> IO ()
rawSystemProgramConf = runDbProgram
{-# DEPRECATED rawSystemProgramStdoutConf "use getDbProgramOutput instead" #-}
rawSystemProgramStdoutConf :: Verbosity -> Program -> ProgramConfiguration
-> [ProgArg] -> IO String
rawSystemProgramStdoutConf = getDbProgramOutput
{-# DEPRECATED ProgramConfiguration "use ProgramDb instead" #-}
type ProgramConfiguration = ProgramDb
{-# DEPRECATED emptyProgramConfiguration "use emptyProgramDb instead" #-}
{-# DEPRECATED defaultProgramConfiguration "use defaultProgramDb instead" #-}
emptyProgramConfiguration, defaultProgramConfiguration :: ProgramConfiguration
emptyProgramConfiguration = emptyProgramDb
defaultProgramConfiguration = defaultProgramDb
{-# DEPRECATED restoreProgramConfiguration
"use restoreProgramDb instead" #-}
restoreProgramConfiguration :: [Program] -> ProgramConfiguration
-> ProgramConfiguration
restoreProgramConfiguration = restoreProgramDb
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment