All the errors the compiler can encounter.
Errors encountered during parsing from String to AST.
The DeadEnd type in this definition is the one from elm/parser.
The specific problem the parser encountered. Together with ParseContext
and the location info this should give you enough info about what's wrong.
Context information about what was the parser trying to do at the time of
the error. Was it trying to parse an if expression? A list? etc.
Errors encountered during desugaring from the Frontend AST to Canonical AST.
Errors encountered during typechecking.
Errors encountered during emitting. As you're free to do the emit phase however you want, this is only returned from the helpers in Stage.Emit in the compiler CLI.
Elm.Compiler.Emit or something similar)
The top-level error type that breaks down into specific error types.