Put common parts of the project inside common
stanza #246
Closed
Description
We have several things inside our project that can be put inside common
stanza in .cabal
file. This will decrease the size of generated .cabal
file significantly by removing duplication and will help people to learn new cabal
features. Unfortunately, this is available only for cabal-2.4
. But looks like stack
already supports this cabal version, so there shouldn't be any major problems (though, this should be verified).
Inspired by the following cabal
issue:
What we can put inside common
stanza:
default-language: Haskell2010
build-depends:
—base
orbase-noprelude
with version- Alternative prelude library if used
- Default warnings
- Default extensions