avoid importing Common
it caused a loop when reusing this in propellor
This commit is contained in:
parent
86d55f200f
commit
be76a0e22c
1 changed files with 4 additions and 2 deletions
|
@ -9,8 +9,8 @@
|
|||
|
||||
module Utility.FileMode where
|
||||
|
||||
import Common
|
||||
|
||||
import System.IO
|
||||
import Control.Monad
|
||||
import Control.Exception (bracket)
|
||||
import System.PosixCompat.Types
|
||||
#ifndef mingw32_HOST_OS
|
||||
|
@ -18,6 +18,8 @@ import System.Posix.Files
|
|||
#endif
|
||||
import Foreign (complement)
|
||||
|
||||
import Utility.Exception
|
||||
|
||||
{- Applies a conversion function to a file's mode. -}
|
||||
modifyFileMode :: FilePath -> (FileMode -> FileMode) -> IO ()
|
||||
modifyFileMode f convert = void $ modifyFileMode' f convert
|
||||
|
|
Loading…
Add table
Reference in a new issue