Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Futhark prettyprinter. This module defines Pretty
instances
for the AST defined in Futhark.IR.Syntax,
but also a number of convenience functions if you don't want to use
the interface from Pretty
.
Synopsis
- prettyTuple :: Pretty a => [a] -> Text
- prettyTupleLines :: Pretty a => [a] -> Text
- prettyString :: Pretty a => a -> String
- class (RepTypes rep, Pretty (RetType rep), Pretty (BranchType rep), Pretty (FParamInfo rep), Pretty (LParamInfo rep), Pretty (LetDec rep), Pretty (Op rep)) => PrettyRep rep where
Documentation
prettyTuple :: Pretty a => [a] -> Text Source #
Prettyprint a list enclosed in curly braces.
prettyTupleLines :: Pretty a => [a] -> Text Source #
Like prettyTuple
, but put a linebreak after every element.
prettyString :: Pretty a => a -> String Source #
Prettyprint a value to a String
, appropriately wrapped.
class (RepTypes rep, Pretty (RetType rep), Pretty (BranchType rep), Pretty (FParamInfo rep), Pretty (LParamInfo rep), Pretty (LetDec rep), Pretty (Op rep)) => PrettyRep rep where Source #
The class of representations whose annotations can be prettyprinted.
Nothing
Instances
PrettyRep GPU Source # | |
PrettyRep GPUMem Source # | |
PrettyRep MC Source # | |
PrettyRep MCMem Source # | |
PrettyRep SOACS Source # | |
PrettyRep Seq Source # | |
PrettyRep SeqMem Source # | |
(ASTRep rep, AliasedOp (OpC rep), ASTConstraints (OpC rep (Aliases rep))) => PrettyRep (Aliases rep) Source # | |
(Informing rep, Pretty (OpC rep (Wise rep))) => PrettyRep (Wise rep) Source # | |