packages feed

process-extras 0.3.0 → 0.3.0.1

raw patch · 6 files changed

+38/−10 lines, 6 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

process-extras.cabal view
@@ -1,5 +1,5 @@ Name:               process-extras-Version:            0.3.0+Version:            0.3.0.1 Synopsis:           Process extras Description:        Extra functionality for the Process library                     <http://hackage.haskell.org/package/process>.
src/System/Process/ByteString.hs view
@@ -18,8 +18,15 @@     readChunks h = (: []) <$> hGetContents h  -- | Specialized version for backwards compatibility.-readProcessWithExitCode :: FilePath -> [String] -> ByteString -> IO (ExitCode, ByteString, ByteString)+readProcessWithExitCode+    :: FilePath                              -- ^ command to run+    -> [String]                              -- ^ any arguments+    -> ByteString                            -- ^ standard input+    -> IO (ExitCode, ByteString, ByteString) -- ^ exitcode, stdout, stderr readProcessWithExitCode = System.Process.Common.readProcessWithExitCode -readCreateProcessWithExitCode :: CreateProcess -> ByteString -> IO (ExitCode, ByteString, ByteString)+readCreateProcessWithExitCode+    :: CreateProcess                         -- ^ command and arguments to run+    -> ByteString                            -- ^ standard input+    -> IO (ExitCode, ByteString, ByteString) -- ^ exitcode, stdout, stderr readCreateProcessWithExitCode = System.Process.Common.readCreateProcessWithExitCode
src/System/Process/ByteString/Lazy.hs view
@@ -19,8 +19,15 @@     readChunks h = (map (fromChunks . (: [])) . toChunks) <$> hGetContents h  -- | Specialized version for backwards compatibility.-readProcessWithExitCode :: FilePath -> [String] -> ByteString -> IO (ExitCode, ByteString, ByteString)+readProcessWithExitCode+    :: FilePath                              -- ^ command to run+    -> [String]                              -- ^ any arguments+    -> ByteString                            -- ^ standard input+    -> IO (ExitCode, ByteString, ByteString) -- ^ exitcode, stdout, stderr readProcessWithExitCode = System.Process.Common.readProcessWithExitCode -readCreateProcessWithExitCode :: CreateProcess -> ByteString -> IO (ExitCode, ByteString, ByteString)+readCreateProcessWithExitCode+    :: CreateProcess                         -- ^ command and arguments to run+    -> ByteString                            -- ^ standard input+    -> IO (ExitCode, ByteString, ByteString) -- ^ exitcode, stdout, stderr readCreateProcessWithExitCode = System.Process.Common.readCreateProcessWithExitCode
src/System/Process/Common.hs view
@@ -141,7 +141,7 @@       takeMore openCount (Right x) =           do xs <- unsafeInterleaveIO $ takeChunks openCount              return (x <> xs)-      takeChunk = takeMVar res `catch` (\ (e :: SomeException) -> return $ Right $ intf e)+      takeChunk = takeMVar res `E.catch` (\ (e :: SomeException) -> return $ Right $ intf e)  -- | Write and flush process input, closing the handle when done. -- Catch and ignore Resource Vanished exceptions, they just mean the
src/System/Process/Text.hs view
@@ -17,8 +17,15 @@     readChunks h = (: []) <$> hGetContents h  -- | Specialized version for backwards compatibility.-readProcessWithExitCode :: FilePath -> [String] -> Text -> IO (ExitCode, Text, Text)+readProcessWithExitCode+    :: FilePath                  -- ^ command to run+    -> [String]                  -- ^ any arguments+    -> Text                      -- ^ standard input+    -> IO (ExitCode, Text, Text) -- ^ exitcode, stdout, stderr readProcessWithExitCode = System.Process.Common.readProcessWithExitCode -readCreateProcessWithExitCode :: CreateProcess -> Text -> IO (ExitCode, Text, Text)+readCreateProcessWithExitCode+    :: CreateProcess             -- ^ command and arguments to run+    -> Text                      -- ^ standard input+    -> IO (ExitCode, Text, Text) -- ^ exitcode, stdout, stderr readCreateProcessWithExitCode = System.Process.Common.readCreateProcessWithExitCode
src/System/Process/Text/Lazy.hs view
@@ -18,8 +18,15 @@     readChunks h = (map (fromChunks . (: [])) . toChunks) <$> hGetContents h  -- | Specialized version for backwards compatibility.-readProcessWithExitCode :: FilePath -> [String] -> Text -> IO (ExitCode, Text, Text)+readProcessWithExitCode+    :: FilePath                  -- ^ command to run+    -> [String]                  -- ^ any arguments+    -> Text                      -- ^ standard input+    -> IO (ExitCode, Text, Text) -- ^ exitcode, stdout, stderr readProcessWithExitCode = System.Process.Common.readProcessWithExitCode -readCreateProcessWithExitCode :: CreateProcess -> Text -> IO (ExitCode, Text, Text)+readCreateProcessWithExitCode+    :: CreateProcess             -- ^ command and arguments to run+    -> Text                      -- ^ standard input+    -> IO (ExitCode, Text, Text) -- ^ exitcode, stdout, stderr readCreateProcessWithExitCode = System.Process.Common.readCreateProcessWithExitCode