| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Futhark.IR.Pretty
Contents
Description
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 (Decorations lore, Pretty (RetType lore), Pretty (BranchType lore), Pretty (FParamInfo lore), Pretty (LParamInfo lore), Pretty (LetDec 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 (Decorations lore, Pretty (RetType lore), Pretty (BranchType lore), Pretty (FParamInfo lore), Pretty (LParamInfo lore), Pretty (LetDec lore), Pretty (Op lore)) => PrettyLore lore where Source #
The class of lores whose annotations can be prettyprinted.
Minimal complete definition
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 Methods 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 # | |