@@ -74,9 +74,10 @@ import Development.IDE.Core.Preprocessor
74
74
import Development.IDE.Core.RuleTypes
75
75
import Development.IDE.Core.Shake
76
76
import Development.IDE.Core.Tracing (withTrace )
77
- import Development.IDE.GHC.Compat hiding (loadInterface ,
78
- parseHeader , parseModule ,
79
- tcRnModule , writeHieFile , assert )
77
+ import Development.IDE.GHC.Compat hiding (assert ,
78
+ loadInterface , parseHeader ,
79
+ parseModule , tcRnModule ,
80
+ writeHieFile )
80
81
import qualified Development.IDE.GHC.Compat as Compat
81
82
import qualified Development.IDE.GHC.Compat as GHC
82
83
import qualified Development.IDE.GHC.Compat.Util as Util
@@ -1078,7 +1079,7 @@ getModSummaryFromImports env fp _modTime mContents = do
1078
1079
forM_ (ms_srcimps ++ ms_textual_imps) $ \ (mb_p, m) -> do
1079
1080
put $ Util. uniq $ moduleNameFS $ unLoc m
1080
1081
case mb_p of
1081
- G. NoPkgQual -> pure ()
1082
+ G. NoPkgQual -> pure ()
1082
1083
G. ThisPkg uid -> put $ getKey $ getUnique uid
1083
1084
G. OtherPkg uid -> put $ getKey $ getUnique uid
1084
1085
return $! Util. fingerprintFingerprints $
@@ -1323,7 +1324,7 @@ loadInterface session ms linkableNeeded RecompilationInfo{..} = do
1323
1324
_read_dflags = hsc_dflags sessionWithMsDynFlags
1324
1325
read_result <- liftIO $ readIface _read_dflags _ncu mod iface_file
1325
1326
case read_result of
1326
- Util. Failed {} -> return Nothing
1327
+ Util. Failed {} -> return Nothing
1327
1328
-- important to call `shareUsages` here before checkOldIface
1328
1329
-- consults `mi_usages`
1329
1330
Util. Succeeded iface -> return $ Just (shareUsages iface)
@@ -1416,9 +1417,9 @@ recompBecause =
1416
1417
data SourceModified = SourceModified | SourceUnmodified deriving (Eq , Ord , Show )
1417
1418
1418
1419
showReason :: RecompileRequired -> String
1419
- showReason UpToDate = " UpToDate"
1420
- showReason (NeedsRecompile MustCompile ) = " MustCompile"
1421
- showReason (NeedsRecompile s) = printWithoutUniques s
1420
+ showReason UpToDate = " UpToDate"
1421
+ showReason (NeedsRecompile MustCompile ) = " MustCompile"
1422
+ showReason (NeedsRecompile s) = printWithoutUniques s
1422
1423
1423
1424
mkDetailsFromIface :: HscEnv -> ModIface -> IO ModDetails
1424
1425
mkDetailsFromIface session iface = do
@@ -1506,7 +1507,7 @@ lookupName hsc_env name = exceptionHandle $ do
1506
1507
res <- initIfaceLoad hsc_env $ importDecl name
1507
1508
case res of
1508
1509
Util. Succeeded x -> return (Just x)
1509
- _ -> return Nothing
1510
+ _ -> return Nothing
1510
1511
where
1511
1512
exceptionHandle x = x `catch` \ (_ :: IOEnvFailure ) -> pure Nothing
1512
1513
0 commit comments