diff --git a/Cabal/src/Distribution/Simple/GHC/Build.hs b/Cabal/src/Distribution/Simple/GHC/Build.hs index 8adc1267220..b6056463f4f 100644 --- a/Cabal/src/Distribution/Simple/GHC/Build.hs +++ b/Cabal/src/Distribution/Simple/GHC/Build.hs @@ -110,9 +110,13 @@ build numJobs pkg_descr = do -- See also Note [Building Haskell Modules accounting for TH] in Distribution.Simple.GHC.Build.Modules wantedWays = Set.fromList $ - [StaticWay | wantStatic || wantVanilla || - -- We build static by default if no other way is wanted - not (wantDynamic || wantProf)] + [ StaticWay + | wantStatic + || wantVanilla + || + -- We build static by default if no other way is wanted + not (wantDynamic || wantProf) + ] <> [DynWay | wantDynamic] <> [ProfWay | wantProf]