@@ -236,6 +236,7 @@ import Distribution.Client.Errors
236236import Distribution.Solver.Types.ProjectConfigPath
237237import System.FilePath
238238import qualified Text.PrettyPrint as Disp
239+ import GHC.Stack (HasCallStack )
239240
240241-- | Check that an 'ElaboratedConfiguredPackage' actually makes
241242-- sense under some 'ElaboratedSharedConfig'.
@@ -1538,7 +1539,8 @@ planPackages
15381539-- In theory should be able to make an elaborated install plan with a policy
15391540-- matching that of the classic @cabal install --user@ or @--global@
15401541elaborateInstallPlan
1541- :: Verbosity
1542+ :: HasCallStack
1543+ => Verbosity
15421544 -> Map FilePath HookAccept
15431545 -> Staged Toolchain
15441546 -> Staged (Maybe PkgConfigDb )
@@ -1616,12 +1618,14 @@ elaborateInstallPlan
16161618 -- NB: We don't INSTANTIATE packages at this point. That's
16171619 -- a post-pass. This makes it simpler to compute dependencies.
16181620 elaborateSolverToComponents
1619- :: (SolverId -> [ElaboratedPlanPackage ])
1621+ :: HasCallStack
1622+ => (SolverId -> [ElaboratedPlanPackage ])
16201623 -> SolverPackage UnresolvedPkgLoc
16211624 -> LogProgress [ElaboratedConfiguredPackage ]
16221625 elaborateSolverToComponents mapDep spkg@ (SolverPackage _ _ _ _ _ deps0 exe_deps0) =
16231626 case mkComponentsGraph (elabEnabledSpec elab0) pd of
16241627 Right g -> do
1628+ infoProgress $ text " here"
16251629 let src_comps = componentsGraphToList g
16261630 infoProgress $
16271631 hang
@@ -1759,7 +1763,8 @@ elaborateInstallPlan
17591763 ++ " not implemented yet"
17601764
17611765 buildComponent
1762- :: ( ConfiguredComponentMap
1766+ :: HasCallStack
1767+ => ( ConfiguredComponentMap
17631768 , LinkedComponentMap
17641769 , Map ComponentId FilePath
17651770 )
@@ -1832,6 +1837,7 @@ elaborateInstallPlan
18321837 elab1 -- knot tied
18331838 )
18341839 cc = cc0{cc_ann_id = fmap (const cid) (cc_ann_id cc0)}
1840+
18351841 infoProgress $ dispConfiguredComponent cc
18361842
18371843 -- 4. Perform mix-in linking
@@ -1847,6 +1853,7 @@ elaborateInstallPlan
18471853 (elabPkgSourceId elab0)
18481854 (Map. union external_lc_map lc_map)
18491855 cc
1856+
18501857 infoProgress $ dispLinkedComponent lc
18511858 -- NB: elab is setup to be the correct form for an
18521859 -- indefinite library, or a definite library with no holes.
@@ -2673,7 +2680,8 @@ extractElabBuildStyle _ = BuildAndInstall
26732680-- we don't instantiate the same thing multiple times.
26742681--
26752682instantiateInstallPlan
2676- :: StoreDirLayout
2683+ :: HasCallStack
2684+ => StoreDirLayout
26772685 -> Staged InstallDirs. InstallDirTemplates
26782686 -> ElaboratedSharedConfig
26792687 -> ElaboratedInstallPlan
@@ -3205,7 +3213,8 @@ data TargetAction
32053213-- will prune differently depending on what is already installed (to
32063214-- implement "sticky" test suite enabling behavior).
32073215pruneInstallPlanToTargets
3208- :: TargetAction
3216+ :: HasCallStack
3217+ => TargetAction
32093218 -> Map UnitId [ComponentTarget ]
32103219 -> ElaboratedInstallPlan
32113220 -> ElaboratedInstallPlan
@@ -3301,7 +3310,8 @@ setRootTargets targetAction perPkgTargetsMap =
33013310-- are used only by unneeded optional stanzas. These pruned deps are only
33023311-- used for the dependency closure and are not persisted in this pass.
33033312pruneInstallPlanPass1
3304- :: [ElaboratedPlanPackage ]
3313+ :: HasCallStack
3314+ => [ElaboratedPlanPackage ]
33053315 -> [ElaboratedPlanPackage ]
33063316pruneInstallPlanPass1 pkgs
33073317 -- if there are repl targets, we need to do a bit more work
@@ -3661,7 +3671,8 @@ mapConfiguredPackage _ (InstallPlan.PreExisting pkg) =
36613671--
36623672-- This is not always possible.
36633673pruneInstallPlanToDependencies
3664- :: Set UnitId
3674+ :: HasCallStack
3675+ => Set UnitId
36653676 -> ElaboratedInstallPlan
36663677 -> Either
36673678 CannotPruneDependencies
0 commit comments