Skip to content

Commit

Permalink
Use set syntax in dependency lists
Browse files Browse the repository at this point in the history
  • Loading branch information
pgujjula committed Apr 11, 2024
1 parent ad22fbb commit 54abc58
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
14 changes: 8 additions & 6 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# SPDX-FileCopyrightText: Copyright Preetham Gujjula
# SPDX-License-Identifier: BSD-3-Clause
verbatim:
cabal-version: 3.6
name: primecount
version: 0.1.0.1
synopsis: Bindings to the primecount library
Expand All @@ -13,7 +15,7 @@ category: Math, Number Theory
description: Please see the README on Github at
<https://github.com/pgujjula/primecount-haskell#readme>

tested-with: GHC ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.5 || ==9.6.2
tested-with: GHC == {8.10.7, 9.0.2, 9.2.8, 9.4.5, 9.6.2}
extra-source-files:
- README.md
- ChangeLog.md
Expand All @@ -34,7 +36,7 @@ default-extensions:
- ScopedTypeVariables

dependencies:
- base >= 4.7 && < 5.0
- base ^>= {4.7, 4.8, 4.9, 4.10, 4.11, 4.12, 4.13, 4.14, 4.15, 4.16, 4.17, 4.18, 4.19}

library:
source-dirs: src
Expand All @@ -53,9 +55,9 @@ tests:
main: Main.hs
dependencies:
- primecount
- silently >= 1.2 && < 1.3
- tasty >= 1.4 && < 1.6
- tasty-hunit >= 0.10 && < 0.11
- silently ^>= {1.2}
- tasty ^>= {1.4, 1.5}
- tasty-hunit ^>= {0.10}
other-modules:
- Test.Math.NumberTheory.Prime.Count

Expand All @@ -65,7 +67,7 @@ benchmarks:
main: Main.hs
dependencies:
- primecount
- tasty-bench >= 0.3 && < 0.4
- tasty-bench ^>= {0.3}
when:
- condition: false
other-modules: Paths_primecount
12 changes: 6 additions & 6 deletions primecount.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: 2.2
cabal-version: 3.6

-- This file has been generated from package.yaml by hpack version 0.36.0.
--
Expand All @@ -18,7 +18,7 @@ license: BSD-3-Clause
license-file: LICENSES/BSD-3-Clause.txt
build-type: Simple
tested-with:
GHC ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.5 || ==9.6.2
GHC == {8.10.7, 9.0.2, 9.2.8, 9.4.5, 9.6.2}
extra-source-files:
README.md
ChangeLog.md
Expand All @@ -39,7 +39,7 @@ library
extra-libraries:
primecount
build-depends:
base >=4.7 && <5.0
base >=4.7 && <4.8 || >=4.8 && <4.9 || >=4.9 && <4.10 || >=4.10 && <4.11 || >=4.11 && <4.12 || >=4.12 && <4.13 || >=4.13 && <4.14 || >=4.14 && <4.15 || >=4.15 && <4.16 || >=4.16 && <4.17 || >=4.17 && <4.18 || >=4.18 && <4.19 || >=4.19 && <4.20
default-language: Haskell2010

test-suite primecount-tests
Expand All @@ -53,10 +53,10 @@ test-suite primecount-tests
ScopedTypeVariables
ghc-options: -Wall -Wcompat -Wmissing-export-lists -Wincomplete-record-updates -Wpartial-fields -Wmissing-home-modules -Werror=missing-home-modules -Widentities -Wredundant-constraints -Wmissing-export-lists
build-depends:
base >=4.7 && <5.0
base >=4.7 && <4.8 || >=4.8 && <4.9 || >=4.9 && <4.10 || >=4.10 && <4.11 || >=4.11 && <4.12 || >=4.12 && <4.13 || >=4.13 && <4.14 || >=4.14 && <4.15 || >=4.15 && <4.16 || >=4.16 && <4.17 || >=4.17 && <4.18 || >=4.18 && <4.19 || >=4.19 && <4.20
, primecount
, silently ==1.2.*
, tasty >=1.4 && <1.6
, tasty >=1.4 && <1.5 || >=1.5 && <1.6
, tasty-hunit ==0.10.*
default-language: Haskell2010

Expand All @@ -69,7 +69,7 @@ benchmark primecount-bench
ScopedTypeVariables
ghc-options: -Wall -Wcompat -Wmissing-export-lists -Wincomplete-record-updates -Wpartial-fields -Wmissing-home-modules -Werror=missing-home-modules -Widentities -Wredundant-constraints -Wmissing-export-lists
build-depends:
base >=4.7 && <5.0
base >=4.7 && <4.8 || >=4.8 && <4.9 || >=4.9 && <4.10 || >=4.10 && <4.11 || >=4.11 && <4.12 || >=4.12 && <4.13 || >=4.13 && <4.14 || >=4.14 && <4.15 || >=4.15 && <4.16 || >=4.16 && <4.17 || >=4.17 && <4.18 || >=4.18 && <4.19 || >=4.19 && <4.20
, primecount
, tasty-bench ==0.3.*
default-language: Haskell2010

0 comments on commit 54abc58

Please sign in to comment.