Rename safeIO to catchIO

This commit is contained in:
Spencer Janssen
2007-06-11 16:20:28 +00:00
parent 1a90e87933
commit e8e8457e4c

View File

@@ -27,7 +27,7 @@ workspaceDir wd l = l { doLayout = \r x -> scd wd >> doLayout l r x
scd :: String -> X ()
scd x = do x' <- io (runProcessWithInput "bash" [] ("echo -n " ++ x) `catch` \_ -> return x)
safeIO $ setCurrentDirectory x'
catchIO $ setCurrentDirectory x'
changeDir :: [String] -> X ()
changeDir dirs = do thisd <- io getCurrentDirectory