packages feed

Command 0.0.4 → 0.0.5

raw patch · 2 files changed

+13/−2 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- System.Command: close_fds :: CreateProcess -> Bool
- System.Command: cmdspec :: CreateProcess -> CmdSpec
- System.Command: create_group :: CreateProcess -> Bool
- System.Command: cwd :: CreateProcess -> Maybe FilePath
- System.Command: env :: CreateProcess -> Maybe [(String, String)]
- System.Command: instance Data ExitCode
- System.Command: instance Eq ExitCode
- System.Command: instance Exception ExitCode
- System.Command: instance Monoid ExitCode
- System.Command: instance Ord ExitCode
- System.Command: instance Read ExitCode
- System.Command: instance Show ExitCode
- System.Command: instance Typeable ExitCode
- System.Command: std_err :: CreateProcess -> StdStream
- System.Command: std_in :: CreateProcess -> StdStream
- System.Command: std_out :: CreateProcess -> StdStream
+ System.Command: [close_fds] :: CreateProcess -> Bool
+ System.Command: [cmdspec] :: CreateProcess -> CmdSpec
+ System.Command: [create_group] :: CreateProcess -> Bool
+ System.Command: [cwd] :: CreateProcess -> Maybe FilePath
+ System.Command: [delegate_ctlc] :: CreateProcess -> Bool
+ System.Command: [env] :: CreateProcess -> Maybe [(String, String)]
+ System.Command: [std_err] :: CreateProcess -> StdStream
+ System.Command: [std_in] :: CreateProcess -> StdStream
+ System.Command: [std_out] :: CreateProcess -> StdStream
+ System.Command: instance Data.Data.Data System.Command.ExitCode
+ System.Command: instance GHC.Base.Monoid System.Command.ExitCode
+ System.Command: instance GHC.Classes.Eq System.Command.ExitCode
+ System.Command: instance GHC.Classes.Ord System.Command.ExitCode
+ System.Command: instance GHC.Exception.Exception System.Command.ExitCode
+ System.Command: instance GHC.Read.Read System.Command.ExitCode
+ System.Command: instance GHC.Show.Show System.Command.ExitCode
+ System.Command: traverseExitCodes :: (Monad m, Foldable f, Functor f) => (a -> m ExitCode) -> f a -> m ExitCode
- System.Command: CreateProcess :: CmdSpec -> Maybe FilePath -> Maybe [(String, String)] -> StdStream -> StdStream -> StdStream -> Bool -> Bool -> CreateProcess
+ System.Command: CreateProcess :: CmdSpec -> Maybe FilePath -> Maybe [(String, String)] -> StdStream -> StdStream -> StdStream -> Bool -> Bool -> Bool -> CreateProcess

Files

Command.cabal view
@@ -1,5 +1,5 @@ Name:               Command-Version:            0.0.4+Version:            0.0.5 License:            BSD3 License-File:       LICENSE Author:             Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ>
src/System/Command.hs view
@@ -37,6 +37,7 @@ , (<<<-) , (<-<-) , runExitCodes+, traverseExitCodes   -- * Process completion , waitForProcess , getProcessExitCode@@ -49,6 +50,7 @@ import Data.Monoid import Control.Arrow import Control.Exception+import Control.Monad import Prelude hiding (foldr) import Data.Foldable @@ -177,7 +179,7 @@   -> m () a ->>> b =   do a' <- a-     if isSuccess a' then b >> return () else return ()+     when (isSuccess a') (void b) -- if isSuccess a' then b >> return () else return ()  -- | Runs the first action. --@@ -231,6 +233,15 @@   -> m ExitCode runExitCodes =   foldr (->>) (return success)++-- | Traverse the structure of actions stopping at the first failure.+traverseExitCodes ::+  (Monad m, Foldable f, Functor f) =>+  (a -> m ExitCode)+  -> f a+  -> m ExitCode+traverseExitCodes f =+  runExitCodes . fmap f  -- | readProcessWithExitCode creates an external process, reads its -- standard output and standard error strictly, waits until the process