| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.While.Syntax
Documentation
data WhileOpKind as r where Source #
Constructors
| OpLit :: AlgReal -> WhileOpKind '[] AlgReal | |
| OpAdd, OpSub, OpMul :: WhileOpKind '[AlgReal, AlgReal] AlgReal | |
| OpEq, OpLT, OpLE, OpGT, OpGE :: WhileOpKind '[AlgReal, AlgReal] Bool | |
| OpAnd, OpOr :: WhileOpKind '[Bool, Bool] Bool | |
| OpNot :: WhileOpKind '[Bool] Bool |
Instances
| EvalOpAt Identity WhileOpKind Source # | |
Defined in Language.While.Syntax | |
| EvalOpAt SBV WhileOpKind Source # | |
Defined in Language.While.Syntax | |
| PrettyOp WhileOpKind Source # | |
Defined in Language.While.Syntax Methods prettysPrecOp :: Pretty1 t => Int -> WhileOpKind as a -> Rec t as -> ShowS Source # | |
| Num (WhileExpr l AlgReal) Source # | |
Defined in Language.While.Syntax Methods (+) :: WhileExpr l AlgReal -> WhileExpr l AlgReal -> WhileExpr l AlgReal # (-) :: WhileExpr l AlgReal -> WhileExpr l AlgReal -> WhileExpr l AlgReal # (*) :: WhileExpr l AlgReal -> WhileExpr l AlgReal -> WhileExpr l AlgReal # negate :: WhileExpr l AlgReal -> WhileExpr l AlgReal # abs :: WhileExpr l AlgReal -> WhileExpr l AlgReal # signum :: WhileExpr l AlgReal -> WhileExpr l AlgReal # fromInteger :: Integer -> WhileExpr l AlgReal # | |
| IsString s => IsString (WhileExpr s AlgReal) Source # | |
Defined in Language.While.Syntax Methods fromString :: String -> WhileExpr s AlgReal # | |
type WhileOp = GeneralOp WhileOpKind Source #
data WhileVar l a where Source #
Instances
data StepResult a Source #
Constructors
| Terminated | |
| Failed | |
| Progress a |
Instances
| Functor StepResult Source # | |
Defined in Language.While.Syntax Methods fmap :: (a -> b) -> StepResult a -> StepResult b # (<$) :: a -> StepResult b -> StepResult a # | |
evalWhileExpr :: Applicative f => (forall x. WhileVar l x -> f x) -> WhileExpr l a -> f a Source #