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

Safe Haskell | Ignore
Language | GHC2021

Language.Haskell.Syntax.BooleanFormula

# Documentation

data BooleanFormula p #

Constructors

Var (LIdP p) |
And [LBooleanFormula p] |
Or [LBooleanFormula p] |
Parens (LBooleanFormula p) |

#### Instances

Instances details

(Typeable p, Data (Anno (IdGhcP p)), Data (IdGhcP p)) => Data (BooleanFormula (GhcPass p)) # |

Instance details

Defined in GHC.Hs.Instances

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BooleanFormula (GhcPass p) -> c (BooleanFormula (GhcPass p)) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (BooleanFormula (GhcPass p)) #

toConstr :: BooleanFormula (GhcPass p) -> Constr #

dataTypeOf :: BooleanFormula (GhcPass p) -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (BooleanFormula (GhcPass p))) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (BooleanFormula (GhcPass p))) #

gmapT :: (forall b. Data b => b -> b) -> BooleanFormula (GhcPass p) -> BooleanFormula (GhcPass p) #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BooleanFormula (GhcPass p) -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BooleanFormula (GhcPass p) -> r #

gmapQ :: (forall d. Data d => d -> u) -> BooleanFormula (GhcPass p) -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BooleanFormula (GhcPass p) -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BooleanFormula (GhcPass p) -> m (BooleanFormula (GhcPass p)) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BooleanFormula (GhcPass p) -> m (BooleanFormula (GhcPass p)) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BooleanFormula (GhcPass p) -> m (BooleanFormula (GhcPass p)) #

OutputableBndrId p => Outputable (BooleanFormula (GhcPass p)) # |
Instance details Defined in GHC.Data.BooleanFormula Methods ppr :: BooleanFormula (GhcPass p) -> SDoc #
(Eq (LIdP p), Eq (LBooleanFormula p)) => Eq (BooleanFormula p) # |
Instance details Defined in Language.Haskell.Syntax.BooleanFormula Methods (==) :: BooleanFormula p -> BooleanFormula p -> Bool # (/=) :: BooleanFormula p -> BooleanFormula p -> Bool #
type Anno (BooleanFormula (GhcPass p)) # |
Instance details Defined in GHC.Data.BooleanFormula type Anno (BooleanFormula (GhcPass p)) = SrcSpanAnnL

type LBooleanFormula p = XRec p (BooleanFormula p) #

mkVar :: LIdP p -> BooleanFormula p #

mkFalse :: BooleanFormula p #

mkTrue :: BooleanFormula p #

mkBool :: Bool -> BooleanFormula p #

mkAnd :: (UnXRec p, Eq (LIdP p), Eq (LBooleanFormula p)) => [LBooleanFormula p] -> BooleanFormula p #

mkOr :: (UnXRec p, Eq (LIdP p), Eq (LBooleanFormula p)) => [LBooleanFormula p] -> BooleanFormula p #