futhark-0.25.15: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageGHC2021

Futhark.CodeGen.Backends.GenericC.Pretty

Description

Compatibility shims for mainland-pretty; the prettyprinting library used by language-c-quote.

Synopsis

Documentation

expText :: Exp -> Text Source #

Prettyprint a C expression.

definitionsText :: [Definition] -> Text Source #

Prettyprint a list of C definitions.

typeText :: Type -> Text Source #

Prettyprint a single C type.

idText :: Id -> Text Source #

Prettyprint a single identifier.

funcText :: Func -> Text Source #

Prettyprint a single function.

funcsText :: [Func] -> Text Source #

Prettyprint a list of functions.