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 May 17, 2020
1 parent f6f78d1 commit 3838247
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 3838247

Please sign in to comment.