Commit 9f6f8449 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Correct the spelling of dependencies in multiple places

parent 34cc46ff
......@@ -86,7 +86,7 @@ replAction (configFlags, configExFlags, installFlags, haddockFlags)
ReplDefaultComponent
ReplSpecificComponent
userTargets
False -- onlyDepencencies, always False for repl
False -- onlyDependencies, always False for repl
elaboratedPlan
--TODO: [required eventually] reject multiple targets, or at least
-- targets spanning multiple components. ie it's ok to have two
......
......@@ -311,7 +311,7 @@ lookup :: (IsUnit ipkg, IsUnit srcpkg)
-> Maybe (GenericPlanPackage ipkg srcpkg)
lookup plan pkgid = Graph.lookup pkgid (planIndex plan)
-- | Find all the direct depencencies of the given package.
-- | Find all the direct dependencies of the given package.
--
-- Note that the package must exist in the plan or it is an error.
--
......@@ -323,7 +323,7 @@ directDeps plan pkgid =
Just deps -> deps
Nothing -> internalError "directDeps: package not in graph"
-- | Find all the direct reverse depencencies of the given package.
-- | Find all the direct reverse dependencies of the given package.
--
-- Note that the package must exist in the plan or it is an error.
--
......@@ -342,7 +342,7 @@ revDirectDeps plan pkgid =
-- | Return all the packages in the 'InstallPlan' in reverse topological order.
-- That is, for each package, all depencencies of the package appear first.
-- That is, for each package, all dependencies of the package appear first.
--
-- Compared to 'executionOrder', this function returns all the installed and
-- source packages rather than just the source ones. Also, while both this
......
......@@ -194,7 +194,7 @@ data BuildStatusRebuild =
| BuildStatusBuild (Maybe (Maybe InstalledPackageInfo)) BuildReason
data BuildReason =
-- | The depencencies of this package have been (re)built so the build
-- | The dependencies of this package have been (re)built so the build
-- phase needs to be rerun.
--
-- The optional registration info here tells us if we've registered the
......@@ -325,10 +325,10 @@ rebuildTargetsDryRun verbosity distDirLayout@DistDirLayout{..} shared = \install
-- | A specialised traversal over the packages in an install plan.
--
-- The packages are visited in dependency order, starting with packages with no
-- depencencies. The result for each package is accumulated into a 'Map' and
-- dependencies. The result for each package is accumulated into a 'Map' and
-- returned as the final result. In addition, when visting a package, the
-- visiting function is passed the results for all the immediate package
-- depencencies. This can be used to propagate information from depencencies.
-- dependencies. This can be used to propagate information from dependencies.
--
foldMInstallPlanDepOrder
:: forall m ipkg srcpkg b.
......@@ -480,7 +480,7 @@ checkPackageFileMonitorChanged PackageFileMonitor{..}
MonitorUnchanged () _
-- The configChanged here includes the identity of the dependencies,
-- so depsBuildStatus is just needed for the changes in the content
-- of depencencies.
-- of dependencies.
| any buildStatusRequiresBuild depsBuildStatus -> do
regChanged <- checkFileMonitorChanged pkgFileMonitorReg srcdir ()
let mreg = changedToMaybe regChanged
......
......@@ -273,7 +273,7 @@ selectTargets :: Verbosity -> PackageTarget
-> ElaboratedInstallPlan
-> IO ElaboratedInstallPlan
selectTargets verbosity targetDefaultComponents targetSpecificComponent
userBuildTargets onlyDepencencies installPlan = do
userBuildTargets onlyDependencies installPlan = do
-- Match the user targets against the available targets. If no targets are
-- given this uses the package in the current directory, if any.
......@@ -306,7 +306,7 @@ selectTargets verbosity targetDefaultComponents targetSpecificComponent
--
let installPlan' = pruneInstallPlanToTargets
buildTargets' installPlan
if onlyDepencencies
if onlyDependencies
then either throwIO return $
pruneInstallPlanToDependencies
(Map.keysSet buildTargets') installPlan'
......
......@@ -333,7 +333,7 @@ preferBaseGoalChoice = trav go
isBase _ = False
-- | Deal with setup dependencies after regular dependencies, so that we can
-- will link setup depencencies against package dependencies when possible
-- will link setup dependencies against package dependencies when possible
deferSetupChoices :: Tree a -> Tree a
deferSetupChoices = trav go
where
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment