Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CodeDefinition
- data DefinitionType
- = Definition
- | ODE
- qtoc :: (Quantity (q Expr), MayHaveUnit (q Expr), DefiningExpr q) => q Expr -> CodeDefinition
- qtov :: CanGenCode e => QDefinition e -> CodeDefinition
- odeDef :: ODEInfo -> CodeDefinition
- auxExprs :: Lens' CodeDefinition [CodeExpr]
- defType :: Lens' CodeDefinition DefinitionType
Documentation
data CodeDefinition Source #
A chunk for pairing a mathematical definition with a CodeChunk
.
Instances
qtoc :: (Quantity (q Expr), MayHaveUnit (q Expr), DefiningExpr q) => q Expr -> CodeDefinition Source #
Constructs a CodeDefinition
where the underlying CodeChunk
is for a function.
qtov :: CanGenCode e => QDefinition e -> CodeDefinition Source #
Constructs a CodeDefinition
where the underlying CodeChunk
is for a variable.
odeDef :: ODEInfo -> CodeDefinition Source #
Constructs a CodeDefinition
for an ODE.
auxExprs :: Lens' CodeDefinition [CodeExpr] Source #
defType :: Lens' CodeDefinition DefinitionType Source #