hakaru-0.3.0: A probabilistic programming language

CopyrightCopyright (c) 2016 the Hakaru team
LicenseBSD3
Maintainerzsulliva@indiana.edu
Stabilityexperimental
PortabilityGHC-only A pretty printer for the CodeGen AST
Safe HaskellSafe
LanguageHaskell2010

Language.Hakaru.CodeGen.Pretty

Description

 

Documentation

pretty :: Pretty a => a -> Doc Source #

class Pretty a where Source #

Methods

pretty :: a -> Doc Source #

Instances

Pretty CConst Source # 
Pretty CUnaryOp Source # 
Pretty CBinaryOp Source # 
Pretty CAssignOp Source # 
Pretty CExpr Source # 

Methods

pretty :: CExpr -> Doc Source #

prettyPrec :: Int -> CExpr -> Doc

Pretty CCompoundBlockItem Source # 
Pretty CStat Source # 

Methods

pretty :: CStat -> Doc Source #

prettyPrec :: Int -> CStat -> Doc

Pretty CPartDesig Source # 
Pretty CInit Source # 

Methods

pretty :: CInit -> Doc Source #

prettyPrec :: Int -> CInit -> Doc

Pretty CDirectDeclr Source # 
Pretty CPtrDeclr Source # 
Pretty CDeclr Source # 
Pretty CEnum Source # 

Methods

pretty :: CEnum -> Doc Source #

prettyPrec :: Int -> CEnum -> Doc

Pretty CSUTag Source # 
Pretty CSUSpec Source # 
Pretty CTypeSpec Source # 
Pretty CTypeQual Source # 
Pretty CStorageSpec Source # 
Pretty CDeclSpec Source # 
Pretty CDecl Source # 

Methods

pretty :: CDecl -> Doc Source #

prettyPrec :: Int -> CDecl -> Doc

Pretty Ident Source # 

Methods

pretty :: Ident -> Doc Source #

prettyPrec :: Int -> Ident -> Doc

Pretty Preprocessor Source # 
Pretty CFunDef Source # 
Pretty CExtDecl Source # 
Pretty CAST Source # 

Methods

pretty :: CAST -> Doc Source #

prettyPrec :: Int -> CAST -> Doc