Iβm excited to announce the release of grace 0.2.0, an OCaml library for building, reporting and rendering beautiful compiler diagnostics
. Now available on opam-repository.
The three main features of this release include:
-
UTF8 support: Source files can now contain Unicode characters, including emojis
, with proper rendering of ASCII art for errors. -
Error Codes: Diagnostics can now include short, searchable error codes. Allowing compilers to integrate a Rust-like error code index. -
Compact ANSI Errors: Grace_ansi_renderernow supports app_compact_diagnosticfor concise error messages, displaying only the file location and the error message.
Tap into the power of Grace for your error reporting! Happy hacking ![]()
CHANGES:
- fix(renderer): remove uncessary underlines when printing a unique βmulti-line
Topmarkerβ (#31) - fix(renderer): replace unicode chars with ASCII in
Config.ascii(#27) - feat(renderer): add
NO_COLORandTERMsupport toConfig(#8) - feat(core,renderer): add support for error codes (#30)
- feat(renderer): add support for UTF8 encoding (#25)
- feat(renderer): re-introduce support for compact diagnostic rendering (#28)
- refactor(renderer)!: move
grace.rendererlibrary tograce.ansi_renderer(#29)
BREAKING CHANGE
Grace_renderinghas been removed. UseGrace_ansi_rendererinstead.
