hpython-0.1: Syntax tree and DSL for Python

Copyright(C) CSIRO 2017-2018
LicenseBSD3
MaintainerIsaac Elliott <isaace71295@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Language.Python.Validate.Syntax.Error

Description

 

Documentation

data SyntaxError a Source #

Instances
Eq a => Eq (SyntaxError a) Source # 
Instance details

Defined in Language.Python.Validate.Syntax.Error

Show a => Show (SyntaxError a) Source # 
Instance details

Defined in Language.Python.Validate.Syntax.Error

AsSyntaxError (SyntaxError a) a Source # 
Instance details

Defined in Language.Python.Validate.Syntax.Error

Methods

_SyntaxError :: Prism' (SyntaxError a) (SyntaxError a) Source #

_PositionalAfterKeywordArg :: Prism' (SyntaxError a) (a, Expr [] a) Source #

_PositionalAfterKeywordUnpacking :: Prism' (SyntaxError a) (a, Expr [] a) Source #

_CannotAssignTo :: Prism' (SyntaxError a) (a, Expr [] a) Source #

_CannotDelete :: Prism' (SyntaxError a) (a, Expr [] a) Source #

_CannotAugAssignTo :: Prism' (SyntaxError a) (a, Expr [] a) Source #

_NoBindingNonlocal :: Prism' (SyntaxError a) (Ident [] a) Source #

_PositionalAfterKeywordParam :: Prism' (SyntaxError a) (a, String) Source #

_UnexpectedDoubleStarParam :: Prism' (SyntaxError a) (a, String) Source #

_DuplicateArgument :: Prism' (SyntaxError a) (a, String) Source #

_UnexpectedNewline :: Prism' (SyntaxError a) a Source #

_UnexpectedComment :: Prism' (SyntaxError a) a Source #

_IdentifierReservedWord :: Prism' (SyntaxError a) (a, String) Source #

_EmptyIdentifier :: Prism' (SyntaxError a) a Source #

_BadCharacter :: Prism' (SyntaxError a) (a, String) Source #

_BreakOutsideLoop :: Prism' (SyntaxError a) a Source #

_ContinueOutsideLoop :: Prism' (SyntaxError a) a Source #

_ReturnOutsideFunction :: Prism' (SyntaxError a) a Source #

_NonlocalOutsideFunction :: Prism' (SyntaxError a) a Source #

_ParametersNonlocal :: Prism' (SyntaxError a) (a, [String]) Source #

_Can'tJoinStringAndBytes :: Prism' (SyntaxError a) a Source #

_YieldOutsideGenerator :: Prism' (SyntaxError a) a Source #

_MalformedDecorator :: Prism' (SyntaxError a) a Source #

_InvalidDictUnpacking :: Prism' (SyntaxError a) a Source #

_InvalidSetUnpacking :: Prism' (SyntaxError a) a Source #

_TypedParamInLambda :: Prism' (SyntaxError a) a Source #

_AsyncWithOutsideCoroutine :: Prism' (SyntaxError a) a Source #

_AsyncForOutsideCoroutine :: Prism' (SyntaxError a) a Source #

_YieldFromInsideCoroutine :: Prism' (SyntaxError a) a Source #

_YieldInsideCoroutine :: Prism' (SyntaxError a) a Source #

_AwaitOutsideCoroutine :: Prism' (SyntaxError a) a Source #

_AwaitInsideComprehension :: Prism' (SyntaxError a) a Source #

_NullByte :: Prism' (SyntaxError a) a Source #

_NonAsciiInBytes :: Prism' (SyntaxError a) (a, Char) Source #

_DefaultExceptMustBeLast :: Prism' (SyntaxError a) a Source #

_WildcardImportInDefinition :: Prism' (SyntaxError a) a Source #

_NoKeywordsAfterEmptyStarArg :: Prism' (SyntaxError a) a Source #

_ManyStarredTargets :: Prism' (SyntaxError a) a Source #

_ManyStarredParams :: Prism' (SyntaxError a) a Source #

_ContinueInsideFinally :: Prism' (SyntaxError a) a Source #

_ParameterMarkedGlobal :: Prism' (SyntaxError a) (a, String) Source #

class AsSyntaxError r a | r -> a where Source #

Minimal complete definition

_SyntaxError

Methods

_SyntaxError :: Prism' r (SyntaxError a) Source #

_PositionalAfterKeywordArg :: Prism' r (a, Expr ('[] :: [Type]) a) Source #

_PositionalAfterKeywordUnpacking :: Prism' r (a, Expr ('[] :: [Type]) a) Source #

_CannotAssignTo :: Prism' r (a, Expr ('[] :: [Type]) a) Source #

_CannotDelete :: Prism' r (a, Expr ('[] :: [Type]) a) Source #

_CannotAugAssignTo :: Prism' r (a, Expr ('[] :: [Type]) a) Source #

_NoBindingNonlocal :: Prism' r (Ident ('[] :: [Type]) a) Source #

_PositionalAfterKeywordParam :: Prism' r (a, String) Source #

_UnexpectedDoubleStarParam :: Prism' r (a, String) Source #

_DuplicateArgument :: Prism' r (a, String) Source #

_UnexpectedNewline :: Prism' r a Source #

_UnexpectedComment :: Prism' r a Source #

_IdentifierReservedWord :: Prism' r (a, String) Source #

_EmptyIdentifier :: Prism' r a Source #

_BadCharacter :: Prism' r (a, String) Source #

_BreakOutsideLoop :: Prism' r a Source #

_ContinueOutsideLoop :: Prism' r a Source #

_ReturnOutsideFunction :: Prism' r a Source #

_NonlocalOutsideFunction :: Prism' r a Source #

_ParametersNonlocal :: Prism' r (a, [String]) Source #

_Can'tJoinStringAndBytes :: Prism' r a Source #

_YieldOutsideGenerator :: Prism' r a Source #

_MalformedDecorator :: Prism' r a Source #

_InvalidDictUnpacking :: Prism' r a Source #

_InvalidSetUnpacking :: Prism' r a Source #

_TypedParamInLambda :: Prism' r a Source #

_AsyncWithOutsideCoroutine :: Prism' r a Source #

_AsyncForOutsideCoroutine :: Prism' r a Source #

_YieldFromInsideCoroutine :: Prism' r a Source #

_YieldInsideCoroutine :: Prism' r a Source #

_AwaitOutsideCoroutine :: Prism' r a Source #

_AwaitInsideComprehension :: Prism' r a Source #

_NullByte :: Prism' r a Source #

_NonAsciiInBytes :: Prism' r (a, Char) Source #

_DefaultExceptMustBeLast :: Prism' r a Source #

_WildcardImportInDefinition :: Prism' r a Source #

_NoKeywordsAfterEmptyStarArg :: Prism' r a Source #

_ManyStarredTargets :: Prism' r a Source #

_ManyStarredParams :: Prism' r a Source #

_ContinueInsideFinally :: Prism' r a Source #

_ParameterMarkedGlobal :: Prism' r (a, String) Source #

Instances
AsSyntaxError (SyntaxError a) a Source # 
Instance details

Defined in Language.Python.Validate.Syntax.Error

Methods

_SyntaxError :: Prism' (SyntaxError a) (SyntaxError a) Source #

_PositionalAfterKeywordArg :: Prism' (SyntaxError a) (a, Expr [] a) Source #

_PositionalAfterKeywordUnpacking :: Prism' (SyntaxError a) (a, Expr [] a) Source #

_CannotAssignTo :: Prism' (SyntaxError a) (a, Expr [] a) Source #

_CannotDelete :: Prism' (SyntaxError a) (a, Expr [] a) Source #

_CannotAugAssignTo :: Prism' (SyntaxError a) (a, Expr [] a) Source #

_NoBindingNonlocal :: Prism' (SyntaxError a) (Ident [] a) Source #

_PositionalAfterKeywordParam :: Prism' (SyntaxError a) (a, String) Source #

_UnexpectedDoubleStarParam :: Prism' (SyntaxError a) (a, String) Source #

_DuplicateArgument :: Prism' (SyntaxError a) (a, String) Source #

_UnexpectedNewline :: Prism' (SyntaxError a) a Source #

_UnexpectedComment :: Prism' (SyntaxError a) a Source #

_IdentifierReservedWord :: Prism' (SyntaxError a) (a, String) Source #

_EmptyIdentifier :: Prism' (SyntaxError a) a Source #

_BadCharacter :: Prism' (SyntaxError a) (a, String) Source #

_BreakOutsideLoop :: Prism' (SyntaxError a) a Source #

_ContinueOutsideLoop :: Prism' (SyntaxError a) a Source #

_ReturnOutsideFunction :: Prism' (SyntaxError a) a Source #

_NonlocalOutsideFunction :: Prism' (SyntaxError a) a Source #

_ParametersNonlocal :: Prism' (SyntaxError a) (a, [String]) Source #

_Can'tJoinStringAndBytes :: Prism' (SyntaxError a) a Source #

_YieldOutsideGenerator :: Prism' (SyntaxError a) a Source #

_MalformedDecorator :: Prism' (SyntaxError a) a Source #

_InvalidDictUnpacking :: Prism' (SyntaxError a) a Source #

_InvalidSetUnpacking :: Prism' (SyntaxError a) a Source #

_TypedParamInLambda :: Prism' (SyntaxError a) a Source #

