Skip to content

Commit

Permalink
style and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Jul 21, 2024
1 parent 149f795 commit 2d0de92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
12 changes: 6 additions & 6 deletions compat/9.10.1/GHC/Compat.hs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
-- GHC 9.10.1 Compatibility
module GHC.Compat where

import GHC (modInfoExports, ModuleInfo)
import GHC.Iface.Syntax (ShowForAllFlag (..), ShowSub (..), ShowHowMuch (..), AltPpr (..))
import GHC (ModuleInfo, modInfoExports)
import GHC.Iface.Syntax (AltPpr (..), ShowForAllFlag (..), ShowHowMuch (..), ShowSub (..))
import GHC.Types.Name (OccName, nameOccName)

import DumpDecls.IgnoredDeclarations

mkShowSub :: ModuleInfo -> ShowSub
mkShowSub mod_info =
let ss_how_much = ShowSome (Just (showOcc mod_info)) (AltPpr Nothing)
in ShowSub
{ ss_how_much = ss_how_much
, ss_forall = ShowForAllMust
}
in ShowSub
{ ss_how_much = ss_how_much
, ss_forall = ShowForAllMust
}
11 changes: 5 additions & 6 deletions compat/9.6.6/GHC/Compat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
module GHC.Compat where

import GHC (ModuleInfo)
import GHC.Iface.Syntax (ShowForAllFlag (..), ShowSub (..), ShowHowMuch (..), AltPpr (..))

import GHC.Iface.Syntax (AltPpr (..), ShowForAllFlag (..), ShowHowMuch (..), ShowSub (..))

mkShowSub :: ModuleInfo -> ShowSub
mkShowSub _mod_info =
let ss_how_much = ShowSome [] (AltPpr Nothing)
in ShowSub
{ ss_how_much = ss_how_much
, ss_forall = ShowForAllMust
}
in ShowSub
{ ss_how_much = ss_how_much
, ss_forall = ShowForAllMust
}

0 comments on commit 2d0de92

Please sign in to comment.