amuletml / amulet

An ML-like functional programming language
https://amulet.works/
BSD 3-Clause "New" or "Revised" License
328 stars 16 forks source link

Add flag to treat warnings as errors #228

Closed Lupus closed 4 years ago

Lupus commented 5 years ago

Would be nice to be able to error out if there are any warnings.

SquidDev commented 5 years ago

It might also be worth having flags to disable/promote/demote individual warnings. We may want to give error messages string identifiers as well as numeric ones, so the command line args don't end up like OCaml's.

Lupus commented 5 years ago

Probably having analog of gcc's -Werror would be a good start, and later on can be expanded to -Werror=foo to enable fine-grained control.