Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Codegen.Errors
Synopsis
- data CodegenError = CodegenError {}
- data CodegenErrorType
- = UnsupportedTopLevel Expr
- | UnsupportedOperator Operation
- | UnsupportedUnaryOperator UnaryOperation
- | UnsupportedLiteral Literal
- | UnsupportedType Type
- | UnsupportedGlobalVar Literal
- | UnsupportedLocalVar Literal
- | UnsupportedDefinition Expr
- | UnsupportedForDefinition Expr
- | UnsupportedWhileDefinition Expr
- | VariableNotFound String
- | UnsupportedFunctionCall String
- | UnsupportedStructureAccess Expr
- | StructureFieldNotFound String
- | ContinueOutsideLoop
- | BreakOutsideLoop
- | UnsupportedConversion Type Type
- | UnsupportedGlobalDeclaration Expr
- showErrorType :: CodegenErrorType -> String
Documentation
data CodegenError Source #
Error types for code generation.
Constructors
CodegenError | |
Fields |
Instances
Show CodegenError Source # | |
Defined in Codegen.Errors Methods showsPrec :: Int -> CodegenError -> ShowS # show :: CodegenError -> String # showList :: [CodegenError] -> ShowS # | |
Eq CodegenError Source # | |
Defined in Codegen.Errors |
data CodegenErrorType Source #
Error types for code generation.
Constructors
Instances
Show CodegenErrorType Source # | |
Defined in Codegen.Errors Methods showsPrec :: Int -> CodegenErrorType -> ShowS # show :: CodegenErrorType -> String # showList :: [CodegenErrorType] -> ShowS # | |
Eq CodegenErrorType Source # | |
Defined in Codegen.Errors Methods (==) :: CodegenErrorType -> CodegenErrorType -> Bool # (/=) :: CodegenErrorType -> CodegenErrorType -> Bool # |
showErrorType :: CodegenErrorType -> String Source #
Show error type as string.