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
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 #