further fix windows build
Thanks to jkniiv for this patch.
This commit is contained in:
parent
89373c04bb
commit
433608753a
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ import Utility.DirWatcher.Types
|
||||||
import qualified Utility.RawFilePath as R
|
import qualified Utility.RawFilePath as R
|
||||||
|
|
||||||
import System.Win32.Notify
|
import System.Win32.Notify
|
||||||
import qualified System.PosixCompat.Files (isRegularFile)
|
import System.PosixCompat.Files (isRegularFile)
|
||||||
|
|
||||||
watchDir :: FilePath -> (FilePath -> Bool) -> Bool -> WatchHooks -> IO WatchManager
|
watchDir :: FilePath -> (FilePath -> Bool) -> Bool -> WatchHooks -> IO WatchManager
|
||||||
watchDir dir ignored scanevents hooks = do
|
watchDir dir ignored scanevents hooks = do
|
||||||
|
@ -60,7 +60,7 @@ watchDir dir ignored scanevents hooks = do
|
||||||
where
|
where
|
||||||
runhook h s = maybe noop (\a -> a f s) (h hooks)
|
runhook h s = maybe noop (\a -> a f s) (h hooks)
|
||||||
|
|
||||||
getstatus = catchMaybeIO . R.getFileStatus . fromRawFilePath
|
getstatus = catchMaybeIO . R.getFileStatus . toRawFilePath
|
||||||
|
|
||||||
{- Check each component of the path to see if it's ignored. -}
|
{- Check each component of the path to see if it's ignored. -}
|
||||||
ignoredPath :: (FilePath -> Bool) -> FilePath -> Bool
|
ignoredPath :: (FilePath -> Bool) -> FilePath -> Bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue