@@ -187,10 +187,10 @@ typecheckModule (IdeDefer defer) hsc tc_helpers pm = do
187187 tcRnModule session tc_helpers $ demoteIfDefer pm{pm_mod_summary = mod_summary''}
188188 let errorPipeline = unDefer . hideDiag dflags . tagDiag
189189 diags = map errorPipeline warnings
190- deferedError = any fst diags
190+ deferredError = any fst diags
191191 case etcm of
192192 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 })
194194 where
195195 demoteIfDefer = if defer then demoteTypeErrorsToWarnings else id
196196
@@ -494,7 +494,7 @@ mkHiFileResultCompile se session' tcm simplified_guts = catchErrs $ do
494494 writeBinCoreFile fp core_file
495495 -- We want to drop references to guts and read in a serialized, compact version
496496 -- 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
498498 -- the project as it becomes prohibitively expensive
499499 -- The serialized file however is much more compact and only requires a few
500500 -- 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
503503 pure $ assert (core_hash1 == core_hash2)
504504 $ Just (core_file, fingerprintToBS core_hash2)
505505
506- -- Verify core file by rountrip testing and comparison
506+ -- Verify core file by roundtrip testing and comparison
507507 IdeOptions {optVerifyCoreFile} <- getIdeOptionsIO se
508508 case core_file of
509509 Just (core, _) | optVerifyCoreFile -> do
@@ -773,7 +773,7 @@ generateHieAsts hscEnv tcm =
773773 -- These varBinds use unitDataConId but it could be anything as the id name is not used
774774 -- during the hie file generation process. It's a workaround for the fact that the hie modules
775775 -- 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))
777777 real_binds = tcg_binds $ tmrTypechecked tcm
778778#if MIN_VERSION_ghc(9,0,1)
779779 ts = tmrTypechecked tcm :: TcGblEnv
@@ -801,8 +801,8 @@ generateHieAsts hscEnv tcm =
801801#endif
802802#endif
803803
804- spliceExpresions :: Splices -> [LHsExpr GhcTc ]
805- spliceExpresions Splices {.. } =
804+ spliceExpressions :: Splices -> [LHsExpr GhcTc ]
805+ spliceExpressions Splices {.. } =
806806 DL. toList $ mconcat
807807 [ DL. fromList $ map fst exprSplices
808808 , DL. fromList $ map fst patSplices
@@ -812,7 +812,7 @@ spliceExpresions Splices{..} =
812812 ]
813813
814814-- | 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
816816-- progress.
817817--
818818-- We maintain a record of all pending index operations in the 'indexPending'
@@ -1409,7 +1409,7 @@ instance NFData IdeLinkable where
14091409ml_core_file :: ModLocation -> FilePath
14101410ml_core_file ml = ml_hi_file ml <.> " core"
14111411
1412- -- | Retuns an up-to-date module interface, regenerating if needed.
1412+ -- | Returns an up-to-date module interface, regenerating if needed.
14131413-- Assumes file exists.
14141414-- Requires the 'HscEnv' to be set up with dependencies
14151415-- See Note [Recompilation avoidance in the presence of TH]
@@ -1437,7 +1437,7 @@ loadInterface session ms linkableNeeded RecompilationInfo{..} = do
14371437 -- The source is modified if it is newer than the destination (iface file)
14381438 -- A more precise check for the core file is performed later
14391439 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
14411441 Just dest_version
14421442 | source_version <= dest_version -> SourceUnmodified
14431443 | otherwise -> SourceModified
@@ -1466,7 +1466,7 @@ loadInterface session ms linkableNeeded RecompilationInfo{..} = do
14661466 Just (old_hir, _)
14671467 | isNothing linkableNeeded || isJust (hirCoreFp old_hir)
14681468 -> do
1469- -- Peform the fine grained recompilation check for TH
1469+ -- Perform the fine grained recompilation check for TH
14701470 maybe_recomp <- checkLinkableDependencies get_linkable_hashes (hsc_mod_graph sessionWithMsDynFlags) (hirRuntimeModules old_hir)
14711471 case maybe_recomp of
14721472 Just msg -> do_regenerate msg
@@ -1478,7 +1478,7 @@ loadInterface session ms linkableNeeded RecompilationInfo{..} = do
14781478 let runtime_deps
14791479 | not (mi_used_th iface) = emptyModuleEnv
14801480 | otherwise = parseRuntimeDeps (md_anns details)
1481- -- Peform the fine grained recompilation check for TH
1481+ -- Perform the fine grained recompilation check for TH
14821482 maybe_recomp <- checkLinkableDependencies get_linkable_hashes (hsc_mod_graph sessionWithMsDynFlags) runtime_deps
14831483 case maybe_recomp of
14841484 Just msg -> do_regenerate msg
@@ -1598,7 +1598,7 @@ coreFileToLinkable linkableType session ms iface details core_file t = do
15981598--- and leads to fun errors like "Cannot continue after interface file error".
15991599getDocsBatch
16001600 :: HscEnv
1601- -> Module -- ^ a moudle where the names are in scope
1601+ -> Module -- ^ a module where the names are in scope
16021602 -> [Name ]
16031603#if MIN_VERSION_ghc(9,3,0)
16041604 -> IO [Either String (Maybe [HsDoc GhcRn ], IntMap (HsDoc GhcRn ))]
0 commit comments