on master help sign in
Remove redundant imports

When the problem with ‘dev’ flag is fixed this will be enforced on CI properly. For now it is just too annoying to see all the warnings.

commitea2d80ed652bc70322a2917e4ef91da1540b5267 authorMark Karpov <markkarpov92@gmail.com> dateFri 10 Apr 2020, 12:17 (7 years ago) parent5acda48
12 files changed−19
src/Ormolu/Diff.hs−1 src/Ormolu/Printer/Meat/Common.hs−1 src/Ormolu/Printer/Meat/Declaration.hs−1 src/Ormolu/Printer/Meat/Declaration/Class.hs−1 src/Ormolu/Printer/Meat/Declaration/Data.hs−2 src/Ormolu/Printer/Meat/Declaration/RoleAnnotation.hs−2 src/Ormolu/Printer/Meat/Declaration/Type.hs−2 src/Ormolu/Printer/Meat/Declaration/TypeFamily.hs−2 src/Ormolu/Printer/Meat/Declaration/Value.hs−2 src/Ormolu/Printer/Meat/ImportExport.hs−1 src/Ormolu/Printer/Operators.hs−3 src/Ormolu/Utils.hs−1
src/Ormolu/Diff.hs−1
@@ -8,7 +8,6 @@ module Ormolu.Diff
88 )
99where
1010
11−import BasicTypes (SourceText)
1211import Data.ByteString (ByteString)
1312import Data.Generics
1413import Data.Text (Text)
src/Ormolu/Printer/Meat/Common.hs−1
@@ -24,7 +24,6 @@ import Name (nameStableString)
2424import OccName (OccName (..))
2525import Ormolu.Printer.Combinators
2626import Ormolu.Utils
27−import RdrName (RdrName (..))
2827
2928-- | Data and type family style.
3029data FamilyStyle
src/Ormolu/Printer/Meat/Declaration.hs−1
@@ -34,7 +34,6 @@ import Ormolu.Printer.Meat.Declaration.Value
3434import Ormolu.Printer.Meat.Declaration.Warning
3535import Ormolu.Printer.Meat.Type
3636import Ormolu.Utils
37−import RdrName (rdrNameOcc)
3837
3938data UserGrouping
4039 = -- | Always put newlines where we think they should be
src/Ormolu/Printer/Meat/Declaration/Class.hs−1
@@ -18,7 +18,6 @@ import Ormolu.Printer.Combinators
1818import Ormolu.Printer.Meat.Common
1919import {-# SOURCE #-} Ormolu.Printer.Meat.Declaration
2020import Ormolu.Printer.Meat.Type
21−import RdrName (RdrName (..))
2221
2322p_classDecl ::
2423 LHsContext GhcPs ->
src/Ormolu/Printer/Meat/Declaration/Data.hs−2
@@ -15,8 +15,6 @@ import Ormolu.Printer.Combinators
1515import Ormolu.Printer.Meat.Common
1616import Ormolu.Printer.Meat.Type
1717import Ormolu.Utils
18−import RdrName (RdrName (..))
19−import SrcLoc (Located)
2018
2119p_dataDecl ::
2220 -- | Whether to format as data family
src/Ormolu/Printer/Meat/Declaration/RoleAnnotation.hs−2
@@ -12,8 +12,6 @@ import CoAxiom
1212import GHC
1313import Ormolu.Printer.Combinators
1414import Ormolu.Printer.Meat.Common
15−import RdrName (RdrName (..))
16−import SrcLoc (Located)
1715
1816p_roleAnnot :: RoleAnnotDecl GhcPs -> R ()
1917p_roleAnnot = \case
src/Ormolu/Printer/Meat/Declaration/Type.hs−2
@@ -11,8 +11,6 @@ import GHC
1111import Ormolu.Printer.Combinators
1212import Ormolu.Printer.Meat.Common
1313import Ormolu.Printer.Meat.Type
14−import RdrName (RdrName (..))
15−import SrcLoc (Located)
1614
1715p_synDecl ::
1816 -- | Type constructor
src/Ormolu/Printer/Meat/Declaration/TypeFamily.hs−2
@@ -9,7 +9,6 @@ module Ormolu.Printer.Meat.Declaration.TypeFamily
99 )
1010where
1111
12−import BasicTypes (LexicalFixity (..))
1312import Control.Monad
1413import Data.Maybe (isNothing)
1514import GHC
@@ -17,7 +16,6 @@ import Ormolu.Printer.Combinators
1716import Ormolu.Printer.Meat.Common
1817import Ormolu.Printer.Meat.Type
1918import Ormolu.Utils
20−import SrcLoc (GenLocated (..), Located)
2119
2220p_famDecl :: FamilyStyle -> FamilyDecl GhcPs -> R ()
2321p_famDecl style FamilyDecl {fdTyVars = HsQTvs {..}, ..} = do
src/Ormolu/Printer/Meat/Declaration/Value.hs−2
@@ -35,8 +35,6 @@ import Ormolu.Printer.Meat.Declaration.Signature
3535import Ormolu.Printer.Meat.Type
3636import Ormolu.Printer.Operators
3737import Ormolu.Utils
38−import RdrName (RdrName (..), rdrNameOcc)
39−import SrcLoc (combineSrcSpans, isOneLineSpan)
4038
4139-- | Style of a group of equations.
4240data MatchGroupStyle
src/Ormolu/Printer/Meat/ImportExport.hs−1
@@ -11,7 +11,6 @@ where
1111
1212import Control.Monad
1313import GHC
14−import GHC.Hs.ImpExp (IE (..))
1514import Ormolu.Printer.Combinators
1615import Ormolu.Printer.Meat.Common
1716
src/Ormolu/Printer/Operators.hs−3
@@ -10,7 +10,6 @@ module Ormolu.Printer.Operators
1010 )
1111where
1212
13−import BasicTypes (Fixity (..), SourceText (NoSourceText), compareFixity, defaultFixity)
1413import Data.Function (on)
1514import Data.List
1615import Data.Maybe (fromMaybe, mapMaybe)
@@ -18,8 +17,6 @@ import Data.Ord (Down (Down), comparing)
1817import GHC
1918import OccName (mkVarOcc)
2019import Ormolu.Utils (unSrcSpan)
21−import RdrName (mkRdrUnqual)
22−import SrcLoc (combineSrcSpans)
2320
2421-- | Intermediate representation of operator trees. It has two type
2522-- parameters: @ty@ is the type of sub-expressions, while @op@ is the type
src/Ormolu/Utils.hs−1
@@ -22,7 +22,6 @@ import Data.Maybe (fromMaybe)
2222import Data.Text (Text)
2323import qualified Data.Text as T
2424import GHC
25−import GHC.Hs.Doc (HsDocString, unpackHDS)
2625import qualified Outputable as GHC
2726
2827-- | Combine all source spans from the given list.