Consider the following snippet:
library test
hs-source-dirs: test
signatures: Signature
if instead, the user mistakenly created a signature test/SigTypo.hsig, cabal will give the uninformative error
cabal: Error: Could not find module: Signature with any suffix:
["gc","chs","hsc","x","y","ly","cpphs","hs","lhs","hsig","lhsig"]. If the
module is autogenerated it should be added to 'autogen-modules'.
Surely some more information could be given? Compare this to the error messages for missing main-is files:
cabal-3.2.0.0: can't find source for ExecTypo in dir
cabal: repl failed for exe:runner from project-0.1.0.0.
and for missing modules:
cabal-3.2.0.0: can't find source for LibTypo in dir,
Also, some highlighting to make the errors pop out from the informational output would be nice.
Consider the following snippet:
if instead, the user mistakenly created a signature
test/SigTypo.hsig, cabal will give the uninformative errorSurely some more information could be given? Compare this to the error messages for missing
main-isfiles:and for missing modules:
Also, some highlighting to make the errors pop out from the informational output would be nice.