reasonml / reason

Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
http://reasonml.github.io
MIT License
10.11k stars 426 forks source link

Type-checking error messages are in OCaml syntax #531

Open jberdine opened 8 years ago

jberdine commented 8 years ago

Better if they were in Reason.

chenglou commented 8 years ago

@jordwalke so I guess we're keeping my refmterr stuff? No other ways right?

jordwalke commented 8 years ago

I suppose so.

let-def commented 7 years ago

Printing of errors in the compiler is done with the Outcometree. The necessary code is implemented in Reason_oprint.

OCaml 4.04 implemented support for plugins, a bit of code dynamically loaded in the ocaml process. After Reason switch to 4.04, implementing a simple plugin to setup the Oprint printers will be easy.

let-def commented 7 years ago

Plugins GPR: https://github.com/ocaml/ocaml/pull/648

anmonteiro commented 1 month ago

plugins were removed in https://github.com/ocaml/ocaml/pull/2276 so this is no longer a viable strategy