Cabal: --cabal-file target requirements: why?

As far as I can tell, the --cabal-file FILE flag requires that FILE resolve to a non-hidden (ie, no leading dot) file with the extension .cabal in the current directory.

Why are there any requirements at all on the location or name of the cabal file? The user is explicitly specifying a file so I would think it would accept anything… you may ask why this matters: I would like to do some tooling that auto-generates the cabal file into a hidden directory. Thanks!

1 Like

I recommend filing an issue on the cabal issue tracker.

2 Likes

--cabal-file is slated for removal: –cabal-file needs to go.

2 Likes