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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Describe the bug When I set hs-source-dirs: . in the cabal file, modules don't find the cabal file correctly, specifically:
hs-source-dirs: .
Found .cabal file a/b/foo.cabal, but it did not mention a/b/Foo/Bar.hs
To Reproduce
-- a/b/foo.cabal library exposed-modules: Foo.Bar hs-source-dirs: . default-extensions: ImportQualifiedPost
-- a/b/Foo/Bar.hs module Foo.Bar where import Data.List qualified as List
Expected behavior Should find the appropriate cabal file
Environment
Additional context Problem seems to be here:
ormolu/src/Ormolu/Utils/Cabal.hs
Lines 171 to 175 in 5e66897
Where the final path should be normalized:
>>> "foo" </> "." </> "A.hs" "foo/./A.hs
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
When I set
hs-source-dirs: .
in the cabal file, modules don't find the cabal file correctly, specifically:To Reproduce
Expected behavior
Should find the appropriate cabal file
Environment
Additional context
Problem seems to be here:
ormolu/src/Ormolu/Utils/Cabal.hs
Lines 171 to 175 in 5e66897
Where the final path should be normalized:
The text was updated successfully, but these errors were encountered: