@@ -187,10 +187,10 @@ typecheckModule (IdeDefer defer) hsc tc_helpers pm = do
187
187
tcRnModule session tc_helpers $ demoteIfDefer pm{pm_mod_summary = mod_summary''}
188
188
let errorPipeline = unDefer . hideDiag dflags . tagDiag
189
189
diags = map errorPipeline warnings
190
- deferedError = any fst diags
190
+ deferredError = any fst diags
191
191
case etcm of
192
192
Left errs -> return (map snd diags ++ errs, Nothing )
193
- Right tcm -> return (map snd diags, Just $ tcm{tmrDeferedError = deferedError })
193
+ Right tcm -> return (map snd diags, Just $ tcm{tmrDeferredError = deferredError })
194
194
where
195
195
demoteIfDefer = if defer then demoteTypeErrorsToWarnings else id
196
196
@@ -494,7 +494,7 @@ mkHiFileResultCompile se session' tcm simplified_guts = catchErrs $ do
494
494
writeBinCoreFile fp core_file
495
495
-- We want to drop references to guts and read in a serialized, compact version
496
496
-- of the core file from disk (as it is deserialised lazily)
497
- -- This is because we don't want to keep the guts in memeory for every file in
497
+ -- This is because we don't want to keep the guts in memory for every file in
498
498
-- the project as it becomes prohibitively expensive
499
499
-- The serialized file however is much more compact and only requires a few
500
500
-- hundred megabytes of memory total even in a large project with 1000s of
@@ -503,7 +503,7 @@ mkHiFileResultCompile se session' tcm simplified_guts = catchErrs $ do
503
503
pure $ assert (core_hash1 == core_hash2)
504
504
$ Just (core_file, fingerprintToBS core_hash2)
505
505
506
- -- Verify core file by rountrip testing and comparison
506
+ -- Verify core file by roundtrip testing and comparison
507
507
IdeOptions {optVerifyCoreFile} <- getIdeOptionsIO se
508
508
case core_file of
509
509
Just (core, _) | optVerifyCoreFile -> do
@@ -773,7 +773,7 @@ generateHieAsts hscEnv tcm =
773
773
-- These varBinds use unitDataConId but it could be anything as the id name is not used
774
774
-- during the hie file generation process. It's a workaround for the fact that the hie modules
775
775
-- don't export an interface which allows for additional information to be added to hie files.
776
- let fake_splice_binds = Util. listToBag (map (mkVarBind unitDataConId) (spliceExpresions $ tmrTopLevelSplices tcm))
776
+ let fake_splice_binds = Util. listToBag (map (mkVarBind unitDataConId) (spliceExpressions $ tmrTopLevelSplices tcm))
777
777
real_binds = tcg_binds $ tmrTypechecked tcm
778
778
#if MIN_VERSION_ghc(9,0,1)
779
779
ts = tmrTypechecked tcm :: TcGblEnv
@@ -801,8 +801,8 @@ generateHieAsts hscEnv tcm =
801
801
#endif
802
802
#endif
803
803
804
- spliceExpresions :: Splices -> [LHsExpr GhcTc ]
805
- spliceExpresions Splices {.. } =
804
+ spliceExpressions :: Splices -> [LHsExpr GhcTc ]
805
+ spliceExpressions Splices {.. } =
806
806
DL. toList $ mconcat
807
807
[ DL. fromList $ map fst exprSplices
808
808
, DL. fromList $ map fst patSplices
@@ -812,7 +812,7 @@ spliceExpresions Splices{..} =
812
812
]
813
813
814
814
-- | In addition to indexing the `.hie` file, this function is responsible for
815
- -- maintaining the 'IndexQueue' state and notfiying the user about indexing
815
+ -- maintaining the 'IndexQueue' state and notifying the user about indexing
816
816
-- progress.
817
817
--
818
818
-- We maintain a record of all pending index operations in the 'indexPending'
@@ -1409,7 +1409,7 @@ instance NFData IdeLinkable where
1409
1409
ml_core_file :: ModLocation -> FilePath
1410
1410
ml_core_file ml = ml_hi_file ml <.> " core"
1411
1411
1412
- -- | Retuns an up-to-date module interface, regenerating if needed.
1412
+ -- | Returns an up-to-date module interface, regenerating if needed.
1413
1413
-- Assumes file exists.
1414
1414
-- Requires the 'HscEnv' to be set up with dependencies
1415
1415
-- See Note [Recompilation avoidance in the presence of TH]
@@ -1437,7 +1437,7 @@ loadInterface session ms linkableNeeded RecompilationInfo{..} = do
1437
1437
-- The source is modified if it is newer than the destination (iface file)
1438
1438
-- A more precise check for the core file is performed later
1439
1439
let sourceMod = case mb_dest_version of
1440
- Nothing -> SourceModified -- desitination file doesn't exist, assume modified source
1440
+ Nothing -> SourceModified -- destination file doesn't exist, assume modified source
1441
1441
Just dest_version
1442
1442
| source_version <= dest_version -> SourceUnmodified
1443
1443
| otherwise -> SourceModified
@@ -1466,7 +1466,7 @@ loadInterface session ms linkableNeeded RecompilationInfo{..} = do
1466
1466
Just (old_hir, _)
1467
1467
| isNothing linkableNeeded || isJust (hirCoreFp old_hir)
1468
1468
-> do
1469
- -- Peform the fine grained recompilation check for TH
1469
+ -- Perform the fine grained recompilation check for TH
1470
1470
maybe_recomp <- checkLinkableDependencies get_linkable_hashes (hsc_mod_graph sessionWithMsDynFlags) (hirRuntimeModules old_hir)
1471
1471
case maybe_recomp of
1472
1472
Just msg -> do_regenerate msg
@@ -1478,7 +1478,7 @@ loadInterface session ms linkableNeeded RecompilationInfo{..} = do
1478
1478
let runtime_deps
1479
1479
| not (mi_used_th iface) = emptyModuleEnv
1480
1480
| otherwise = parseRuntimeDeps (md_anns details)
1481
- -- Peform the fine grained recompilation check for TH
1481
+ -- Perform the fine grained recompilation check for TH
1482
1482
maybe_recomp <- checkLinkableDependencies get_linkable_hashes (hsc_mod_graph sessionWithMsDynFlags) runtime_deps
1483
1483
case maybe_recomp of
1484
1484
Just msg -> do_regenerate msg
@@ -1598,7 +1598,7 @@ coreFileToLinkable linkableType session ms iface details core_file t = do
1598
1598
--- and leads to fun errors like "Cannot continue after interface file error".
1599
1599
getDocsBatch
1600
1600
:: HscEnv
1601
- -> Module -- ^ a moudle where the names are in scope
1601
+ -> Module -- ^ a module where the names are in scope
1602
1602
-> [Name ]
1603
1603
#if MIN_VERSION_ghc(9,3,0)
1604
1604
-> IO [Either String (Maybe [HsDoc GhcRn ], IntMap (HsDoc GhcRn ))]
0 commit comments