@@ -297,8 +297,8 @@ captureSplicesAndDeps TypecheckHelpers{..} env k = do
297297#endif
298298
299299 | n <- concatMap (uniqDSetToList . bcoFreeNames) $ bc_bcos bcos
300- , Just mod <- [nameModule_maybe n] -- Names from other modules
301300 , not (isWiredInName n) -- Exclude wired-in names
301+ , Just mod <- [nameModule_maybe n] -- Names from other modules
302302 , moduleUnitId mod `elem` home_unit_ids -- Only care about stuff from the home package set
303303 ]
304304 home_unit_ids =
@@ -340,7 +340,7 @@ captureSplicesAndDeps TypecheckHelpers{..} env k = do
340340#else
341341 {- load it -}
342342 ; fv_hvs <- loadDecls (hscInterp hsc_env') hsc_env' srcspan bcos
343- ; let hval = ( expectJust " hscCompileCoreExpr'" $ lookup (idName binding_id) fv_hvs)
343+ ; let hval = expectJust " hscCompileCoreExpr'" $ lookup (idName binding_id) fv_hvs
344344#endif
345345
346346 ; modifyIORef' var (flip extendModuleEnvList [(mi_module $ hm_iface hm, linkableHash lb) | lb <- lbs, let hm = linkableHomeMod lb])
@@ -595,7 +595,7 @@ mkHiFileResultCompile se session' tcm simplified_guts = catchErrs $ do
595595 -- SYB is slow but fine given that this is only used for testing
596596 noUnfoldings = everywhere $ mkT $ \ v -> if isId v
597597 then
598- let v' = if isOtherUnfolding (realIdUnfolding v) then ( setIdUnfolding v noUnfolding) else v
598+ let v' = if isOtherUnfolding (realIdUnfolding v) then setIdUnfolding v noUnfolding else v
599599 in setIdOccInfo v' noOccInfo
600600 else v
601601 isOtherUnfolding (OtherCon _) = True
@@ -1256,9 +1256,9 @@ parseHeader
12561256 -> FilePath -- ^ the filename (for source locations)
12571257 -> Util. StringBuffer -- ^ Haskell module source text (full Unicode is supported)
12581258#if MIN_VERSION_ghc(9,5,0)
1259- -> ExceptT [FileDiagnostic ] m ([FileDiagnostic ], Located (HsModule GhcPs ))
1259+ -> ExceptT [FileDiagnostic ] m ([FileDiagnostic ], Located (HsModule GhcPs ))
12601260#else
1261- -> ExceptT [FileDiagnostic ] m ([FileDiagnostic ], Located ( HsModule ) )
1261+ -> ExceptT [FileDiagnostic ] m ([FileDiagnostic ], Located HsModule )
12621262#endif
12631263parseHeader dflags filename contents = do
12641264 let loc = mkRealSrcLoc (Util. mkFastString filename) 1 1
@@ -1748,19 +1748,19 @@ pathToModuleName = mkModuleName . map rep
17481748
17491749 - CPP clauses should be placed at the end of the imports section. The clauses
17501750 should be ordered by the GHC version they target from earlier to later versions,
1751- with negative if clauses coming before positive if clauses of the same
1752- version. (If you think about which GHC version a clause activates for this
1751+ with negative if clauses coming before positive if clauses of the same
1752+ version. (If you think about which GHC version a clause activates for this
17531753 should make sense `!MIN_VERSION_GHC(9,0,0)` refers to 8.10 and lower which is
1754- a earlier version than `MIN_VERSION_GHC(9,0,0)` which refers to versions 9.0
1754+ a earlier version than `MIN_VERSION_GHC(9,0,0)` which refers to versions 9.0
17551755 and later). In addition there should be a space before and after each CPP
17561756 clause.
17571757
1758- - In if clauses that use `&&` and depend on more than one statement, the
1758+ - In if clauses that use `&&` and depend on more than one statement, the
17591759 positive statement should come before the negative statement. In addition the
17601760 clause should come after the single positive clause for that GHC version.
17611761
1762- - There shouldn't be multiple identical CPP statements. The use of odd or even
1762+ - There shouldn't be multiple identical CPP statements. The use of odd or even
17631763 GHC numbers is identical, with the only preference being to use what is
1764- already there. (i.e. (`MIN_VERSION_GHC(9,2,0)` and `MIN_VERSION_GHC(9,1,0)`
1764+ already there. (i.e. (`MIN_VERSION_GHC(9,2,0)` and `MIN_VERSION_GHC(9,1,0)`
17651765 are functionally equivalent)
17661766-}
0 commit comments