Skip to content

Commit

Permalink
Modernize the cabal file (#1097)
Browse files Browse the repository at this point in the history
* Set cabal-version to 2.2
* Set license to the right SPDX identifier
* Drop old -fwarn flags which are included in -Wall (since GHC 9.2)
* Move changelog.md to extra-doc-files
* Add homepage
* Tweak source repo location
  • Loading branch information
meooow25 authored Jan 25, 2025
1 parent bb1ec48 commit 16fa64e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion containers-tests/containers-tests.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tested-with:

source-repository head
type: git
location: http://github.com/haskell/containers.git
location: https://github.com/haskell/containers

common deps
build-depends:
Expand Down
12 changes: 7 additions & 5 deletions containers/containers.cabal
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
cabal-version: 2.2
name: containers
version: 0.7
license: BSD3
license: BSD-3-Clause
license-file: LICENSE
maintainer: [email protected]
homepage: https://github.com/haskell/containers
bug-reports: https://github.com/haskell/containers/issues
synopsis: Assorted concrete container types
category: Data Structures
Expand All @@ -20,10 +22,10 @@ description:
remains valid even if structures are shared.

build-type: Simple
cabal-version: >=1.10
extra-doc-files:
changelog.md
extra-source-files:
include/containers.h
changelog.md
mkappend.hs

tested-with:
Expand All @@ -32,15 +34,15 @@ tested-with:

source-repository head
type: git
location: http://github.com/haskell/containers.git
location: https://github.com/haskell/containers

Library
default-language: Haskell2010
build-depends: base >= 4.10 && < 5, array >= 0.4.0.0, deepseq >= 1.2 && < 1.6
if impl(ghc)
build-depends: template-haskell
hs-source-dirs: src
ghc-options: -O2 -Wall -fwarn-incomplete-uni-patterns -fwarn-incomplete-record-updates
ghc-options: -O2 -Wall

other-extensions: CPP, BangPatterns

Expand Down

0 comments on commit 16fa64e

Please sign in to comment.