Skip to content

Commit

Permalink
Update comment about extractCondition.
Browse files Browse the repository at this point in the history
  • Loading branch information
grayjay committed Mar 1, 2020
1 parent 89396ec commit c4b0cbc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cabal/Distribution/Types/CondTree.hs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@ traverseCondBranchC f (CondBranch cnd t me) = CondBranch cnd

-- | Extract the condition matched by the given predicate from a cond tree.
--
-- We use this mainly for extracting buildable conditions (see the Note above),
-- but the function is in fact more general.
-- We use this mainly for extracting buildable conditions (see the Note in
-- Distribution.PackageDescription.Configuration), but the function is in fact
-- more general.
extractCondition :: Eq v => (a -> Bool) -> CondTree v c a -> Condition v
extractCondition p = go
where
Expand Down

0 comments on commit c4b0cbc

Please sign in to comment.