forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs and modest safety improvements.
Signed-off-by: Edward Z. Yang <[email protected]>
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,10 @@ | |
-- Maintainer : [email protected] | ||
-- | ||
-- Handling for user-specified build targets | ||
-- Unlike "Distribution.Simple.BuildTarget" these build | ||
-- targets also handle package qualification (so, up to | ||
-- four levels of qualification, as opposed to the former's | ||
-- three.) | ||
----------------------------------------------------------------------------- | ||
module Distribution.Client.BuildTarget ( | ||
|
||
|
@@ -433,7 +437,9 @@ showUserBuildTarget = intercalate ":" . components | |
|
||
showBuildTarget :: QualLevel -> BuildTarget PackageInfo -> String | ||
showBuildTarget ql = showUserBuildTarget . forgetFileStatus | ||
. head . renderBuildTarget ql | ||
. hd . renderBuildTarget ql | ||
where hd [] = error "showBuildTarget: head" | ||
hd (x:_) = x | ||
|
||
|
||
-- ------------------------------------------------------------ | ||
|