Skip to content

Commit

Permalink
remove redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Jan 9, 2025
1 parent 7f13f74 commit 5282a82
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cabal-install/tests/IntegrationTests2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,18 @@ import Distribution.Client.GlobalFlags
, globalNix
)
import Distribution.Client.Setup (globalCommand, globalStoreDir)
import Distribution.InstalledPackageInfo (InstalledPackageInfo)
import Distribution.ModuleName (ModuleName)
import Distribution.Package
import Distribution.PackageDescription
import Distribution.InstalledPackageInfo (InstalledPackageInfo)
import Distribution.Simple.Setup (toFlag, HaddockFlags(..), defaultHaddockFlags)

Check warning on line 60 in cabal-install/tests/IntegrationTests2.hs

View workflow job for this annotation

GitHub Actions / hlint

Warning in module Main: Use fewer imports ▫︎ Found: "import Distribution.Simple.Setup\n ( toFlag, HaddockFlags(..), defaultHaddockFlags )\nimport Distribution.Simple.Setup\n ( HaddockProjectFlags(..), defaultHaddockProjectFlags )\n" ▫︎ Perhaps: "import Distribution.Simple.Setup\n ( toFlag,\n HaddockFlags(..),\n defaultHaddockFlags,\n HaddockProjectFlags(..),\n defaultHaddockProjectFlags )\n"

Check warning on line 60 in cabal-install/tests/IntegrationTests2.hs

View workflow job for this annotation

GitHub Actions / hlint

Warning in module Main: Use fewer imports ▫︎ Found: "import Distribution.Simple.Setup\n ( toFlag, HaddockFlags(..), defaultHaddockFlags )\nimport Distribution.Simple.Setup\n ( HaddockProjectFlags(..), defaultHaddockProjectFlags )\n" ▫︎ Perhaps: "import Distribution.Simple.Setup\n ( toFlag,\n HaddockFlags(..),\n defaultHaddockFlags,\n HaddockProjectFlags(..),\n defaultHaddockProjectFlags )\n"
import Distribution.Client.Setup (globalCommand)
import Distribution.Client.Config (loadConfig, SavedConfig(savedGlobalFlags), createDefaultConfigFile)
import Distribution.Simple.Compiler
import Distribution.Simple.Command
import qualified Distribution.Simple.Flag as Flag
import Distribution.System
import Distribution.Version
import Distribution.ModuleName (ModuleName)
import Distribution.Text
import Distribution.Utils.Path (unsafeMakeSymbolicPath)
import qualified Distribution.Client.CmdHaddockProject as CmdHaddockProject
import Distribution.Client.Setup (globalStoreDir)
import Distribution.Client.GlobalFlags (defaultGlobalFlags)
import Distribution.Simple.Setup (HaddockProjectFlags(..), defaultHaddockProjectFlags)

import qualified Data.Map as Map
Expand All @@ -96,7 +89,6 @@ import qualified Data.ByteString as BS
import Data.Maybe (fromJust)
import Distribution.Simple.Flag (Flag (Flag, NoFlag))
import Distribution.Types.ParStrat
import Data.Maybe (fromJust)

#if !MIN_VERSION_directory(1,2,7)
removePathForcibly :: FilePath -> IO ()
Expand Down

0 comments on commit 5282a82

Please sign in to comment.