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
- pretty :: Pretty a => a -> String
- class PrettyAnnot a where
- class (Decorations lore, Pretty (RetType lore), Pretty (BranchType lore), Pretty (Param (FParamInfo lore)), Pretty (Param (LParamInfo lore)), Pretty (PatElemT (LetDec lore)), PrettyAnnot (PatElem lore), PrettyAnnot (FParam lore), PrettyAnnot (LParam lore), Pretty (Op lore)) => PrettyLore lore where
- ppTuple' :: Pretty a => [a] -> Doc
Documentation
prettyTuple :: Pretty a => [a] -> String Source #
Prettyprint a list enclosed in curly braces.
class PrettyAnnot a where Source #
Class for values that may have some prettyprinted annotation.
Instances
PrettyAnnot () Source # | |
PrettyAnnot (PatElemT dec) => PrettyAnnot (PatElemT (VarAliases, dec)) Source # | |
Defined in Futhark.IR.Aliases | |
PrettyAnnot (PatElemT dec) => PrettyAnnot (PatElemT (VarWisdom, dec)) Source # | |
PrettyAnnot (PatElemT (TypeBase shape u)) Source # | |
(Pretty u, Pretty r) => PrettyAnnot (PatElemT (MemInfo SubExp u r)) Source # | |
PrettyAnnot (Param (TypeBase shape u)) Source # | |
(Pretty u, Pretty r) => PrettyAnnot (Param (MemInfo SubExp u r)) Source # | |
class (Decorations lore, Pretty (RetType lore), Pretty (BranchType lore), Pretty (Param (FParamInfo lore)), Pretty (Param (LParamInfo lore)), Pretty (PatElemT (LetDec lore)), PrettyAnnot (PatElem lore), PrettyAnnot (FParam lore), PrettyAnnot (LParam lore), Pretty (Op lore)) => PrettyLore lore where Source #
The class of lores whose annotations can be prettyprinted.
Nothing
Instances
PrettyLore Seq Source # | |
PrettyLore SOACS Source # | |
PrettyLore MCMem Source # | |
PrettyLore MC Source # | |
PrettyLore SeqMem Source # | |
PrettyLore Kernels Source # | |
PrettyLore KernelsMem Source # | |
Defined in Futhark.IR.KernelsMem ppExpLore :: ExpDec KernelsMem -> Exp KernelsMem -> Maybe Doc Source # | |
(ASTLore lore, CanBeAliased (Op lore)) => PrettyLore (Aliases lore) Source # | |
(PrettyLore lore, CanBeWise (Op lore)) => PrettyLore (Wise lore) Source # | |