Skip to content

Commit

Permalink
Format changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrcek committed Jun 30, 2024
1 parent 0f2ad70 commit dcfafed
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ baseDynFlags = defaultDynFlags GHCEx.fakeSettings

getConDecls :: GHC.HsDataDefn GHC.GhcPs -> [GHC.LConDecl GHC.GhcPs]
getConDecls d@GHC.HsDataDefn {} = case GHC.dd_cons d of
GHC.NewTypeCon con -> [con]
GHC.NewTypeCon con -> [con]
GHC.DataTypeCons _ cons -> cons

showOutputable :: GHC.Outputable a => a -> String
Expand Down
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/Parse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module Language.Haskell.Stylish.Parse
--------------------------------------------------------------------------------
import Data.Char (toLower)
import Data.List (stripPrefix)
import qualified Data.List as List
import Data.Maybe (catMaybes,
fromMaybe,
listToMaybe,
Expand All @@ -24,7 +25,6 @@ import qualified GHC.Types.SrcLoc as GHC
import qualified GHC.Utils.Error as GHC
import qualified Language.Haskell.GhclibParserEx.GHC.Driver.Session as GHCEx
import qualified Language.Haskell.GhclibParserEx.GHC.Parser as GHCEx
import qualified Data.List as List

--------------------------------------------------------------------------------
import Language.Haskell.Stylish.GHC
Expand Down
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/Step/Imports.hs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ isQualified = (/=) GHC.NotQualified . GHC.ideclQualified
isHiding :: GHC.ImportDecl GHC.GhcPs -> Bool
isHiding d = case GHC.ideclImportList d of
Just (GHC.EverythingBut, _) -> True
_ -> False
_ -> False

isSource :: GHC.ImportDecl GHC.GhcPs -> Bool
isSource = (==) GHC.IsBoot . GHC.ideclSource
Expand Down
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/Step/ModuleHeader.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import qualified GHC.Types.SrcLoc as GHC


--------------------------------------------------------------------------------
import qualified GHC.Unit.Module.Warnings as GHC
import Language.Haskell.Stylish.Comments
import qualified Language.Haskell.Stylish.Editor as Editor
import Language.Haskell.Stylish.GHC
Expand All @@ -30,7 +31,6 @@ import Language.Haskell.Stylish.Printer
import Language.Haskell.Stylish.Step
import qualified Language.Haskell.Stylish.Step.Imports as Imports
import Language.Haskell.Stylish.Util (flagEnds)
import qualified GHC.Unit.Module.Warnings as GHC


data Config = Config
Expand Down
2 changes: 1 addition & 1 deletion lib/Language/Haskell/Stylish/Step/SimpleAlign.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ module Language.Haskell.Stylish.Step.SimpleAlign
import Data.Either (partitionEithers)
import Data.Foldable (toList)
import Data.List (foldl1', sortOn)
import qualified Data.List as List
import Data.Maybe (fromMaybe)
import qualified GHC.Hs as Hs
import qualified GHC.Parser.Annotation as GHC
import qualified GHC.Types.SrcLoc as GHC
import qualified Data.List as List

--------------------------------------------------------------------------------
import Language.Haskell.Stylish.Align
Expand Down

0 comments on commit dcfafed

Please sign in to comment.