fix build warnings on windows
This commit is contained in:
parent
7c5007279c
commit
418e97e847
2 changed files with 3 additions and 2 deletions
|
@ -64,7 +64,8 @@ moveFile src dest = tryIO (R.rename src dest) >>= onrename
|
||||||
]
|
]
|
||||||
let e' = e
|
let e' = e
|
||||||
#else
|
#else
|
||||||
r <- tryIO $ copyFile (fromRawFilePath src) tmp
|
r <- tryIO $ copyright
|
||||||
|
=<< copyFile (fromRawFilePath src) tmp
|
||||||
let (ok, e') = case r of
|
let (ok, e') = case r of
|
||||||
Left err -> (False, err)
|
Left err -> (False, err)
|
||||||
Right _ -> (True, e)
|
Right _ -> (True, e)
|
||||||
|
|
|
@ -18,9 +18,9 @@ module Utility.ThreadScheduler (
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Control.Monad
|
import Control.Monad
|
||||||
import Control.Concurrent
|
|
||||||
import qualified Control.Concurrent.Thread.Delay as Unbounded
|
import qualified Control.Concurrent.Thread.Delay as Unbounded
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
|
import Control.Concurrent
|
||||||
import Control.Monad.IfElse
|
import Control.Monad.IfElse
|
||||||
import System.Posix.IO
|
import System.Posix.IO
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue