Skip to content

Put common parts of the project inside common stanza #246

Closed
@chshersh

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:

  1. default-language: Haskell2010
  2. build-depends:base or base-noprelude with version
  3. Alternative prelude library if used
  4. Default warnings
  5. Default extensions

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions