Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Simple predicates on core expressions.
- module DDC.Type.Predicates
- isXVar :: Exp a n -> Bool
- isXCon :: Exp a n -> Bool
- isAtomX :: Exp a n -> Bool
- isAtomW :: Witness a n -> Bool
- isXLAM :: Exp a n -> Bool
- isXLam :: Exp a n -> Bool
- isLambdaX :: Exp a n -> Bool
- isXApp :: Exp a n -> Bool
- isXCast :: Exp a n -> Bool
- isXCastBox :: Exp a n -> Bool
- isXCastRun :: Exp a n -> Bool
- isXLet :: Exp a n -> Bool
- isPDefault :: Pat n -> Bool
- isXType :: Exp a n -> Bool
- isXWitness :: Exp a n -> Bool
Documentation
module DDC.Type.Predicates
Atoms
Lambdas
isXLam :: Exp a n -> Bool Source
Check whether an expression is a value or witness abstraction (level-0).
isLambdaX :: Exp a n -> Bool Source
Check whether an expression is a spec, value, or witness abstraction.
Applications
Cast
isXCastBox :: Exp a n -> Bool Source
Check whether this is a box cast.
isXCastRun :: Exp a n -> Bool Source
Check whether this is a run cast.
Let bindings
Patterns
isPDefault :: Pat n -> Bool Source
Check whether an alternative is a PDefault
.
Types and Witnesses
isXWitness :: Exp a n -> Bool Source
Check whether an expression is an XWitness
.