Language.Copilot.AdHocC
Description
Helper functions for writing free-form C code.
Documentation
varDecl :: Type -> [String] -> StringSource
Takes a type and a list of variable names and declares them.
includeBracket :: String -> StringSource
Add an include of a library
includeQuote :: String -> StringSource
Add an include of a header file
printfNewline :: String -> [String] -> StringSource
printf, with and without a newline (nl) character.