Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor committed Jan 23, 2023
1 parent 0b89579 commit 0995649
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cabal-install/src/Distribution/Client/CmdStatus.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import Distribution.Types.UnitId
import Distribution.Verbosity
( normal )
import Distribution.Version
import Debug.Trace

-------------------------------------------------------------------------------
-- Command
Expand Down Expand Up @@ -186,13 +187,15 @@ statusAction flags@NixStyleFlags { extraFlags = statusFlags, ..} cliTargetString
then pure Nothing
else do
let targetStrings = statusTargets statusFlags
traceShowM targetStrings
mtargetSelectors <- mapM (readTargetSelector (localPackages baseCtx) Nothing) targetStrings
let (unresolvable, targetSelectors) = partitionEithers
$ map (\(mts, str) -> case mts of
Left _ -> Left str
Right ts -> Right (ts, str)
)
$ zip mtargetSelectors targetStrings
traceShowM mtargetSelectors
-- Interpret the targets on the command line as build targets
-- (as opposed to say repl or haddock targets).
-- TODO: don't throw on targets that are invalid.
Expand Down

0 comments on commit 0995649

Please sign in to comment.