remove unused function
This commit is contained in:
parent
8fbcb23eb1
commit
509692847a
1 changed files with 0 additions and 11 deletions
|
@ -94,14 +94,3 @@ moveFile src dest = tryIO (rename src dest) >>= onrename
|
||||||
- cannot be removed. -}
|
- cannot be removed. -}
|
||||||
nukeFile :: FilePath -> IO ()
|
nukeFile :: FilePath -> IO ()
|
||||||
nukeFile file = whenM (doesFileExist file) $ removeFile file
|
nukeFile file = whenM (doesFileExist file) $ removeFile file
|
||||||
|
|
||||||
{- Runs an action in another directory. -}
|
|
||||||
bracketCd :: FilePath -> IO a -> IO a
|
|
||||||
bracketCd dir a = go =<< getCurrentDirectory
|
|
||||||
where
|
|
||||||
go cwd
|
|
||||||
| dirContains dir cwd = a
|
|
||||||
| otherwise = bracket_
|
|
||||||
(changeWorkingDirectory dir)
|
|
||||||
(changeWorkingDirectory cwd)
|
|
||||||
a
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue