nanopass-0.0.3.0: Create compilers using small passes and many intermediate representations.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Nanopass.Internal.Error

Documentation

data Error Source #

Constructors

SExprError String 
ExpectingLanguage SExpr 
ExpectedLangLHS SExpr 
ExpectedLangName String 
ExpectingTypeVariable SExpr 
ExpectingBaseLanguage (Maybe SExpr) 
ExpectingKwFromAfterLHS SExpr 
UnexpectedSExprAfterDelete SExpr 
ExpectingPlusMinusStar SExpr 
ExpectingNontermsEdit SExpr 
ExpectingPlusMinus SExpr 
ExpectingProductionsEdit SExpr 
ExpectedNontermName (Maybe SExpr) 
ExpectedNonterm SExpr 
ExpectedConstructorName (Maybe SExpr) 
ExpectedProduction SExpr 
ExpectingTypeNameOrVar String 
ExpectedTypeConstructor SExpr 
UnexpectedLiteral SExpr 
ConsListsDisallowed SExpr 
UnexpectedTypeApplicationstoRecursiveType UpName 
DuplicateLanguageParams [LowName] 
UnrecognizedNonterm UpName 
UnrecognizedTypeVariable LowName 
IllegalNontermAddedAlsoDeleted UpName

nonterm was both added and deleted by a language modifier

IllegalNontermModificationAlsoAdded UpName

nonterm was both added and modified by a language modifier

IllegalNontermModificationAlsoDeleted UpName

nonterm was both modified and deleted by a language modifier

IllegalNontermAdded UpName

nonterminal was already present in base language

IllegalNontermModified UpName

nonterminal was not present in base language

IllegalNontermDeleted UpName

nonterminal was not present in base language

DuplicateNontermMods [UpName] 
IllegalProductionAdded UpName

production was already present in base non-terminal

IllegalProductionDeleted UpName

production was not present in base non-terminal passes

MissingFromTo SExpr 
UnexpectedSExprAfterPass UpDotName UpDotName 
ExpectedUpDotNameAfterFrom SExpr 
ExpectedUpDotNameAfterTo SExpr 

Instances

Instances details
Show Error Source # 
Instance details

Defined in Nanopass.Internal.Error

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #