Skip to content

Commit 039e6e8

Browse files
committed
refactor(cabal-install): add more HasCallstack
1 parent 78f580e commit 039e6e8

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

cabal-install/src/Distribution/Client/ProjectPlanning.hs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ sanityCheckElaboratedPackage
361361
-- | Return the up-to-date project config and information about the local
362362
-- packages within the project.
363363
rebuildProjectConfig
364-
:: Verbosity
364+
:: HasCallStack
365+
=> Verbosity
365366
-> HttpTransport
366367
-> DistDirLayout
367368
-> ProjectConfig
@@ -706,7 +707,8 @@ See #9840 for more information about the problems surrounding the lossy
706707
-- dependencies of executables and setup scripts.
707708
--
708709
rebuildInstallPlan
709-
:: Verbosity
710+
:: HasCallStack
711+
=> Verbosity
710712
-> DistDirLayout
711713
-> CabalDirLayout
712714
-> ProjectConfig
@@ -958,7 +960,8 @@ rebuildInstallPlan
958960
-- version of the plan has the final nix-style hashed ids.
959961
--
960962
phaseElaboratePlan
961-
:: ProjectConfig
963+
:: HasCallStack
964+
=> ProjectConfig
962965
-> Staged Toolchain
963966
-> Staged (Maybe PkgConfigDb)
964967
-> SolverInstallPlan
@@ -1625,7 +1628,8 @@ planPackages
16251628
-- In theory should be able to make an elaborated install plan with a policy
16261629
-- matching that of the classic @cabal install --user@ or @--global@
16271630
elaborateInstallPlan
1628-
:: Verbosity
1631+
:: HasCallStack
1632+
=> Verbosity
16291633
-> Staged Toolchain
16301634
-> Staged (Maybe PkgConfigDb)
16311635
-> DistDirLayout
@@ -1678,7 +1682,7 @@ elaborateInstallPlan
16781682
)
16791683
f _ = Nothing
16801684

1681-
elaboratedInstallPlan :: LogProgress ElaboratedInstallPlan
1685+
elaboratedInstallPlan :: HasCallStack => LogProgress ElaboratedInstallPlan
16821686
elaboratedInstallPlan =
16831687
flip InstallPlan.fromSolverInstallPlanWithProgress solverPlan $ \mapDep planpkg ->
16841688
case planpkg of

0 commit comments

Comments
 (0)