zilch-lang / nstar

The compiler for N⋆, a statically typed assembly language used as a compiler backend for Zilch
BSD 3-Clause "New" or "Revised" License
28 stars 2 forks source link

Log actions and potentially useful data #29

Open Mesabloo opened 3 years ago

Mesabloo commented 3 years ago

At the moment, the compiler either does not log anything, or logs unconditionally. This clearly isn't the best idea, and we may want to also control how much verbose we want the logs (if we want them at all). This can be achieved, I believe beautifully, thanks to the co-log package. However, as of now, this library has quite a few quirks, like message content strictness. So we may need to be aware of computation time for logs, until the 0.5.0.0 version is up on stackage (the mentioned "bug" has been fixed for this version; currently available is 0.4.0.1).