Skip to content

Commit 00f1303

Browse files
committed
refactor(cabal-install): add more HasCallstack
1 parent 3fe34d7 commit 00f1303

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
@@ -363,7 +363,8 @@ sanityCheckElaboratedPackage
363363
-- | Return the up-to-date project config and information about the local
364364
-- packages within the project.
365365
rebuildProjectConfig
366-
:: Verbosity
366+
:: HasCallStack
367+
=> Verbosity
367368
-> HttpTransport
368369
-> DistDirLayout
369370
-> ProjectConfig
@@ -707,7 +708,8 @@ See #9840 for more information about the problems surrounding the lossy
707708
-- dependencies of executables and setup scripts.
708709
--
709710
rebuildInstallPlan
710-
:: Verbosity
711+
:: HasCallStack
712+
=> Verbosity
711713
-> DistDirLayout
712714
-> CabalDirLayout
713715
-> 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
@@ -1624,7 +1627,8 @@ planPackages
16241627
-- In theory should be able to make an elaborated install plan with a policy
16251628
-- matching that of the classic @cabal install --user@ or @--global@
16261629
elaborateInstallPlan
1627-
:: Verbosity
1630+
:: HasCallStack
1631+
=> Verbosity
16281632
-> Staged Toolchain
16291633
-> Staged (Maybe PkgConfigDb)
16301634
-> DistDirLayout
@@ -1677,7 +1681,7 @@ elaborateInstallPlan
16771681
)
16781682
f _ = Nothing
16791683

1680-
elaboratedInstallPlan :: LogProgress ElaboratedInstallPlan
1684+
elaboratedInstallPlan :: HasCallStack => LogProgress ElaboratedInstallPlan
16811685
elaboratedInstallPlan =
16821686
flip InstallPlan.fromSolverInstallPlanWithProgress solverPlan $ \mapDep planpkg ->
16831687
case planpkg of

0 commit comments

Comments
 (0)