fix unused module import warnings when building on windows
This commit is contained in:
parent
81ec673f9b
commit
868942e19b
6 changed files with 9 additions and 7 deletions
|
@ -35,8 +35,10 @@ import Types.FileMatcher
|
||||||
import Git.FilePath
|
import Git.FilePath
|
||||||
import Types.Remote (RemoteConfig)
|
import Types.Remote (RemoteConfig)
|
||||||
import Annex.CheckAttr
|
import Annex.CheckAttr
|
||||||
import Annex.Magic
|
|
||||||
import Git.CheckAttr (unspecifiedAttr)
|
import Git.CheckAttr (unspecifiedAttr)
|
||||||
|
#ifdef WITH_MAGICMIME
|
||||||
|
import Annex.Magic
|
||||||
|
#endif
|
||||||
|
|
||||||
import Data.Either
|
import Data.Either
|
||||||
import qualified Data.Set as S
|
import qualified Data.Set as S
|
||||||
|
|
|
@ -22,10 +22,12 @@ import Assistant.Install.AutoStart
|
||||||
import Assistant.Install.Menu
|
import Assistant.Install.Menu
|
||||||
|
|
||||||
import System.Environment
|
import System.Environment
|
||||||
|
#ifndef mingw32_HOST_OS
|
||||||
import System.PosixCompat.User
|
import System.PosixCompat.User
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
import Prelude
|
import Prelude
|
||||||
|
#endif
|
||||||
|
|
||||||
systemwideInstall :: IO Bool
|
systemwideInstall :: IO Bool
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
module Utility.Env.Set where
|
module Utility.Env.Set where
|
||||||
|
|
||||||
#ifdef mingw32_HOST_OS
|
#ifdef mingw32_HOST_OS
|
||||||
import qualified System.Environment as E
|
|
||||||
import qualified System.SetEnv
|
import qualified System.SetEnv
|
||||||
import Utility.Env
|
import Utility.Env
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -16,10 +16,10 @@ import System.Posix.Types
|
||||||
import System.Posix.IO
|
import System.Posix.IO
|
||||||
import Utility.Env
|
import Utility.Env
|
||||||
import Utility.Env.Set
|
import Utility.Env.Set
|
||||||
|
import Utility.FileMode
|
||||||
#else
|
#else
|
||||||
import Utility.Tmp
|
import Utility.Tmp
|
||||||
#endif
|
#endif
|
||||||
import Utility.FileMode
|
|
||||||
import Utility.Format (decode_c)
|
import Utility.Format (decode_c)
|
||||||
|
|
||||||
import Control.Concurrent
|
import Control.Concurrent
|
||||||
|
|
|
@ -48,7 +48,6 @@ import Data.Time.Clock.POSIX
|
||||||
|
|
||||||
#ifdef mingw32_HOST_OS
|
#ifdef mingw32_HOST_OS
|
||||||
import Data.Word (Word64)
|
import Data.Word (Word64)
|
||||||
import System.Directory
|
|
||||||
#else
|
#else
|
||||||
import System.Posix.Files
|
import System.Posix.Files
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -11,13 +11,13 @@
|
||||||
module Utility.Path.Max where
|
module Utility.Path.Max where
|
||||||
|
|
||||||
import System.FilePath
|
import System.FilePath
|
||||||
import Data.List
|
|
||||||
import Control.Applicative
|
|
||||||
import Prelude
|
|
||||||
|
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
import Utility.Exception
|
import Utility.Exception
|
||||||
import System.Posix.Files
|
import System.Posix.Files
|
||||||
|
import Data.List
|
||||||
|
import Control.Applicative
|
||||||
|
import Prelude
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{- Maximum size to use for a file in a specified directory.
|
{- Maximum size to use for a file in a specified directory.
|
||||||
|
|
Loading…
Reference in a new issue