HSH 2.1.2 → 2.1.3
raw patch · 3 files changed
+28/−4 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- HSH.Channel: instance [overlap ok] Channelizable ByteString
- HSH.Channel: instance [overlap ok] Channelizable Handle
- HSH.Channel: instance [overlap ok] Channelizable String
- HSH.Command: instance [overlap ok] (ShellCommand a, ShellCommand b) => ShellCommand (PipeCommand a b)
- HSH.Command: instance [overlap ok] RunResult (IO ())
- HSH.Command: instance [overlap ok] RunResult (IO (ByteString, IO (String, ExitCode)))
- HSH.Command: instance [overlap ok] RunResult (IO (IO (String, ExitCode)))
- HSH.Command: instance [overlap ok] RunResult (IO (String, ExitCode))
- HSH.Command: instance [overlap ok] RunResult (IO (String, IO (String, ExitCode)))
- HSH.Command: instance [overlap ok] RunResult (IO Bool)
- HSH.Command: instance [overlap ok] RunResult (IO ByteString)
- HSH.Command: instance [overlap ok] RunResult (IO ExitCode)
- HSH.Command: instance [overlap ok] RunResult (IO Int)
- HSH.Command: instance [overlap ok] RunResult (IO String)
- HSH.Command: instance [overlap ok] RunResult (IO [String])
- HSH.Command: instance [overlap ok] ShellCommand (() -> ByteString)
- HSH.Command: instance [overlap ok] ShellCommand (() -> IO ByteString)
- HSH.Command: instance [overlap ok] ShellCommand (() -> IO String)
- HSH.Command: instance [overlap ok] ShellCommand (() -> IO [String])
- HSH.Command: instance [overlap ok] ShellCommand (() -> String)
- HSH.Command: instance [overlap ok] ShellCommand (() -> [String])
- HSH.Command: instance [overlap ok] ShellCommand (ByteString -> ByteString)
- HSH.Command: instance [overlap ok] ShellCommand (ByteString -> IO ByteString)
- HSH.Command: instance [overlap ok] ShellCommand (Channel -> IO Channel)
- HSH.Command: instance [overlap ok] ShellCommand (String -> IO String)
- HSH.Command: instance [overlap ok] ShellCommand (String -> String)
- HSH.Command: instance [overlap ok] ShellCommand (String, [String])
- HSH.Command: instance [overlap ok] ShellCommand ([String] -> IO [String])
- HSH.Command: instance [overlap ok] ShellCommand ([String] -> [String])
- HSH.Command: instance [overlap ok] ShellCommand String
- HSH.Command: instance [overlap ok] ShellCommand a => ShellCommand (EnvironCommand a)
- HSH.Command: instance [overlap ok] Show (() -> ByteString)
- HSH.Command: instance [overlap ok] Show (() -> IO ByteString)
- HSH.Command: instance [overlap ok] Show (() -> IO String)
- HSH.Command: instance [overlap ok] Show (() -> IO [String])
- HSH.Command: instance [overlap ok] Show (() -> String)
- HSH.Command: instance [overlap ok] Show (() -> [String])
- HSH.Command: instance [overlap ok] Show (ByteString -> ByteString)
- HSH.Command: instance [overlap ok] Show (ByteString -> IO ByteString)
- HSH.Command: instance [overlap ok] Show (Channel -> IO Channel)
- HSH.Command: instance [overlap ok] Show (EnvironCommand a)
- HSH.Command: instance [overlap ok] Show (Handle -> Handle -> IO ())
- HSH.Command: instance [overlap ok] Show (PipeCommand a b)
- HSH.Command: instance [overlap ok] Show (String -> IO String)
- HSH.Command: instance [overlap ok] Show (String -> String)
- HSH.Command: instance [overlap ok] Show ([String] -> IO [String])
- HSH.Command: instance [overlap ok] Show ([String] -> [String])
- HSH.Command: instance [overlap ok] Show EnvironFilter
+ HSH.Channel: instance HSH.Channel.Channelizable Data.ByteString.Internal.ByteString
+ HSH.Channel: instance HSH.Channel.Channelizable Data.ByteString.Lazy.Internal.ByteString
+ HSH.Channel: instance HSH.Channel.Channelizable GHC.Base.String
+ HSH.Channel: instance HSH.Channel.Channelizable GHC.IO.Handle.Types.Handle
+ HSH.Command: instance (HSH.Command.ShellCommand a, HSH.Command.ShellCommand b) => HSH.Command.ShellCommand (HSH.Command.PipeCommand a b)
+ HSH.Command: instance GHC.Show.Show (() -> Data.ByteString.Internal.ByteString)
+ HSH.Command: instance GHC.Show.Show (() -> Data.ByteString.Lazy.Internal.ByteString)
+ HSH.Command: instance GHC.Show.Show (() -> GHC.Base.String)
+ HSH.Command: instance GHC.Show.Show (() -> GHC.Types.IO Data.ByteString.Internal.ByteString)
+ HSH.Command: instance GHC.Show.Show (() -> GHC.Types.IO Data.ByteString.Lazy.Internal.ByteString)
+ HSH.Command: instance GHC.Show.Show (() -> GHC.Types.IO GHC.Base.String)
+ HSH.Command: instance GHC.Show.Show (() -> GHC.Types.IO [GHC.Base.String])
+ HSH.Command: instance GHC.Show.Show (() -> [GHC.Base.String])
+ HSH.Command: instance GHC.Show.Show (Data.ByteString.Internal.ByteString -> Data.ByteString.Internal.ByteString)
+ HSH.Command: instance GHC.Show.Show (Data.ByteString.Internal.ByteString -> GHC.Types.IO Data.ByteString.Internal.ByteString)
+ HSH.Command: instance GHC.Show.Show (Data.ByteString.Lazy.Internal.ByteString -> Data.ByteString.Lazy.Internal.ByteString)
+ HSH.Command: instance GHC.Show.Show (Data.ByteString.Lazy.Internal.ByteString -> GHC.Types.IO Data.ByteString.Lazy.Internal.ByteString)
+ HSH.Command: instance GHC.Show.Show (GHC.Base.String -> GHC.Base.String)
+ HSH.Command: instance GHC.Show.Show (GHC.Base.String -> GHC.Types.IO GHC.Base.String)
+ HSH.Command: instance GHC.Show.Show (GHC.IO.Handle.Types.Handle -> GHC.IO.Handle.Types.Handle -> GHC.Types.IO ())
+ HSH.Command: instance GHC.Show.Show (HSH.Channel.Channel -> GHC.Types.IO HSH.Channel.Channel)
+ HSH.Command: instance GHC.Show.Show (HSH.Command.EnvironCommand a)
+ HSH.Command: instance GHC.Show.Show (HSH.Command.PipeCommand a b)
+ HSH.Command: instance GHC.Show.Show ([GHC.Base.String] -> GHC.Types.IO [GHC.Base.String])
+ HSH.Command: instance GHC.Show.Show ([GHC.Base.String] -> [GHC.Base.String])
+ HSH.Command: instance GHC.Show.Show HSH.Command.EnvironFilter
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO ())
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO (Data.ByteString.Internal.ByteString, GHC.Types.IO (GHC.Base.String, GHC.IO.Exception.ExitCode)))
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO (Data.ByteString.Lazy.Internal.ByteString, GHC.Types.IO (GHC.Base.String, GHC.IO.Exception.ExitCode)))
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO (GHC.Base.String, GHC.IO.Exception.ExitCode))
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO (GHC.Base.String, GHC.Types.IO (GHC.Base.String, GHC.IO.Exception.ExitCode)))
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO (GHC.Types.IO (GHC.Base.String, GHC.IO.Exception.ExitCode)))
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO Data.ByteString.Internal.ByteString)
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO Data.ByteString.Lazy.Internal.ByteString)
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO GHC.Base.String)
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO GHC.IO.Exception.ExitCode)
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO GHC.Types.Bool)
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO GHC.Types.Int)
+ HSH.Command: instance HSH.Command.RunResult (GHC.Types.IO [GHC.Base.String])
+ HSH.Command: instance HSH.Command.ShellCommand (() -> Data.ByteString.Internal.ByteString)
+ HSH.Command: instance HSH.Command.ShellCommand (() -> Data.ByteString.Lazy.Internal.ByteString)
+ HSH.Command: instance HSH.Command.ShellCommand (() -> GHC.Base.String)
+ HSH.Command: instance HSH.Command.ShellCommand (() -> GHC.Types.IO Data.ByteString.Internal.ByteString)
+ HSH.Command: instance HSH.Command.ShellCommand (() -> GHC.Types.IO Data.ByteString.Lazy.Internal.ByteString)
+ HSH.Command: instance HSH.Command.ShellCommand (() -> GHC.Types.IO GHC.Base.String)
+ HSH.Command: instance HSH.Command.ShellCommand (() -> GHC.Types.IO [GHC.Base.String])
+ HSH.Command: instance HSH.Command.ShellCommand (() -> [GHC.Base.String])
+ HSH.Command: instance HSH.Command.ShellCommand (Data.ByteString.Internal.ByteString -> Data.ByteString.Internal.ByteString)
+ HSH.Command: instance HSH.Command.ShellCommand (Data.ByteString.Internal.ByteString -> GHC.Types.IO Data.ByteString.Internal.ByteString)
+ HSH.Command: instance HSH.Command.ShellCommand (Data.ByteString.Lazy.Internal.ByteString -> Data.ByteString.Lazy.Internal.ByteString)
+ HSH.Command: instance HSH.Command.ShellCommand (Data.ByteString.Lazy.Internal.ByteString -> GHC.Types.IO Data.ByteString.Lazy.Internal.ByteString)
+ HSH.Command: instance HSH.Command.ShellCommand (GHC.Base.String -> GHC.Base.String)
+ HSH.Command: instance HSH.Command.ShellCommand (GHC.Base.String -> GHC.Types.IO GHC.Base.String)
+ HSH.Command: instance HSH.Command.ShellCommand (GHC.Base.String, [GHC.Base.String])
+ HSH.Command: instance HSH.Command.ShellCommand (HSH.Channel.Channel -> GHC.Types.IO HSH.Channel.Channel)
+ HSH.Command: instance HSH.Command.ShellCommand ([GHC.Base.String] -> GHC.Types.IO [GHC.Base.String])
+ HSH.Command: instance HSH.Command.ShellCommand ([GHC.Base.String] -> [GHC.Base.String])
+ HSH.Command: instance HSH.Command.ShellCommand GHC.Base.String
+ HSH.Command: instance HSH.Command.ShellCommand a => HSH.Command.ShellCommand (HSH.Command.EnvironCommand a)
- HSH.Command: class Show a => ShellCommand a
+ HSH.Command: class (Show a) => ShellCommand a
- HSH.Command: runIO :: ShellCommand a => a -> IO ()
+ HSH.Command: runIO :: (ShellCommand a) => a -> IO ()
- HSH.Command: runSL :: ShellCommand a => a -> IO String
+ HSH.Command: runSL :: (ShellCommand a) => a -> IO String
- HSH.Command: setenv :: ShellCommand cmd => [(String, String)] -> cmd -> EnvironCommand cmd
+ HSH.Command: setenv :: (ShellCommand cmd) => [(String, String)] -> cmd -> EnvironCommand cmd
- HSH.Command: unsetenv :: ShellCommand cmd => [String] -> cmd -> EnvironCommand cmd
+ HSH.Command: unsetenv :: (ShellCommand cmd) => [String] -> cmd -> EnvironCommand cmd
- HSH.ShellEquivs: setenv :: ShellCommand cmd => [(String, String)] -> cmd -> EnvironCommand cmd
+ HSH.ShellEquivs: setenv :: (ShellCommand cmd) => [(String, String)] -> cmd -> EnvironCommand cmd
- HSH.ShellEquivs: unsetenv :: ShellCommand cmd => [String] -> cmd -> EnvironCommand cmd
+ HSH.ShellEquivs: unsetenv :: (ShellCommand cmd) => [String] -> cmd -> EnvironCommand cmd
Files
- HSH.cabal +3/−3
- HSH/Command.hs +24/−0
- HSH/ShellEquivs.hs +1/−1
HSH.cabal view
@@ -1,10 +1,10 @@ Name: HSH-Version: 2.1.2+Version: 2.1.3 License: LGPL Maintainer: John Goerzen <jgoerzen@complete.org> Author: John Goerzen Stability: Beta-Copyright: Copyright (c) 2006-2014 John Goerzen+Copyright: Copyright (c) 2006-2017 John Goerzen Category: system license-file: COPYRIGHT extra-source-files: COPYING@@ -32,7 +32,7 @@ bytestring if !os(windows) Build-Depends: unix- GHC-Options: -O2 -threaded -Wall+ GHC-Options: -O2 -Wall Executable runtests if flag(buildtests)
HSH/Command.hs view
@@ -301,6 +301,18 @@ #if MIN_VERSION_process(1,2,0) , delegate_ctlc = False #endif+#if MIN_VERSION_process(1,3,0)+ , detach_console = False+ , create_new_console = False+ , new_session = False+#endif+#if MIN_VERSION_process(1,4,0)+ , child_group = Nothing+ , child_user = Nothing+#endif+#if MIN_VERSION_process(1,5,0)+ , use_process_jobs = False+#endif } in do (_, oh', _, ph) <- createProcess cp let oh = fromJust oh'@@ -319,6 +331,18 @@ #endif #if MIN_VERSION_process(1,2,0) , delegate_ctlc = False+#endif+#if MIN_VERSION_process(1,3,0)+ , detach_console = False+ , create_new_console = False+ , new_session = False+#endif+#if MIN_VERSION_process(1,4,0)+ , child_group = Nothing+ , child_user = Nothing+#endif+#if MIN_VERSION_process(1,5,0)+ , use_process_jobs = False #endif } in do (ih', oh', _, ph) <- createProcess cp
HSH/ShellEquivs.hs view
@@ -86,7 +86,7 @@ import Text.Regex (matchRegex, mkRegex) import Text.Printf (printf) import Control.Monad (foldM)-import System.Directory hiding (createDirectory)+import System.Directory hiding (createDirectory, isSymbolicLink) import qualified Control.Exception as E -- import System.FilePath (splitPath)