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

Safe HaskellNone
LanguageHaskell2010

PmExpr

Synopsis

Documentation

data PmExpr Source #

Lifted expressions for pattern match checking.

Instances
Outputable PmExpr Source # 
Instance details

Defined in PmExpr

data PmLit Source #

Literals (simple and overloaded ones) for pattern match checking.

Instances
Outputable PmLit Source # 
Instance details

Defined in PmExpr

newtype PmAltCon Source #

Represents a match against a literal. We mostly use it to to encode shapes for a variable that immediately lead to a refutation.

See Note [Refutable shapes] in TmOracle. Really similar to AltCon.

Constructors

PmAltLit PmLit 
Instances
Eq PmAltCon Source # 
Instance details

Defined in PmExpr

Outputable PmAltCon Source # 
Instance details

Defined in PmExpr

data TmVarCt Source #

A term constraint. TVC x e encodes that x is equal to e.

Constructors

TVC !Id !PmExpr 
Instances
Outputable TmVarCt Source # 
Instance details

Defined in PmExpr

eqPmLit :: PmLit -> PmLit -> Bool Source #

Equality between literals for pattern match checking.

isNotPmExprOther :: PmExpr -> Bool Source #

Check if an expression is lifted or not