diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-05-10 16:19:56 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-05-10 16:20:30 -0400 |
commit | 5201613fc97b855bf60979ac7e2550ad08fa3798 (patch) | |
tree | aed27d1952cd8455aecdd501cfbc5e0b43bfbb5c /Utility | |
parent | 21b14af6904123d5c5cc1c575aee7203f65d7800 (diff) |
rejigger imports for clean build with ghc 7.10's AMP changes
The explict import Prelude after import Control.Applicative is a trick
to avoid a warning.
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/Directory.hs | 1 | ||||
-rw-r--r-- | Utility/Env.hs | 1 | ||||
-rw-r--r-- | Utility/FreeDesktop.hs | 1 | ||||
-rw-r--r-- | Utility/Gpg.hs | 10 | ||||
-rw-r--r-- | Utility/HumanTime.hs | 3 | ||||
-rw-r--r-- | Utility/LinuxMkLibs.hs | 15 | ||||
-rw-r--r-- | Utility/Misc.hs | 9 | ||||
-rw-r--r-- | Utility/Mounts.hsc | 1 | ||||
-rw-r--r-- | Utility/Network.hs | 1 | ||||
-rw-r--r-- | Utility/Path.hs | 1 | ||||
-rw-r--r-- | Utility/Process.hs | 1 | ||||
-rw-r--r-- | Utility/QuickCheck.hs | 1 | ||||
-rw-r--r-- | Utility/SRV.hs | 3 | ||||
-rw-r--r-- | Utility/SafeCommand.hs | 3 | ||||
-rw-r--r-- | Utility/Scheduled.hs | 3 | ||||
-rw-r--r-- | Utility/UserInfo.hs | 5 |
16 files changed, 36 insertions, 23 deletions
diff --git a/Utility/Directory.hs b/Utility/Directory.hs index 2e037fdda..0c95d9675 100644 --- a/Utility/Directory.hs +++ b/Utility/Directory.hs @@ -18,6 +18,7 @@ import Control.Applicative import Control.Concurrent import System.IO.Unsafe (unsafeInterleaveIO) import Data.Maybe +import Prelude #ifdef mingw32_HOST_OS import qualified System.Win32 as Win32 diff --git a/Utility/Env.hs b/Utility/Env.hs index fdf06d807..0697dbc8d 100644 --- a/Utility/Env.hs +++ b/Utility/Env.hs @@ -13,6 +13,7 @@ module Utility.Env where import Utility.Exception import Control.Applicative import Data.Maybe +import Prelude import qualified System.Environment as E import qualified System.SetEnv #else diff --git a/Utility/FreeDesktop.hs b/Utility/FreeDesktop.hs index ee1c2f302..4e35680b0 100644 --- a/Utility/FreeDesktop.hs +++ b/Utility/FreeDesktop.hs @@ -39,6 +39,7 @@ import Data.List import Data.String.Utils import Data.Maybe import Control.Applicative +import Prelude type DesktopEntry = [(Key, Value)] diff --git a/Utility/Gpg.hs b/Utility/Gpg.hs index 6323d3a00..a1b782d97 100644 --- a/Utility/Gpg.hs +++ b/Utility/Gpg.hs @@ -9,14 +9,8 @@ module Utility.Gpg where -import Control.Applicative -import Control.Concurrent -import Control.Monad.IO.Class -import qualified Data.Map as M - import Common import qualified Build.SysConfig as SysConfig - #ifndef mingw32_HOST_OS import System.Posix.Types import qualified System.Posix.IO @@ -27,6 +21,10 @@ import Utility.Tmp #endif import Utility.Format (decode_c) +import Control.Concurrent +import Control.Monad.IO.Class +import qualified Data.Map as M + type KeyId = String newtype KeyIds = KeyIds { keyIds :: [KeyId] } diff --git a/Utility/HumanTime.hs b/Utility/HumanTime.hs index 85a9e15b6..e8fdb7c6e 100644 --- a/Utility/HumanTime.hs +++ b/Utility/HumanTime.hs @@ -20,11 +20,12 @@ import Utility.PartialPrelude import Utility.Applicative import Utility.QuickCheck +import qualified Data.Map as M import Data.Time.Clock import Data.Time.Clock.POSIX (POSIXTime) import Data.Char import Control.Applicative -import qualified Data.Map as M +import Prelude newtype Duration = Duration { durationSeconds :: Integer } deriving (Eq, Ord, Read, Show) diff --git a/Utility/LinuxMkLibs.hs b/Utility/LinuxMkLibs.hs index db64d1236..fdeb77959 100644 --- a/Utility/LinuxMkLibs.hs +++ b/Utility/LinuxMkLibs.hs @@ -7,7 +7,12 @@ module Utility.LinuxMkLibs where -import Control.Applicative +import Utility.PartialPrelude +import Utility.Directory +import Utility.Process +import Utility.Monad +import Utility.Path + import Data.Maybe import System.Directory import System.FilePath @@ -15,12 +20,8 @@ import Data.List.Utils import System.Posix.Files import Data.Char import Control.Monad.IfElse - -import Utility.PartialPrelude -import Utility.Directory -import Utility.Process -import Utility.Monad -import Utility.Path +import Control.Applicative +import Prelude {- Installs a library. If the library is a symlink to another file, - install the file it links to, and update the symlink to be relative. -} diff --git a/Utility/Misc.hs b/Utility/Misc.hs index e4eccac43..1fa08ddd1 100644 --- a/Utility/Misc.hs +++ b/Utility/Misc.hs @@ -9,20 +9,21 @@ module Utility.Misc where +import Utility.FileSystemEncoding +import Utility.Monad + import System.IO import Control.Monad import Foreign import Data.Char import Data.List -import Control.Applicative import System.Exit #ifndef mingw32_HOST_OS import System.Posix.Process (getAnyProcessStatus) import Utility.Exception #endif - -import Utility.FileSystemEncoding -import Utility.Monad +import Control.Applicative +import Prelude {- A version of hgetContents that is not lazy. Ensures file is - all read before it gets closed. -} diff --git a/Utility/Mounts.hsc b/Utility/Mounts.hsc index 1fb2362df..ad4adf334 100644 --- a/Utility/Mounts.hsc +++ b/Utility/Mounts.hsc @@ -26,6 +26,7 @@ import Utility.Exception import Data.Maybe import Control.Applicative #endif +import Prelude {- This is a stripped down mntent, containing only - fields available everywhere. -} diff --git a/Utility/Network.hs b/Utility/Network.hs index 7f228e155..dc044a932 100644 --- a/Utility/Network.hs +++ b/Utility/Network.hs @@ -11,6 +11,7 @@ import Utility.Process import Utility.Exception import Control.Applicative +import Prelude {- Haskell lacks uname(2) bindings, except in the - Bindings.Uname addon. Rather than depend on that, diff --git a/Utility/Path.hs b/Utility/Path.hs index 9f0737fe8..d8fab10cc 100644 --- a/Utility/Path.hs +++ b/Utility/Path.hs @@ -16,6 +16,7 @@ import Data.List import Data.Maybe import Data.Char import Control.Applicative +import Prelude #ifdef mingw32_HOST_OS import qualified System.FilePath.Posix as Posix diff --git a/Utility/Process.hs b/Utility/Process.hs index cbbe8a811..86a25ab91 100644 --- a/Utility/Process.hs +++ b/Utility/Process.hs @@ -54,6 +54,7 @@ import qualified System.Posix.IO import Control.Applicative #endif import Data.Maybe +import Prelude import Utility.Misc import Utility.Exception diff --git a/Utility/QuickCheck.hs b/Utility/QuickCheck.hs index 54200d3f7..cd408ddc9 100644 --- a/Utility/QuickCheck.hs +++ b/Utility/QuickCheck.hs @@ -19,6 +19,7 @@ import System.Posix.Types import qualified Data.Map as M import qualified Data.Set as S import Control.Applicative +import Prelude instance (Arbitrary k, Arbitrary v, Eq k, Ord k) => Arbitrary (M.Map k v) where arbitrary = M.fromList <$> arbitrary diff --git a/Utility/SRV.hs b/Utility/SRV.hs index 203585a7e..b6d57dea5 100644 --- a/Utility/SRV.hs +++ b/Utility/SRV.hs @@ -25,8 +25,9 @@ import Utility.PartialPrelude import Network import Data.Function import Data.List -import Control.Applicative import Data.Maybe +import Control.Applicative +import Prelude #ifdef WITH_ADNS import ADNS.Resolver diff --git a/Utility/SafeCommand.hs b/Utility/SafeCommand.hs index 9eaa53084..efa14b48e 100644 --- a/Utility/SafeCommand.hs +++ b/Utility/SafeCommand.hs @@ -10,9 +10,10 @@ module Utility.SafeCommand where import System.Exit import Utility.Process import Data.String.Utils -import Control.Applicative import System.FilePath import Data.Char +import Control.Applicative +import Prelude {- A type for parameters passed to a shell command. A command can - be passed either some Params (multiple parameters can be included, diff --git a/Utility/Scheduled.hs b/Utility/Scheduled.hs index e077a1fea..b3813323d 100644 --- a/Utility/Scheduled.hs +++ b/Utility/Scheduled.hs @@ -32,7 +32,6 @@ import Utility.QuickCheck import Utility.PartialPrelude import Utility.Misc -import Control.Applicative import Data.List import Data.Time.Clock import Data.Time.LocalTime @@ -41,6 +40,8 @@ import Data.Time.Calendar.WeekDate import Data.Time.Calendar.OrdinalDate import Data.Tuple.Utils import Data.Char +import Control.Applicative +import Prelude {- Some sort of scheduled event. -} data Schedule = Schedule Recurrance ScheduledTime diff --git a/Utility/UserInfo.hs b/Utility/UserInfo.hs index 5bf8d5c09..dbb09e70d 100644 --- a/Utility/UserInfo.hs +++ b/Utility/UserInfo.hs @@ -13,12 +13,13 @@ module Utility.UserInfo ( myUserGecos, ) where +import Utility.Env + import System.PosixCompat #ifndef mingw32_HOST_OS import Control.Applicative #endif - -import Utility.Env +import Prelude {- Current user's home directory. - |