_AsyncWithOutsideCoroutine :: Prism' (SyntaxError a) a Source #

_AsyncForOutsideCoroutine :: Prism' (SyntaxError a) a Source #

_YieldFromInsideCoroutine :: Prism' (SyntaxError a) a Source #

_YieldInsideCoroutine :: Prism' (SyntaxError a) a Source #

_AwaitOutsideCoroutine :: Prism' (SyntaxError a) a Source #

_AwaitInsideComprehension :: Prism' (SyntaxError a) a Source #

_NullByte :: Prism' (SyntaxError a) a Source #

_NonAsciiInBytes :: Prism' (SyntaxError a) (a, Char) Source #

_DefaultExceptMustBeLast :: Prism' (SyntaxError a) a Source #

_WildcardImportInDefinition :: Prism' (SyntaxError a) a Source #

_NoKeywordsAfterEmptyStarArg :: Prism' (SyntaxError a) a Source #

_ManyStarredTargets :: Prism' (SyntaxError a) a Source #

_ManyStarredParams :: Prism' (SyntaxError a) a Source #

_ContinueInsideFinally :: Prism' (SyntaxError a) a Source #

_ParameterMarkedGlobal :: Prism' (SyntaxError a) (a, String) Source #

AsSyntaxError (ValidationError a) a Source # 
Instance details

Defined in Language.Python.Validate.Error

Methods

_SyntaxError :: Prism' (ValidationError a) (SyntaxError a) Source #

_PositionalAfterKeywordArg :: Prism' (ValidationError a) (a, Expr [] a) Source #

_PositionalAfterKeywordUnpacking :: Prism' (ValidationError a) (a, Expr [] a) Source #

_CannotAssignTo :: Prism' (ValidationError a) (a, Expr [] a) Source #

_CannotDelete :: Prism' (ValidationError a) (a, Expr [] a) Source #

_CannotAugAssignTo :: Prism' (ValidationError a) (a, Expr [] a) Source #

_NoBindingNonlocal :: Prism' (ValidationError a) (Ident [] a) Source #

_PositionalAfterKeywordParam :: Prism' (ValidationError a) (a, String) Source #

_UnexpectedDoubleStarParam :: Prism' (ValidationError a) (a, String) Source #

_DuplicateArgument :: Prism' (ValidationError a) (a, String) Source #

_UnexpectedNewline :: Prism' (ValidationError a) a Source #

_UnexpectedComment :: Prism' (ValidationError a) a Source #

_IdentifierReservedWord :: Prism' (ValidationError a) (a, String) Source #

_EmptyIdentifier :: Prism' (ValidationError a) a Source #

_BadCharacter :: Prism' (ValidationError a) (a, String) Source #

_BreakOutsideLoop :: Prism' (ValidationError a) a Source #

_ContinueOutsideLoop :: Prism' (ValidationError a) a Source #

_ReturnOutsideFunction :: Prism' (ValidationError a) a Source #

_NonlocalOutsideFunction :: Prism' (ValidationError a) a Source #

_ParametersNonlocal :: Prism' (ValidationError a) (a, [String]) Source #

_Can'tJoinStringAndBytes :: Prism' (ValidationError a) a Source #

_YieldOutsideGenerator :: Prism' (ValidationError a) a Source #

_MalformedDecorator :: Prism' (ValidationError a) a Source #

_InvalidDictUnpacking :: Prism' (ValidationError a) a Source #

_InvalidSetUnpacking :: Prism' (ValidationError a) a Source #

_TypedParamInLambda :: Prism' (ValidationError a) a Source #

_AsyncWithOutsideCoroutine :: Prism' (ValidationError a) a Source #

_AsyncForOutsideCoroutine :: Prism' (ValidationError a) a Source #

_YieldFromInsideCoroutine :: Prism' (ValidationError a) a Source #

_YieldInsideCoroutine :: Prism' (ValidationError a) a Source #

_AwaitOutsideCoroutine :: Prism' (ValidationError a) a Source #

_AwaitInsideComprehension :: Prism' (ValidationError a) a Source #

_NullByte :: Prism' (ValidationError a) a Source #

_NonAsciiInBytes :: Prism' (ValidationError a) (a, Char) Source #

_DefaultExceptMustBeLast :: Prism' (ValidationError a) a Source #

_WildcardImportInDefinition :: Prism' (ValidationError a) a Source #

_NoKeywordsAfterEmptyStarArg :: Prism' (ValidationError a) a Source #

_ManyStarredTargets :: Prism' (ValidationError a) a Source #

_ManyStarredParams :: Prism' (ValidationError a) a Source #

_ContinueInsideFinally :: Prism' (ValidationError a) a Source #

_ParameterMarkedGlobal :: Prism' (ValidationError a) (a, String) Source #