This PR changes CompilerArgs to take a Version, so we can check that we can get proper VersionOrd and check compiler versions before deciding where to try to parse the compiler errors from, and propagates the changes needed to make that typecheck. It also adds tests to catch this case.
While working on #255, @thomashoneyman noticed some log lines reporting unknown compiler errors, like
It turns out that starting in 0.14.0, compiler errors were switched to being reported to stdout, whereas they used to be in stderr: https://github.com/purescript/purescript/releases/tag/v0.14.0
This PR changes
CompilerArgs
to take aVersion
, so we can check that we can get properVersion
Ord
and check compiler versions before deciding where to try to parse the compiler errors from, and propagates the changes needed to make that typecheck. It also adds tests to catch this case.