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) Source #

assocLeft :: Assoc Source #

assocRight :: Assoc Source #

assocNone :: Assoc Source #

bump :: Rational -> Rational Source #

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

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

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

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

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

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

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

# Orphan instances

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