Skip to content

Commit

Permalink
Issue #194 - Use System.Process
Browse files Browse the repository at this point in the history
  • Loading branch information
justinethier committed Jan 28, 2015
1 parent 0d1b50e commit 8d531cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hs-src/Compiler/huskc.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import Language.Scheme.Types -- Scheme data types
import Language.Scheme.Variables -- Scheme variable operations
import Control.Monad.Error
import Data.Maybe (fromMaybe)
import System.Cmd (system)
import System.Console.GetOpt
import System.FilePath (dropExtension)
import System.Environment
import System.Exit (ExitCode (..), exitSuccess, exitWith)
import System.IO
import System.Process (system)

main :: IO ()
main = do
Expand Down
4 changes: 2 additions & 2 deletions hs-src/Language/Scheme/Primitives.hs
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ import qualified Data.Map
import qualified Data.Time.Clock.POSIX
import Data.Unique
import Data.Word
import qualified System.Cmd
import System.Directory (doesFileExist, removeFile)
import qualified System.Environment as SE
import System.Exit (ExitCode(..))
import System.IO
import System.IO.Error
import qualified System.Process
--import System.Process (readProcess)
--import Debug.Trace

Expand Down Expand Up @@ -2022,7 +2022,7 @@ currentTimestamp _ = do
--
system :: [LispVal] -> IOThrowsError LispVal
system [String cmd] = do
result <- liftIO $ System.Cmd.system cmd
result <- liftIO $ System.Process.system cmd
case result of
ExitSuccess -> return $ Number 0
ExitFailure code -> return $ Number $ toInteger code
Expand Down

0 comments on commit 8d531cb

Please sign in to comment.