-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Out of the shell solution for scripting in Haskell -- -- Shellmet provides easy and convenient way to call shell commands from -- Haskell programs @package shellmet @version 0.0.1 -- | This module contains neat utilities to be able to work with shell -- commands in generic and simple way using just string literals. -- --
--   >>> "echo" ["Hello", "World!"]
--   ⚙  echo Hello 'World!'
--   Hello World!
--   
module Shellmet -- | Run shell command with given options and return stripped stdout of the -- executed command. -- --
--   >>> "echo" $| ["Foo", "Bar"]
--   "Foo Bar"
--   
($|) :: FilePath -> [Text] -> IO Text infix 5 $| -- | Do some IO actions when process failed with IOError. -- --
--   >>> "exit" ["0"] $? putStrLn "Command failed"
--   ⚙  exit 0
--   
-- --
--   >>> "exit" ["1"] $? putStrLn "Command failed"
--   ⚙  exit 1
--   Command failed
--   
($?) :: IO a -> IO a -> IO a infixl 4 $? instance (a Data.Type.Equality.~ [Data.Text.Internal.Text], b Data.Type.Equality.~ GHC.Types.IO ()) => Data.String.IsString (a -> b)