Language.GLSL.Pretty

language-glsl-0.3.0: GLSL abstract syntax tree, parser, and pretty-printer

Safe Haskell | Safe-Inferred
Language | Haskell98

Language.GLSL.Pretty

Contents

- Orphan instances

# Documentation

type Assoc = (Rational -> Rational, Rational -> Rational) #

assocLeft :: Assoc #

assocRight :: Assoc #

assocNone :: Assoc #

bump :: Rational -> Rational #

prettyBinary :: Pretty a => PrettyLevel -> Rational -> Rational -> Assoc -> String -> a -> a -> Doc #

option :: Pretty a => Maybe a -> Doc #

indexing :: Pretty a => Maybe (Maybe a) -> Doc #

indexing' :: Pretty a => Maybe (String, Maybe a) -> Doc #

initialize :: Pretty a => Maybe a -> Doc #

ident :: Pretty a => Maybe (String, Maybe (Maybe a)) -> Doc #

initialize' :: Pretty a => Maybe (String, Maybe a) -> Doc #

# Orphan instances

Pretty CaseLabel # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> CaseLabel -> Doc # pPrint :: CaseLabel -> Doc # pPrintList :: PrettyLevel -> [CaseLabel] -> Doc #
Pretty Compound # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> Compound -> Doc # pPrint :: Compound -> Doc # pPrintList :: PrettyLevel -> [Compound] -> Doc #
Pretty Condition # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> Condition -> Doc # pPrint :: Condition -> Doc # pPrintList :: PrettyLevel -> [Condition] -> Doc #
Pretty Declaration # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> Declaration -> Doc # pPrint :: Declaration -> Doc # pPrintList :: PrettyLevel -> [Declaration] -> Doc #
Pretty Expr # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> Expr -> Doc # pPrint :: Expr -> Doc # pPrintList :: PrettyLevel -> [Expr] -> Doc #
Pretty ExternalDeclaration # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> ExternalDeclaration -> Doc # pPrint :: ExternalDeclaration -> Doc # pPrintList :: PrettyLevel -> [ExternalDeclaration] -> Doc #
Pretty Field # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> Field -> Doc # pPrint :: Field -> Doc # pPrintList :: PrettyLevel -> [Field] -> Doc #
Pretty FullType # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> FullType -> Doc # pPrint :: FullType -> Doc # pPrintList :: PrettyLevel -> [FullType] -> Doc #
Pretty FunctionIdentifier # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> FunctionIdentifier -> Doc # pPrint :: FunctionIdentifier -> Doc # pPrintList :: PrettyLevel -> [FunctionIdentifier] -> Doc #
Pretty FunctionPrototype # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> FunctionPrototype -> Doc # pPrint :: FunctionPrototype -> Doc # pPrintList :: PrettyLevel -> [FunctionPrototype] -> Doc #
Pretty InitDeclarator # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> InitDeclarator -> Doc # pPrint :: InitDeclarator -> Doc # pPrintList :: PrettyLevel -> [InitDeclarator] -> Doc #
Pretty InterpolationQualifier # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> InterpolationQualifier -> Doc # pPrint :: InterpolationQualifier -> Doc # pPrintList :: PrettyLevel -> [InterpolationQualifier] -> Doc #
Pretty InvariantOrType # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> InvariantOrType -> Doc # pPrint :: InvariantOrType -> Doc # pPrintList :: PrettyLevel -> [InvariantOrType] -> Doc #
Pretty InvariantQualifier # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> InvariantQualifier -> Doc # pPrint :: InvariantQualifier -> Doc # pPrintList :: PrettyLevel -> [InvariantQualifier] -> Doc #
Pretty LayoutQualifier # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> LayoutQualifier -> Doc # pPrint :: LayoutQualifier -> Doc # pPrintList :: PrettyLevel -> [LayoutQualifier] -> Doc #
Pretty LayoutQualifierId # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> LayoutQualifierId -> Doc # pPrint :: LayoutQualifierId -> Doc # pPrintList :: PrettyLevel -> [LayoutQualifierId] -> Doc #
Pretty ParameterDeclaration # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> ParameterDeclaration -> Doc # pPrint :: ParameterDeclaration -> Doc # pPrintList :: PrettyLevel -> [ParameterDeclaration] -> Doc #
Pretty ParameterQualifier # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> ParameterQualifier -> Doc # pPrint :: ParameterQualifier -> Doc # pPrintList :: PrettyLevel -> [ParameterQualifier] -> Doc #
Pretty ParameterTypeQualifier # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> ParameterTypeQualifier -> Doc # pPrint :: ParameterTypeQualifier -> Doc # pPrintList :: PrettyLevel -> [ParameterTypeQualifier] -> Doc #
Pretty Parameters # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> Parameters -> Doc # pPrint :: Parameters -> Doc # pPrintList :: PrettyLevel -> [Parameters] -> Doc #
Pretty PrecisionQualifier # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> PrecisionQualifier -> Doc # pPrint :: PrecisionQualifier -> Doc # pPrintList :: PrettyLevel -> [PrecisionQualifier] -> Doc #
Pretty Statement # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> Statement -> Doc # pPrint :: Statement -> Doc # pPrintList :: PrettyLevel -> [Statement] -> Doc #
Pretty StorageQualifier # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> StorageQualifier -> Doc # pPrint :: StorageQualifier -> Doc # pPrintList :: PrettyLevel -> [StorageQualifier] -> Doc #
Pretty StructDeclarator # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> StructDeclarator -> Doc # pPrint :: StructDeclarator -> Doc # pPrintList :: PrettyLevel -> [StructDeclarator] -> Doc #
Pretty TranslationUnit # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> TranslationUnit -> Doc # pPrint :: TranslationUnit -> Doc # pPrintList :: PrettyLevel -> [TranslationUnit] -> Doc #
Pretty TypeQualifier # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> TypeQualifier -> Doc # pPrint :: TypeQualifier -> Doc # pPrintList :: PrettyLevel -> [TypeQualifier] -> Doc #
Pretty TypeSpecifier # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> TypeSpecifier -> Doc # pPrint :: TypeSpecifier -> Doc # pPrintList :: PrettyLevel -> [TypeSpecifier] -> Doc #
Pretty TypeSpecifierNoPrecision # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> TypeSpecifierNoPrecision -> Doc # pPrint :: TypeSpecifierNoPrecision -> Doc # pPrintList :: PrettyLevel -> [TypeSpecifierNoPrecision] -> Doc #
Pretty TypeSpecifierNonArray # |
Instance details Methods pPrintPrec :: PrettyLevel -> Rational -> TypeSpecifierNonArray -> Doc # pPrint :: TypeSpecifierNonArray -> Doc # pPrintList :: PrettyLevel -> [TypeSpecifierNonArray] -> Doc #