Thanks for your great library!
I use both Rust and Haskell, and have learned about error reporting libraries like ariadne and codespan-reporting for a while. Previously when working on a Rust project, I chose codespan-reporting because I preferred its formatting (formatting of ariadne is also beautiful, but a bit too fancy for me), given their interfaces are pretty similar. Is it possible to extend this library to have an alternative codespan-reporting-style formatting for the diagnostic messages? Or is there some design space to expose an API for custom report formatting?
FYI, here is a comparison of the said two styles (BTW it is amusing to see a more Haskell-like syntax for illustration in codespan-reporting the Rust library but a more Rust-like style here):
| Name |
Illustration |
(current) ariadne-style |
 |
codespan-reporting-style |
 |
If this is deemed non-trivial, I am willing to work on this, in that case would you please provide some guidance?
Thanks for your great library!
I use both Rust and Haskell, and have learned about error reporting libraries like
ariadneandcodespan-reportingfor a while. Previously when working on a Rust project, I chosecodespan-reportingbecause I preferred its formatting (formatting ofariadneis also beautiful, but a bit too fancy for me), given their interfaces are pretty similar. Is it possible to extend this library to have an alternativecodespan-reporting-style formatting for the diagnostic messages? Or is there some design space to expose an API for custom report formatting?FYI, here is a comparison of the said two styles (BTW it is amusing to see a more Haskell-like syntax for illustration in
codespan-reportingthe Rust library but a more Rust-like style here):ariadne-stylecodespan-reporting-styleIf this is deemed non-trivial, I am willing to work on this, in that case would you please provide some guidance?