drasil-gool-0.1.1.0: A framework for code and document generation for scientific software - GOOL SubPackage
Safe HaskellNone
LanguageGHC2024

Drasil.Shared.LanguageRenderer.Common

Description

Implementations defined here are valid in some, but not all, language renderers

Synopsis

Documentation

funcType :: (Monad r, TypeElim r) => [VS (r TypeData)] -> VS (r TypeData) -> VS (r TypeData) Source #

forEach' :: RenderStatement r stmt => (r Variable -> r Value -> r Body -> Doc) -> SVariable r -> SValue r -> MS (r Body) -> MS (r stmt) Source #

varDecDef :: (EmptyStatement r stmt, AssignStatement r stmt, ScopeElim r, VariableElim r) => SVariable r -> r ScopeData -> Maybe (SValue r) -> MS (r stmt) Source #

listSize :: ValueExpression r => String -> SValue r -> SValue r Source #

Call to get the size of a list as a function call

increment :: (InternalVarElim r, RenderStatement r stmt, ValueElim r) => SVariable r -> SValue r -> MS (r stmt) Source #