11 Jan
2011
11 Jan
'11
6:22 a.m.
Peter Simons schrieb:
Arguably, the choice to include the package name in the name of the Cabal file is inconsistent with that decision, and that inconsistency is confusing.
Actually, the name does not have to be pkgname.cabal. You can choose any name with extension .cabal. Cabal complains about multiple files with that extension. So you could in principle call it description.cabal consistently in all your packages.
If you look at a random package, then "foo.cabal" feels like a file that's specific to this package, but "Setup.hs" feels like a file that is generic. In fact, both are specific to this package, even though the name of the latter file doesn't make that clear.