Skip to content

Commit

Permalink
Merge pull request #8070 from varehus/master
Browse files Browse the repository at this point in the history
fix spelling errors
  • Loading branch information
Mikolaj authored Mar 30, 2022
2 parents 138cf07 + ea3d7be commit ebfd8c7
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cabal/src/Distribution/Backpack/Id.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ computeComponentId
computeComponentId deterministic mb_ipid mb_cid pid cname mb_details =
-- show is found to be faster than intercalate and then replacement of
-- special character used in intercalating. We cannot simply hash by
-- doubly concating list, as it just flatten out the nested list, so
-- doubly concatenating list, as it just flatten out the nested list, so
-- different sources can produce same hash
let hash_suffix
| Just (dep_ipids, flags) <- mb_details
Expand Down
2 changes: 1 addition & 1 deletion Cabal/src/Distribution/GetOpt.hs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ data OptHelp = OptHelp {
-- second argument.
usageInfo :: String -- header
-> [OptDescr a] -- option descriptors
-> String -- nicely formatted decription of options
-> String -- nicely formatted description of options
usageInfo header optDescr = unlines (header : table)
where
options = flip map optDescr $ \(Option sos los ad d) ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ qualifyDeps QO{..} (Q pp@(PackagePath ns q) pn) = go
-- dependency on R. We do not do this for the base qualifier however.
--
-- The inherited qualifier is only used for regular dependencies; for setup
-- and base deppendencies we override the existing qualifier. See #3160 for
-- and base dependencies we override the existing qualifier. See #3160 for
-- a detailed discussion.
inheritedQ :: Qualifier
inheritedQ = case q of
Expand Down
4 changes: 2 additions & 2 deletions cabal-install/src/Distribution/Client/FileMonitor.hs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ checkFileMonitorChanged
where
-- In fileMonitorCheckIfOnlyValueChanged mode we want to guarantee that
-- if we return MonitoredValueChanged that only the value changed.
-- We do that by checkin for file changes first. Otherwise it makes
-- We do that by checking for file changes first. Otherwise it makes
-- more sense to do the cheaper test first.
checkForChanges :: IO (Maybe (MonitorChangedReason a))
checkForChanges
Expand Down Expand Up @@ -768,7 +768,7 @@ probeMonitorStateGlobRel _ _ root dirName


return (MonitorStateGlobFiles glob mtime' children)
-- Again, we don't force a cache rewite with 'cacheChanged', but we do use
-- Again, we don't force a cache rewrite with 'cacheChanged', but we do use
-- the new mtime' if any.
where
probeMergeResult :: MergeResult (FilePath, MonitorStateFileStatus) FilePath
Expand Down
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/GlobalFlags.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ data RepoContext = RepoContext {
--
-- NOTE: It is important that we don't eagerly initialize the transport.
-- Initializing the transport is not free, and especially in contexts where
-- we don't know a-priori whether or not we need the transport (for instance
-- we don't know a priori whether or not we need the transport (for instance
-- when using cabal in "nix mode") incurring the overhead of transport
-- initialization on _every_ invocation (eg @cabal build@) is undesirable.
, repoContextGetTransport :: IO HttpTransport
Expand Down
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/HttpUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ wgetTransport prog =

-- wget doesn't support range requests.
-- so, we not only ignore range request headers,
-- but we also dispay a warning message when we see them.
-- but we also display a warning message when we see them.
let hasRangeHeader = any isRangeHeader reqHeaders
warningMsg = "the 'wget' transport currently doesn't support"
++ " range requests, which wastes network bandwidth."
Expand Down
4 changes: 2 additions & 2 deletions cabal-install/src/Distribution/Client/IndexUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ readRepoIndex :: Verbosity -> RepoContext -> Repo -> RepoIndexState
readRepoIndex verbosity repoCtxt repo idxState =
handleNotFound $ do
when (isRepoRemote repo) $ warnIfIndexIsOld =<< getIndexFileAge repo
-- note that if this step fails due to a bad repocache, the the procedure can still succeed by reading from the existing cache, which is updated regardless.
-- note that if this step fails due to a bad repo cache, the the procedure can still succeed by reading from the existing cache, which is updated regardless.
updateRepoIndexCache verbosity (RepoIndex repoCtxt repo) `catchIO`
(\e -> warn verbosity $ "unable to update the repo index cache -- " ++ displayException e)
readPackageIndexCacheFile verbosity mkAvailablePackage
Expand Down Expand Up @@ -1086,7 +1086,7 @@ hashConsCache cache0
-- If/when we redo the binary serialisation via e.g. CBOR and we
-- are able to use incremental decoding, we may want to move the
-- hash-consing into the incremental deserialisation, or
-- alterantively even do something like
-- alternatively even do something like
-- http://cbor.schmorp.de/value-sharing
--
go _ _ [] = []
Expand Down
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/InstallPlan.hs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ processingInvariant plan (Processing processingSet completedSet failedSet) =
-- The failed set is upwards closed, i.e. equal to its own rev dep closure
assert (failedSet == reverseClosure failedSet) $

-- All immediate reverse deps of packges that are currently processing
-- All immediate reverse deps of packages that are currently processing
-- are not currently being processed (ie not in the processing set).
assert (and [ rdeppkgid `Set.notMember` processingSet
| pkgid <- Set.toList processingSet
Expand Down
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/ProjectBuilding.hs
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ rebuildTargets verbosity
createDirectoryIfMissingVerbose verbosity True distTempDirectory
traverse_ (createPackageDBIfMissing verbosity compiler progdb) packageDBsToUse

-- Before traversing the install plan, pre-emptively find all packages that
-- Before traversing the install plan, preemptively find all packages that
-- will need to be downloaded and start downloading them.
asyncDownloadPackages verbosity withRepoCtx
installPlan pkgsBuildStatus $ \downloadMap ->
Expand Down
4 changes: 2 additions & 2 deletions cabal-install/src/Distribution/Client/ProjectPlanning.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ elaborateInstallPlan verbosity platform compiler compilerprogdb pkgConfigDB
-- invocation of the same `./configure` script.
-- See https://github.com/haskell/cabal/issues/4548
--
-- Moreoever, at this point in time, only non-Custom setup scripts
-- Moreover, at this point in time, only non-Custom setup scripts
-- are supported. Implementing per-component builds with
-- Custom would require us to create a new 'ElabSetup'
-- type, and teach all of the code paths how to handle it.
Expand Down Expand Up @@ -3483,7 +3483,7 @@ setupHsConfigureFlags (ReadyPackage elab@ElaboratedConfiguredPackage{..})
-- So for now, let's pass the rather harmless and idempotent
-- `-hide-all-packages` flag to all invocations (which has
-- the benefit that every GHC invocation starts with a
-- conistently well-defined clean slate) until we find a
-- consistently well-defined clean slate) until we find a
-- better way.
= Map.toList $
Map.insertWith (++) "ghc" ["-hide-all-packages"]
Expand Down
2 changes: 1 addition & 1 deletion changelog.d/pr-7349
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
synopsis: Add language extensions for GHC 9.2
pr: #7349
issues: #7312
decription: { Add support for new language extensions added in 9.2 }
description: { Add support for new language extensions added in 9.2 }
2 changes: 1 addition & 1 deletion changelog.d/pr-7407
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
synopsis: --dry-run and --only-download effect v2-configure, v2-freeze, v2-run, and v2-exec
pr: #7407
issues: #7379
decription: { v2-configure, v2-freeze, v2-run, and v2-exec now behave expectedly under the --dry-run and --only-download flags }
description: { v2-configure, v2-freeze, v2-run, and v2-exec now behave expectedly under the --dry-run and --only-download flags }

0 comments on commit ebfd8c7

Please sign in to comment.