Open agentm opened 7 years ago
Makes sense. We should probably make runCpphs
from https://github.com/ndmitchell/hlint/blob/4e669a7cd2a535212a04e0102373e53a24c384b3/src/HSE/All.hs#L53 return Either ParseError String
, and catch any exceptions thrown out of cpphs
.
In this source file, we have:
The version is passed in via cabal configuration so that the versioning is centralized. However, hlint actually gives up because of this:
In this case, I can tack on
--cpp-define PROJECTM36_VERSION=0.1
, but it would be nice if this looked less like a crash and included a tip on how to resolve it.