Skip to content

Error message for missing signatures is unclear #7192

Description

@hseg

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions