From 512648fd1e7d9f245e9d033dd5e8eef04f700b36 Mon Sep 17 00:00:00 2001
From: "Edward Z. Yang" <ezyang@cs.stanford.edu>
Date: Mon, 19 Sep 2016 22:06:00 +0900
Subject: [PATCH] Print that we are building all due to Custom setup.

Previously the output was:

    Building profunctors-5.2 lib...
    Building semigroupoids-5.1...

Now it is:

    Building profunctors-5.2 (lib)...
    Building semigroupoids-5.1 (all, due to Custom setup)...

Fixes #3808.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
---
 cabal-install/Distribution/Client/ProjectBuilding.hs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cabal-install/Distribution/Client/ProjectBuilding.hs b/cabal-install/Distribution/Client/ProjectBuilding.hs
index 39368cd17d..31955bdc08 100644
--- a/cabal-install/Distribution/Client/ProjectBuilding.hs
+++ b/cabal-install/Distribution/Client/ProjectBuilding.hs
@@ -1005,8 +1005,9 @@ buildAndInstallUnpackedPackage verbosity
 
     let dispname = case elabPkgOrComp pkg of
             ElabPackage _ -> display pkgid
-            ElabComponent comp -> display pkgid ++ " "
-                ++ maybe "custom" display (compComponentName comp)
+                ++ " (all, due to Custom setup)"
+            ElabComponent comp -> display pkgid
+                ++ " (" ++ maybe "custom" display (compComponentName comp) ++ ")"
 
     -- Configure phase
     when isParallelBuild $
-- 
GitLab