Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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] -> String
- prettyTupleLines :: Pretty a => [a] -> String
- pretty :: 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
- ppTuple' :: Pretty a => [a] -> Doc
Documentation
prettyTuple :: Pretty a => [a] -> String Source #
Prettyprint a list enclosed in curly braces.
prettyTupleLines :: Pretty a => [a] -> String Source #
Like prettyTuple
, but put a linebreak after every element.
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 Seq Source # | |
PrettyRep SOACS Source # | |
PrettyRep SeqMem Source # | |
PrettyRep MCMem Source # | |
PrettyRep MC Source # | |
PrettyRep GPU Source # | |
PrettyRep GPUMem Source # | |
(ASTRep rep, CanBeAliased (Op rep)) => PrettyRep (Aliases rep) Source # | |
(PrettyRep rep, CanBeWise (Op rep)) => PrettyRep (Wise rep) Source # | |