optics-dev / Monocly

Optics experimentation for Dotty
MIT License
32 stars 5 forks source link

Improve errors in the Focus macro #22

Closed kenbot closed 2 years ago

kenbot commented 3 years ago
propensive commented 3 years ago

Yes, have a look at https://github.com/propensive/probably :)

kenbot commented 3 years ago

Thanks Jon, I'll check it out!

propensive commented 3 years ago

You can have a look at the changes in this PR I made for Monocle for the sort of code changes required:

https://github.com/optics-dev/Monocle/pull/991

What I didn't make clear enough when I proposed this in Monocle was that you still need to invoke the macro (and hence the test code) from a call site somewhere. All Probably does is guarantees that the tests that get run also get reported at the end of the compilation.