Skip to content

Commit 0995649

Browse files
committed
WIP
1 parent 0b89579 commit 0995649

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import Distribution.Types.UnitId
5959
import Distribution.Verbosity
6060
( normal )
6161
import Distribution.Version
62+
import Debug.Trace
6263

6364
-------------------------------------------------------------------------------
6465
-- Command
@@ -186,13 +187,15 @@ statusAction flags@NixStyleFlags { extraFlags = statusFlags, ..} cliTargetString
186187
then pure Nothing
187188
else do
188189
let targetStrings = statusTargets statusFlags
190+
traceShowM targetStrings
189191
mtargetSelectors <- mapM (readTargetSelector (localPackages baseCtx) Nothing) targetStrings
190192
let (unresolvable, targetSelectors) = partitionEithers
191193
$ map (\(mts, str) -> case mts of
192194
Left _ -> Left str
193195
Right ts -> Right (ts, str)
194196
)
195197
$ zip mtargetSelectors targetStrings
198+
traceShowM mtargetSelectors
196199
-- Interpret the targets on the command line as build targets
197200
-- (as opposed to say repl or haddock targets).
198201
-- TODO: don't throw on targets that are invalid.

0 commit comments

Comments
 (0)