Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data WhileOpKind as r where Source #
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 prettysPrecOp :: Pretty1 t => Int -> WhileOpKind as a -> Rec t as -> ShowS Source # | |
Num (WhileExpr l AlgReal) Source # | |
Defined in Language.While.Syntax (+) :: 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 fromString :: String -> WhileExpr s AlgReal # |
type WhileOp = GeneralOp WhileOpKind Source #
data WhileVar l a where Source #
Instances
data StepResult a Source #
Instances
Functor StepResult Source # | |
Defined in Language.While.Syntax 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 #