| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell98 |
Language.GLSL.Syntax
Documentation
data TranslationUnit Source #
Constructors
| TranslationUnit [ExternalDeclaration] |
Instances
| Show TranslationUnit Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> TranslationUnit -> ShowS show :: TranslationUnit -> String showList :: [TranslationUnit] -> ShowS | |
| Eq TranslationUnit Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: TranslationUnit -> TranslationUnit -> Bool (/=) :: TranslationUnit -> TranslationUnit -> Bool | |
| Pretty TranslationUnit Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> TranslationUnit -> Doc Source # pPrint :: TranslationUnit -> Doc Source # pPrintList :: PrettyLevel -> [TranslationUnit] -> Doc Source # | |
data ExternalDeclaration Source #
Constructors
| FunctionDeclaration FunctionPrototype | |
| FunctionDefinition FunctionPrototype Compound | |
| Declaration Declaration |
Instances
| Show ExternalDeclaration Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> ExternalDeclaration -> ShowS show :: ExternalDeclaration -> String showList :: [ExternalDeclaration] -> ShowS | |
| Eq ExternalDeclaration Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: ExternalDeclaration -> ExternalDeclaration -> Bool (/=) :: ExternalDeclaration -> ExternalDeclaration -> Bool | |
| Pretty ExternalDeclaration Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> ExternalDeclaration -> Doc Source # pPrint :: ExternalDeclaration -> Doc Source # pPrintList :: PrettyLevel -> [ExternalDeclaration] -> Doc Source # | |
data Declaration Source #
Constructors
| InitDeclaration InvariantOrType [InitDeclarator] | |
| Precision PrecisionQualifier TypeSpecifierNoPrecision | |
| Block TypeQualifier String [Field] (Maybe (String, Maybe (Maybe Expr))) | |
| TQ TypeQualifier |
Instances
| Show Declaration Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> Declaration -> ShowS show :: Declaration -> String showList :: [Declaration] -> ShowS | |
| Eq Declaration Source # | |
Defined in Language.GLSL.Syntax | |
| Pretty Declaration Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> Declaration -> Doc Source # pPrint :: Declaration -> Doc Source # pPrintList :: PrettyLevel -> [Declaration] -> Doc Source # | |
data InitDeclarator Source #
Instances
| Show InitDeclarator Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> InitDeclarator -> ShowS show :: InitDeclarator -> String showList :: [InitDeclarator] -> ShowS | |
| Eq InitDeclarator Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: InitDeclarator -> InitDeclarator -> Bool (/=) :: InitDeclarator -> InitDeclarator -> Bool | |
| Pretty InitDeclarator Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> InitDeclarator -> Doc Source # pPrint :: InitDeclarator -> Doc Source # pPrintList :: PrettyLevel -> [InitDeclarator] -> Doc Source # | |
data InvariantOrType Source #
Constructors
| InvariantDeclarator | |
| TypeDeclarator FullType |
Instances
| Show InvariantOrType Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> InvariantOrType -> ShowS show :: InvariantOrType -> String showList :: [InvariantOrType] -> ShowS | |
| Eq InvariantOrType Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: InvariantOrType -> InvariantOrType -> Bool (/=) :: InvariantOrType -> InvariantOrType -> Bool | |
| Pretty InvariantOrType Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> InvariantOrType -> Doc Source # pPrint :: InvariantOrType -> Doc Source # pPrintList :: PrettyLevel -> [InvariantOrType] -> Doc Source # | |
data FunctionPrototype Source #
Constructors
| FuncProt FullType String [ParameterDeclaration] |
Instances
| Show FunctionPrototype Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> FunctionPrototype -> ShowS show :: FunctionPrototype -> String showList :: [FunctionPrototype] -> ShowS | |
| Eq FunctionPrototype Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: FunctionPrototype -> FunctionPrototype -> Bool (/=) :: FunctionPrototype -> FunctionPrototype -> Bool | |
| Pretty FunctionPrototype Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> FunctionPrototype -> Doc Source # pPrint :: FunctionPrototype -> Doc Source # pPrintList :: PrettyLevel -> [FunctionPrototype] -> Doc Source # | |
data ParameterDeclaration Source #
Constructors
| ParameterDeclaration (Maybe ParameterTypeQualifier) (Maybe ParameterQualifier) TypeSpecifier (Maybe (String, Maybe Expr)) |
Instances
| Show ParameterDeclaration Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> ParameterDeclaration -> ShowS show :: ParameterDeclaration -> String showList :: [ParameterDeclaration] -> ShowS | |
| Eq ParameterDeclaration Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: ParameterDeclaration -> ParameterDeclaration -> Bool (/=) :: ParameterDeclaration -> ParameterDeclaration -> Bool | |
| Pretty ParameterDeclaration Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> ParameterDeclaration -> Doc Source # pPrint :: ParameterDeclaration -> Doc Source # pPrintList :: PrettyLevel -> [ParameterDeclaration] -> Doc Source # | |
Constructors
| FullType (Maybe TypeQualifier) TypeSpecifier |
data TypeQualifier Source #
Constructors
Instances
| Show TypeQualifier Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> TypeQualifier -> ShowS show :: TypeQualifier -> String showList :: [TypeQualifier] -> ShowS | |
| Eq TypeQualifier Source # | |
Defined in Language.GLSL.Syntax | |
| Pretty TypeQualifier Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> TypeQualifier -> Doc Source # pPrint :: TypeQualifier -> Doc Source # pPrintList :: PrettyLevel -> [TypeQualifier] -> Doc Source # | |
data TypeSpecifier Source #
Constructors
| TypeSpec (Maybe PrecisionQualifier) TypeSpecifierNoPrecision |
Instances
| Show TypeSpecifier Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> TypeSpecifier -> ShowS show :: TypeSpecifier -> String showList :: [TypeSpecifier] -> ShowS | |
| Eq TypeSpecifier Source # | |
Defined in Language.GLSL.Syntax | |
| Pretty TypeSpecifier Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> TypeSpecifier -> Doc Source # pPrint :: TypeSpecifier -> Doc Source # pPrintList :: PrettyLevel -> [TypeSpecifier] -> Doc Source # | |
data InvariantQualifier Source #
Constructors
| Invariant |
Instances
| Show InvariantQualifier Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> InvariantQualifier -> ShowS show :: InvariantQualifier -> String showList :: [InvariantQualifier] -> ShowS | |
| Eq InvariantQualifier Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: InvariantQualifier -> InvariantQualifier -> Bool (/=) :: InvariantQualifier -> InvariantQualifier -> Bool | |
| Pretty InvariantQualifier Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> InvariantQualifier -> Doc Source # pPrint :: InvariantQualifier -> Doc Source # pPrintList :: PrettyLevel -> [InvariantQualifier] -> Doc Source # | |
data InterpolationQualifier Source #
Constructors
| Smooth | |
| Flat | |
| NoPerspective |
Instances
| Show InterpolationQualifier Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> InterpolationQualifier -> ShowS show :: InterpolationQualifier -> String showList :: [InterpolationQualifier] -> ShowS | |
| Eq InterpolationQualifier Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: InterpolationQualifier -> InterpolationQualifier -> Bool (/=) :: InterpolationQualifier -> InterpolationQualifier -> Bool | |
| Pretty InterpolationQualifier Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> InterpolationQualifier -> Doc Source # pPrint :: InterpolationQualifier -> Doc Source # pPrintList :: PrettyLevel -> [InterpolationQualifier] -> Doc Source # | |
data LayoutQualifier Source #
Constructors
| Layout [LayoutQualifierId] |
Instances
| Show LayoutQualifier Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> LayoutQualifier -> ShowS show :: LayoutQualifier -> String showList :: [LayoutQualifier] -> ShowS | |
| Eq LayoutQualifier Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: LayoutQualifier -> LayoutQualifier -> Bool (/=) :: LayoutQualifier -> LayoutQualifier -> Bool | |
| Pretty LayoutQualifier Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> LayoutQualifier -> Doc Source # pPrint :: LayoutQualifier -> Doc Source # pPrintList :: PrettyLevel -> [LayoutQualifier] -> Doc Source # | |
data LayoutQualifierId Source #
Constructors
| LayoutQualId String (Maybe Expr) |
Instances
| Show LayoutQualifierId Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> LayoutQualifierId -> ShowS show :: LayoutQualifierId -> String showList :: [LayoutQualifierId] -> ShowS | |
| Eq LayoutQualifierId Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: LayoutQualifierId -> LayoutQualifierId -> Bool (/=) :: LayoutQualifierId -> LayoutQualifierId -> Bool | |
| Pretty LayoutQualifierId Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> LayoutQualifierId -> Doc Source # pPrint :: LayoutQualifierId -> Doc Source # pPrintList :: PrettyLevel -> [LayoutQualifierId] -> Doc Source # | |
Constructors
| DeclarationStatement Declaration | |
| Continue | |
| Break | |
| Return (Maybe Expr) | |
| Discard | |
| CompoundStatement Compound | |
| ExpressionStatement (Maybe Expr) | |
| SelectionStatement Expr Statement (Maybe Statement) | |
| SwitchStatement Expr [Statement] | |
| CaseLabel CaseLabel | |
| While Condition Statement | |
| DoWhile Statement Expr | |
| For (Either (Maybe Expr) Declaration) (Maybe Condition) (Maybe Expr) Statement |
Constructors
| Condition Expr | |
| InitializedCondition FullType String Expr |
data StorageQualifier Source #
Constructors
| Const | |
| Attribute | |
| Varying | |
| CentroidVarying | |
| In | |
| Out | |
| CentroidIn | |
| CentroidOut | |
| Uniform |
Instances
| Show StorageQualifier Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> StorageQualifier -> ShowS show :: StorageQualifier -> String showList :: [StorageQualifier] -> ShowS | |
| Eq StorageQualifier Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: StorageQualifier -> StorageQualifier -> Bool (/=) :: StorageQualifier -> StorageQualifier -> Bool | |
| Pretty StorageQualifier Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> StorageQualifier -> Doc Source # pPrint :: StorageQualifier -> Doc Source # pPrintList :: PrettyLevel -> [StorageQualifier] -> Doc Source # | |
data TypeSpecifierNoPrecision Source #
Constructors
| TypeSpecNoPrecision TypeSpecifierNonArray (Maybe (Maybe Expr)) |
Instances
| Show TypeSpecifierNoPrecision Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> TypeSpecifierNoPrecision -> ShowS show :: TypeSpecifierNoPrecision -> String showList :: [TypeSpecifierNoPrecision] -> ShowS | |
| Eq TypeSpecifierNoPrecision Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: TypeSpecifierNoPrecision -> TypeSpecifierNoPrecision -> Bool (/=) :: TypeSpecifierNoPrecision -> TypeSpecifierNoPrecision -> Bool | |
| Pretty TypeSpecifierNoPrecision Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> TypeSpecifierNoPrecision -> Doc Source # pPrint :: TypeSpecifierNoPrecision -> Doc Source # pPrintList :: PrettyLevel -> [TypeSpecifierNoPrecision] -> Doc Source # | |
data TypeSpecifierNonArray Source #
Constructors
Instances
| Show TypeSpecifierNonArray Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> TypeSpecifierNonArray -> ShowS show :: TypeSpecifierNonArray -> String showList :: [TypeSpecifierNonArray] -> ShowS | |
| Eq TypeSpecifierNonArray Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: TypeSpecifierNonArray -> TypeSpecifierNonArray -> Bool (/=) :: TypeSpecifierNonArray -> TypeSpecifierNonArray -> Bool | |
| Pretty TypeSpecifierNonArray Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> TypeSpecifierNonArray -> Doc Source # pPrint :: TypeSpecifierNonArray -> Doc Source # pPrintList :: PrettyLevel -> [TypeSpecifierNonArray] -> Doc Source # | |
data PrecisionQualifier Source #
Instances
| Show PrecisionQualifier Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> PrecisionQualifier -> ShowS show :: PrecisionQualifier -> String showList :: [PrecisionQualifier] -> ShowS | |
| Eq PrecisionQualifier Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: PrecisionQualifier -> PrecisionQualifier -> Bool (/=) :: PrecisionQualifier -> PrecisionQualifier -> Bool | |
| Pretty PrecisionQualifier Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> PrecisionQualifier -> Doc Source # pPrint :: PrecisionQualifier -> Doc Source # pPrintList :: PrettyLevel -> [PrecisionQualifier] -> Doc Source # | |
Constructors
| Field (Maybe TypeQualifier) TypeSpecifier [StructDeclarator] |
data StructDeclarator Source #
Constructors
| StructDeclarator String (Maybe (Maybe Expr)) |
Instances
| Show StructDeclarator Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> StructDeclarator -> ShowS show :: StructDeclarator -> String showList :: [StructDeclarator] -> ShowS | |
| Eq StructDeclarator Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: StructDeclarator -> StructDeclarator -> Bool (/=) :: StructDeclarator -> StructDeclarator -> Bool | |
| Pretty StructDeclarator Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> StructDeclarator -> Doc Source # pPrint :: StructDeclarator -> Doc Source # pPrintList :: PrettyLevel -> [StructDeclarator] -> Doc Source # | |
Constructors
data IntConstantKind Source #
Constructors
| Hexadecimal | |
| Octal | |
| Decimal |
Instances
| Show IntConstantKind Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> IntConstantKind -> ShowS show :: IntConstantKind -> String showList :: [IntConstantKind] -> ShowS | |
| Eq IntConstantKind Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: IntConstantKind -> IntConstantKind -> Bool (/=) :: IntConstantKind -> IntConstantKind -> Bool | |
data Parameters Source #
Instances
| Show Parameters Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> Parameters -> ShowS show :: Parameters -> String showList :: [Parameters] -> ShowS | |
| Eq Parameters Source # | |
Defined in Language.GLSL.Syntax | |
| Pretty Parameters Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> Parameters -> Doc Source # pPrint :: Parameters -> Doc Source # pPrintList :: PrettyLevel -> [Parameters] -> Doc Source # | |
data ParameterQualifier Source #
Constructors
| InParameter | |
| OutParameter | |
| InOutParameter |
Instances
| Show ParameterQualifier Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> ParameterQualifier -> ShowS show :: ParameterQualifier -> String showList :: [ParameterQualifier] -> ShowS | |
| Eq ParameterQualifier Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: ParameterQualifier -> ParameterQualifier -> Bool (/=) :: ParameterQualifier -> ParameterQualifier -> Bool | |
| Pretty ParameterQualifier Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> ParameterQualifier -> Doc Source # pPrint :: ParameterQualifier -> Doc Source # pPrintList :: PrettyLevel -> [ParameterQualifier] -> Doc Source # | |
data ParameterTypeQualifier Source #
Constructors
| ConstParameter |
Instances
| Show ParameterTypeQualifier Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> ParameterTypeQualifier -> ShowS show :: ParameterTypeQualifier -> String showList :: [ParameterTypeQualifier] -> ShowS | |
| Eq ParameterTypeQualifier Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: ParameterTypeQualifier -> ParameterTypeQualifier -> Bool (/=) :: ParameterTypeQualifier -> ParameterTypeQualifier -> Bool | |
| Pretty ParameterTypeQualifier Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> ParameterTypeQualifier -> Doc Source # pPrint :: ParameterTypeQualifier -> Doc Source # pPrintList :: PrettyLevel -> [ParameterTypeQualifier] -> Doc Source # | |
data FunctionIdentifier Source #
Constructors
| FuncIdTypeSpec TypeSpecifier | |
| FuncId String |
Instances
| Show FunctionIdentifier Source # | |
Defined in Language.GLSL.Syntax Methods showsPrec :: Int -> FunctionIdentifier -> ShowS show :: FunctionIdentifier -> String showList :: [FunctionIdentifier] -> ShowS | |
| Eq FunctionIdentifier Source # | |
Defined in Language.GLSL.Syntax Methods (==) :: FunctionIdentifier -> FunctionIdentifier -> Bool (/=) :: FunctionIdentifier -> FunctionIdentifier -> Bool | |
| Pretty FunctionIdentifier Source # | |
Defined in Language.GLSL.Pretty Methods pPrintPrec :: PrettyLevel -> Rational -> FunctionIdentifier -> Doc Source # pPrint :: FunctionIdentifier -> Doc Source # pPrintList :: PrettyLevel -> [FunctionIdentifier] -> Doc Source # | |