-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | cmd for common cases
--
-- run shell commands from code
@package dmc
@version 1.2
module System.Process.TypeDmc
-- | current working dir
newtype Cwd
Cwd :: FilePath -> Cwd
-- | cmd or file
newtype Cmd a
Cmd :: a -> Cmd a
-- | arg to executable
newtype Arg a
Arg :: a -> Arg a
-- | stdout output
newtype Stdout
Stdout :: String -> Stdout
-- | stderr output
newtype Stderr
Stderr :: String -> Stderr
instance GHC.Show.Show System.Process.TypeDmc.Stderr
instance GHC.Show.Show System.Process.TypeDmc.Stdout
instance GHC.Base.Functor System.Process.TypeDmc.Arg
instance GHC.Show.Show a => GHC.Show.Show (System.Process.TypeDmc.Arg a)
instance GHC.Base.Functor System.Process.TypeDmc.Cmd
instance GHC.Show.Show a => GHC.Show.Show (System.Process.TypeDmc.Cmd a)
instance GHC.Show.Show System.Process.TypeDmc.Cwd
module System.Process.Dmc
-- | run executable with args
--
-- waits
--
-- Left String indicates error
run :: Cwd -> Cmd String -> [Arg String] -> IO (Either String ())
-- | run shell cmd
--
-- waits
--
-- Left String indicates error
shell :: Cwd -> Cmd String -> IO (Either String ())
-- | call cmd, get output
call :: Cwd -> Cmd String -> [Arg String] -> IO (ExitCode, Stdout, Stderr)
-- | enclose String in ""
quote :: String -> String
-- | join String with " " : useful to construct shell cmd
join :: [String] -> String