@@ -38,7 +38,6 @@ module Distribution.Simple.Utils (
38
38
debug , debugNoWrap ,
39
39
chattyTry ,
40
40
annotateIO ,
41
- logCommand ,
42
41
withOutputMarker ,
43
42
44
43
-- * exceptions
@@ -174,10 +173,6 @@ module Distribution.Simple.Utils (
174
173
-- * FilePath stuff
175
174
isAbsoluteOnAnyPlatform ,
176
175
isRelativeOnAnyPlatform ,
177
-
178
- -- * Deprecated
179
- printRawCommandAndArgs , printRawCommandAndArgsAndEnv ,
180
- createProcessWithEnv ,
181
176
) where
182
177
183
178
import Prelude ()
@@ -241,7 +236,6 @@ import Foreign.C.Error (Errno (..), ePIPE)
241
236
import Data.Time.Clock.POSIX (getPOSIXTime , POSIXTime )
242
237
import Numeric (showFFloat )
243
238
import Distribution.Compat.Process (proc )
244
- import System.Process (ProcessHandle )
245
239
import qualified System.Process as Process
246
240
import qualified GHC.IO.Exception as GHC
247
241
@@ -738,21 +732,6 @@ maybeExit cmd = do
738
732
exitcode <- cmd
739
733
unless (exitcode == ExitSuccess ) $ exitWith exitcode
740
734
741
- {-# DEPRECATED printRawCommandAndArgs "use logCommand" #-}
742
- printRawCommandAndArgs :: Verbosity -> FilePath -> [String ] -> IO ()
743
- printRawCommandAndArgs verbosity path args = withFrozenCallStack $ do
744
- logCommand verbosity (proc path args)
745
-
746
- {-# DEPRECATED printRawCommandAndArgsAndEnv "use logCommand" #-}
747
- printRawCommandAndArgsAndEnv :: Verbosity
748
- -> FilePath
749
- -> [String ]
750
- -> Maybe FilePath
751
- -> Maybe [(String , String )]
752
- -> IO ()
753
- printRawCommandAndArgsAndEnv verbosity path args mcwd menv = withFrozenCallStack $ do
754
- logCommand verbosity (proc path args) { Process. cwd = mcwd, Process. env = menv }
755
-
756
735
-- | Log a command execution (that's typically about to happen)
757
736
-- at info level, and log working directory and environment overrides
758
737
-- at debug level if specified.
@@ -893,29 +872,6 @@ rawSystemIOWithEnvAndAction verbosity path args mcwd menv action inp out err = w
893
872
mbToStd :: Maybe Handle -> Process. StdStream
894
873
mbToStd = maybe Process. Inherit Process. UseHandle
895
874
896
- {-# DEPRECATED createProcessWithEnv "use System.Process.createProcess with Distribution.Compat.Process.proc instead" #-}
897
- createProcessWithEnv ::
898
- Verbosity
899
- -> FilePath
900
- -> [String ]
901
- -> Maybe FilePath -- ^ New working dir or inherit
902
- -> Maybe [(String , String )] -- ^ New environment or inherit
903
- -> Process. StdStream -- ^ stdin
904
- -> Process. StdStream -- ^ stdout
905
- -> Process. StdStream -- ^ stderr
906
- -> IO (Maybe Handle , Maybe Handle , Maybe Handle ,ProcessHandle )
907
- -- ^ Any handles created for stdin, stdout, or stderr
908
- -- with 'CreateProcess', and a handle to the process.
909
- createProcessWithEnv verbosity path args mcwd menv inp out err = withFrozenCallStack $ do
910
- let cp = (proc path args) { Process. cwd = mcwd
911
- , Process. env = menv
912
- , Process. std_in = inp
913
- , Process. std_out = out
914
- , Process. std_err = err
915
- }
916
- logCommand verbosity cp
917
- Process. createProcess cp
918
-
919
875
-- | Execute the given command with the given arguments, returning
920
876
-- the command's output. Exits if the command exits with error.
921
877
--
0 commit comments