Skip to content

Commit

Permalink
Additional Haddocks for ConjMap methods
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Feb 5, 2025
1 parent d7c77f1 commit b0e5451
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions what4/src/What4/Expr/BoolMap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ viewConjMap =
coerce @(BoolMap f -> BoolMapView f) @(ConjMap f -> ConjMapView f) viewBoolMap
{-# INLINE viewConjMap #-}

-- | Add a conjunct to a 'ConjMap'.
--
-- Wrapper around 'addVar'.
addConjunct ::
forall f.
(HashableF f, OrdF f) =>
Expand All @@ -258,6 +261,8 @@ addConjunct =
addVar
{-# INLINE addConjunct #-}

-- | Given the means to evaluate the conjuncts of a 'ConjMap' to a concrete
-- 'Bool', evaluate the whole conjunction to a 'Bool'.
evalConj :: Applicative m => (f BaseBoolType -> m Bool) -> ConjMap f -> m Bool
evalConj f cm =
let pol (x, Positive) = f x
Expand Down

0 comments on commit b0e5451

Please sign in to comment.