Commit 929679c4 authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Docs and modest safety improvements.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 36a186ae
......@@ -8,6 +8,10 @@
-- Maintainer : duncan@community.haskell.org
--
-- 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
-- ------------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment