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.
This commit is contained in:
parent
9ee2745ca5
commit
ec267aa1ea
23 changed files with 40 additions and 35 deletions
|
@ -35,7 +35,6 @@ module Crypto (
|
||||||
|
|
||||||
import qualified Data.ByteString.Lazy as L
|
import qualified Data.ByteString.Lazy as L
|
||||||
import Data.ByteString.UTF8 (fromString)
|
import Data.ByteString.UTF8 (fromString)
|
||||||
import Control.Applicative
|
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
import Control.Monad.IO.Class
|
import Control.Monad.IO.Class
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ import qualified Database.Handle as H
|
||||||
import Locations
|
import Locations
|
||||||
import Utility.PosixFiles
|
import Utility.PosixFiles
|
||||||
import Utility.Exception
|
import Utility.Exception
|
||||||
|
import Common
|
||||||
import Annex
|
import Annex
|
||||||
import Types.Key
|
import Types.Key
|
||||||
import Types.UUID
|
import Types.UUID
|
||||||
|
@ -33,13 +34,6 @@ import Annex.LockFile
|
||||||
|
|
||||||
import Database.Persist.TH
|
import Database.Persist.TH
|
||||||
import Database.Esqueleto hiding (Key)
|
import Database.Esqueleto hiding (Key)
|
||||||
import Control.Monad
|
|
||||||
import Control.Monad.IfElse
|
|
||||||
import Control.Monad.IO.Class (liftIO)
|
|
||||||
import System.Directory
|
|
||||||
import System.FilePath
|
|
||||||
import Data.Maybe
|
|
||||||
import Control.Applicative
|
|
||||||
|
|
||||||
data FsckHandle = FsckHandle H.DbHandle UUID
|
data FsckHandle = FsckHandle H.DbHandle UUID
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ module Logs.Difference (
|
||||||
module Logs.Difference.Pure
|
module Logs.Difference.Pure
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Data.Monoid
|
|
||||||
import Data.Time.Clock.POSIX
|
import Data.Time.Clock.POSIX
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@ module Logs.Difference.Pure (
|
||||||
parseDifferencesLog,
|
parseDifferencesLog,
|
||||||
) where
|
) where
|
||||||
|
|
||||||
import Data.Monoid
|
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
|
|
||||||
import Common.Annex
|
import Common.Annex
|
||||||
|
|
1
Test.hs
1
Test.hs
|
@ -14,7 +14,6 @@ import Test.Tasty.Runners
|
||||||
import Test.Tasty.HUnit
|
import Test.Tasty.HUnit
|
||||||
import Test.Tasty.QuickCheck
|
import Test.Tasty.QuickCheck
|
||||||
import Test.Tasty.Ingredients.Rerun
|
import Test.Tasty.Ingredients.Rerun
|
||||||
import Data.Monoid
|
|
||||||
|
|
||||||
import Options.Applicative hiding (command)
|
import Options.Applicative hiding (command)
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
module Types.DesktopNotify where
|
module Types.DesktopNotify where
|
||||||
|
|
||||||
import Data.Monoid
|
import Data.Monoid
|
||||||
|
import Prelude
|
||||||
|
|
||||||
data DesktopNotify = DesktopNotify
|
data DesktopNotify = DesktopNotify
|
||||||
{ notifyStart :: Bool
|
{ notifyStart :: Bool
|
||||||
|
|
|
@ -20,9 +20,10 @@ import Utility.PartialPrelude
|
||||||
import qualified Git
|
import qualified Git
|
||||||
import qualified Git.Config
|
import qualified Git.Config
|
||||||
|
|
||||||
|
import qualified Data.Set as S
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Data.Monoid
|
import Data.Monoid
|
||||||
import qualified Data.Set as S
|
import Prelude
|
||||||
|
|
||||||
-- Describes differences from the v5 repository format.
|
-- Describes differences from the v5 repository format.
|
||||||
--
|
--
|
||||||
|
|
|
@ -18,6 +18,7 @@ import Control.Applicative
|
||||||
import Control.Concurrent
|
import Control.Concurrent
|
||||||
import System.IO.Unsafe (unsafeInterleaveIO)
|
import System.IO.Unsafe (unsafeInterleaveIO)
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
|
import Prelude
|
||||||
|
|
||||||
#ifdef mingw32_HOST_OS
|
#ifdef mingw32_HOST_OS
|
||||||
import qualified System.Win32 as Win32
|
import qualified System.Win32 as Win32
|
||||||
|
|
|
@ -13,6 +13,7 @@ module Utility.Env where
|
||||||
import Utility.Exception
|
import Utility.Exception
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
|
import Prelude
|
||||||
import qualified System.Environment as E
|
import qualified System.Environment as E
|
||||||
import qualified System.SetEnv
|
import qualified System.SetEnv
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -39,6 +39,7 @@ import Data.List
|
||||||
import Data.String.Utils
|
import Data.String.Utils
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
|
import Prelude
|
||||||
|
|
||||||
type DesktopEntry = [(Key, Value)]
|
type DesktopEntry = [(Key, Value)]
|
||||||
|
|
||||||
|
|
|
@ -9,14 +9,8 @@
|
||||||
|
|
||||||
module Utility.Gpg where
|
module Utility.Gpg where
|
||||||
|
|
||||||
import Control.Applicative
|
|
||||||
import Control.Concurrent
|
|
||||||
import Control.Monad.IO.Class
|
|
||||||
import qualified Data.Map as M
|
|
||||||
|
|
||||||
import Common
|
import Common
|
||||||
import qualified Build.SysConfig as SysConfig
|
import qualified Build.SysConfig as SysConfig
|
||||||
|
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
import System.Posix.Types
|
import System.Posix.Types
|
||||||
import qualified System.Posix.IO
|
import qualified System.Posix.IO
|
||||||
|
@ -27,6 +21,10 @@ import Utility.Tmp
|
||||||
#endif
|
#endif
|
||||||
import Utility.Format (decode_c)
|
import Utility.Format (decode_c)
|
||||||
|
|
||||||
|
import Control.Concurrent
|
||||||
|
import Control.Monad.IO.Class
|
||||||
|
import qualified Data.Map as M
|
||||||
|
|
||||||
type KeyId = String
|
type KeyId = String
|
||||||
|
|
||||||
newtype KeyIds = KeyIds { keyIds :: [KeyId] }
|
newtype KeyIds = KeyIds { keyIds :: [KeyId] }
|
||||||
|
|
|
@ -20,11 +20,12 @@ import Utility.PartialPrelude
|
||||||
import Utility.Applicative
|
import Utility.Applicative
|
||||||
import Utility.QuickCheck
|
import Utility.QuickCheck
|
||||||
|
|
||||||
|
import qualified Data.Map as M
|
||||||
import Data.Time.Clock
|
import Data.Time.Clock
|
||||||
import Data.Time.Clock.POSIX (POSIXTime)
|
import Data.Time.Clock.POSIX (POSIXTime)
|
||||||
import Data.Char
|
import Data.Char
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
import qualified Data.Map as M
|
import Prelude
|
||||||
|
|
||||||
newtype Duration = Duration { durationSeconds :: Integer }
|
newtype Duration = Duration { durationSeconds :: Integer }
|
||||||
deriving (Eq, Ord, Read, Show)
|
deriving (Eq, Ord, Read, Show)
|
||||||
|
|
|
@ -7,7 +7,12 @@
|
||||||
|
|
||||||
module Utility.LinuxMkLibs where
|
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 Data.Maybe
|
||||||
import System.Directory
|
import System.Directory
|
||||||
import System.FilePath
|
import System.FilePath
|
||||||
|
@ -15,12 +20,8 @@ import Data.List.Utils
|
||||||
import System.Posix.Files
|
import System.Posix.Files
|
||||||
import Data.Char
|
import Data.Char
|
||||||
import Control.Monad.IfElse
|
import Control.Monad.IfElse
|
||||||
|
import Control.Applicative
|
||||||
import Utility.PartialPrelude
|
import Prelude
|
||||||
import Utility.Directory
|
|
||||||
import Utility.Process
|
|
||||||
import Utility.Monad
|
|
||||||
import Utility.Path
|
|
||||||
|
|
||||||
{- Installs a library. If the library is a symlink to another file,
|
{- 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. -}
|
- install the file it links to, and update the symlink to be relative. -}
|
||||||
|
|
|
@ -9,20 +9,21 @@
|
||||||
|
|
||||||
module Utility.Misc where
|
module Utility.Misc where
|
||||||
|
|
||||||
|
import Utility.FileSystemEncoding
|
||||||
|
import Utility.Monad
|
||||||
|
|
||||||
import System.IO
|
import System.IO
|
||||||
import Control.Monad
|
import Control.Monad
|
||||||
import Foreign
|
import Foreign
|
||||||
import Data.Char
|
import Data.Char
|
||||||
import Data.List
|
import Data.List
|
||||||
import Control.Applicative
|
|
||||||
import System.Exit
|
import System.Exit
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
import System.Posix.Process (getAnyProcessStatus)
|
import System.Posix.Process (getAnyProcessStatus)
|
||||||
import Utility.Exception
|
import Utility.Exception
|
||||||
#endif
|
#endif
|
||||||
|
import Control.Applicative
|
||||||
import Utility.FileSystemEncoding
|
import Prelude
|
||||||
import Utility.Monad
|
|
||||||
|
|
||||||
{- A version of hgetContents that is not lazy. Ensures file is
|
{- A version of hgetContents that is not lazy. Ensures file is
|
||||||
- all read before it gets closed. -}
|
- all read before it gets closed. -}
|
||||||
|
|
|
@ -26,6 +26,7 @@ import Utility.Exception
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
#endif
|
#endif
|
||||||
|
import Prelude
|
||||||
|
|
||||||
{- This is a stripped down mntent, containing only
|
{- This is a stripped down mntent, containing only
|
||||||
- fields available everywhere. -}
|
- fields available everywhere. -}
|
||||||
|
|
|
@ -11,6 +11,7 @@ import Utility.Process
|
||||||
import Utility.Exception
|
import Utility.Exception
|
||||||
|
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
|
import Prelude
|
||||||
|
|
||||||
{- Haskell lacks uname(2) bindings, except in the
|
{- Haskell lacks uname(2) bindings, except in the
|
||||||
- Bindings.Uname addon. Rather than depend on that,
|
- Bindings.Uname addon. Rather than depend on that,
|
||||||
|
|
|
@ -16,6 +16,7 @@ import Data.List
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Data.Char
|
import Data.Char
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
|
import Prelude
|
||||||
|
|
||||||
#ifdef mingw32_HOST_OS
|
#ifdef mingw32_HOST_OS
|
||||||
import qualified System.FilePath.Posix as Posix
|
import qualified System.FilePath.Posix as Posix
|
||||||
|
|
|
@ -54,6 +54,7 @@ import qualified System.Posix.IO
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
#endif
|
#endif
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
|
import Prelude
|
||||||
|
|
||||||
import Utility.Misc
|
import Utility.Misc
|
||||||
import Utility.Exception
|
import Utility.Exception
|
||||||
|
|
|
@ -19,6 +19,7 @@ import System.Posix.Types
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
import qualified Data.Set as S
|
import qualified Data.Set as S
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
|
import Prelude
|
||||||
|
|
||||||
instance (Arbitrary k, Arbitrary v, Eq k, Ord k) => Arbitrary (M.Map k v) where
|
instance (Arbitrary k, Arbitrary v, Eq k, Ord k) => Arbitrary (M.Map k v) where
|
||||||
arbitrary = M.fromList <$> arbitrary
|
arbitrary = M.fromList <$> arbitrary
|
||||||
|
|
|
@ -25,8 +25,9 @@ import Utility.PartialPrelude
|
||||||
import Network
|
import Network
|
||||||
import Data.Function
|
import Data.Function
|
||||||
import Data.List
|
import Data.List
|
||||||
import Control.Applicative
|
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
|
import Control.Applicative
|
||||||
|
import Prelude
|
||||||
|
|
||||||
#ifdef WITH_ADNS
|
#ifdef WITH_ADNS
|
||||||
import ADNS.Resolver
|
import ADNS.Resolver
|
||||||
|
|
|
@ -10,9 +10,10 @@ module Utility.SafeCommand where
|
||||||
import System.Exit
|
import System.Exit
|
||||||
import Utility.Process
|
import Utility.Process
|
||||||
import Data.String.Utils
|
import Data.String.Utils
|
||||||
import Control.Applicative
|
|
||||||
import System.FilePath
|
import System.FilePath
|
||||||
import Data.Char
|
import Data.Char
|
||||||
|
import Control.Applicative
|
||||||
|
import Prelude
|
||||||
|
|
||||||
{- A type for parameters passed to a shell command. A command can
|
{- A type for parameters passed to a shell command. A command can
|
||||||
- be passed either some Params (multiple parameters can be included,
|
- be passed either some Params (multiple parameters can be included,
|
||||||
|
|
|
@ -32,7 +32,6 @@ import Utility.QuickCheck
|
||||||
import Utility.PartialPrelude
|
import Utility.PartialPrelude
|
||||||
import Utility.Misc
|
import Utility.Misc
|
||||||
|
|
||||||
import Control.Applicative
|
|
||||||
import Data.List
|
import Data.List
|
||||||
import Data.Time.Clock
|
import Data.Time.Clock
|
||||||
import Data.Time.LocalTime
|
import Data.Time.LocalTime
|
||||||
|
@ -41,6 +40,8 @@ import Data.Time.Calendar.WeekDate
|
||||||
import Data.Time.Calendar.OrdinalDate
|
import Data.Time.Calendar.OrdinalDate
|
||||||
import Data.Tuple.Utils
|
import Data.Tuple.Utils
|
||||||
import Data.Char
|
import Data.Char
|
||||||
|
import Control.Applicative
|
||||||
|
import Prelude
|
||||||
|
|
||||||
{- Some sort of scheduled event. -}
|
{- Some sort of scheduled event. -}
|
||||||
data Schedule = Schedule Recurrance ScheduledTime
|
data Schedule = Schedule Recurrance ScheduledTime
|
||||||
|
|
|
@ -13,12 +13,13 @@ module Utility.UserInfo (
|
||||||
myUserGecos,
|
myUserGecos,
|
||||||
) where
|
) where
|
||||||
|
|
||||||
|
import Utility.Env
|
||||||
|
|
||||||
import System.PosixCompat
|
import System.PosixCompat
|
||||||
#ifndef mingw32_HOST_OS
|
#ifndef mingw32_HOST_OS
|
||||||
import Control.Applicative
|
import Control.Applicative
|
||||||
#endif
|
#endif
|
||||||
|
import Prelude
|
||||||
import Utility.Env
|
|
||||||
|
|
||||||
{- Current user's home directory.
|
{- Current user's home directory.
|
||||||
-
|
-
|
||||||
|
|
Loading…
Reference in a new issue