ghc-lib-parser-9.14.1.20251220: The GHC API, decoupled from GHC versions
Safe HaskellIgnore
LanguageGHC2021

GHC.Data.BooleanFormula

Description

Boolean formulas without quantifiers and without negation. Such a formula consists of variables, conjunctions (and), and disjunctions (or).

This module is used to represent minimal complete definitions for classes.

Documentation

isFalse :: forall (p :: Pass). BooleanFormula (GhcPass p) -> Bool #

isTrue :: forall (p :: Pass). BooleanFormula (GhcPass p) -> Bool #

bfMap :: forall (p :: Pass) (p' :: Pass). (LIdP (GhcPass p) -> LIdP (GhcPass p')) -> BooleanFormula (GhcPass p) -> BooleanFormula (GhcPass p') #

bfTraverse :: forall f (p :: Pass) (p' :: Pass). Applicative f => (LIdP (GhcPass p) -> f (LIdP (GhcPass p'))) -> BooleanFormula (GhcPass p) -> f (BooleanFormula (GhcPass p')) #

eval :: forall (p :: Pass). (LIdP (GhcPass p) -> Bool) -> BooleanFormula (GhcPass p) -> Bool #

simplify :: forall (p :: Pass). Eq (LIdP (GhcPass p)) => (LIdP (GhcPass p) -> Maybe Bool) -> BooleanFormula (GhcPass p) -> BooleanFormula (GhcPass p) #

isUnsatisfied :: forall (p :: Pass). Eq (LIdP (GhcPass p)) => (LIdP (GhcPass p) -> Bool) -> BooleanFormula (GhcPass p) -> Maybe (BooleanFormula (GhcPass p)) #

impliesAtom :: forall (p :: Pass). Eq (IdP (GhcPass p)) => BooleanFormula (GhcPass p) -> LIdP (GhcPass p) -> Bool #

pprBooleanFormula :: forall (p :: Pass). (Rational -> LIdP (GhcPass p) -> SDoc) -> Rational -> BooleanFormula (GhcPass p) -> SDoc #

Orphan instances

OutputableBndrId p => Outputable (BooleanFormula (GhcPass p)) # 
Instance details

Methods

ppr :: BooleanFormula (GhcPass p) -> SDoc #