Making Flix Compiler Errors Helpful and Delightful

Inspired by Elm's Compiler Errors for Humans and Compilers as Assistants, we recently took a step back and reworked every error message in the Flix compiler.

Here is what you can look forward to in the next version of Flix:

All error messages now have semantic syntax highlighting. For single-line errors: unexpected argument

And for multi-line errors: mismatched types

Simple errors are kept brief: duplicate annotation

Whereas complex errors come with explanations and examples: missing implementation

And, when possible, with suggestions for a fix: constructor not found

For very complex errors, we now give an in-depth technical explanation: complex instance


That's all for now.

Hope you enjoy our new colors!