We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using hspc-discovery and the file Spec.hs has the main function and is not a module. cabal-gild adds Spec to other-modules causing the error
cabal-gild
Spec
other-modules
tests/Spec.hs:3:8: error: File name does not match module name: Saw: _Main_ Expected: _Spec_
Non-modules should not be added to other modules especially if the file is listed with main-is: Spec.hs
main-is: Spec.hs
The text was updated successfully, but these errors were encountered:
Can you exclude the Spec module from Gild's discovery?
-- cabal-gild: discover tests --exclude=tests/Spec.hs
Sorry, something went wrong.
Thanks for the tip of using the exact path.
I had tried exclude with glob patterns as specified in the README but the patterns do not seem to work.
-- cabal-gild: discover tests --exclude=**/Spec.hs -- cabal-gild: discover tests --exclude=*/Spec.hs
Which version are you using? Support for excluding patterns was added in Gild 1.3.2.0.
1.3.1.1
No branches or pull requests
I am using hspc-discovery and the file Spec.hs has the main function and is not a module.
cabal-gild
addsSpec
toother-modules
causing the errorNon-modules should not be added to other modules especially if the file is listed with
main-is: Spec.hs
The text was updated successfully, but these errors were encountered: