Skip to content

Commit

Permalink
build: Add package bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
sgillespie committed Mar 26, 2024
1 parent 9a8ce2f commit 73e791d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 45 deletions.
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
packages: ./*.cabal

index-state: 2023-07-18T15:00:46Z
index-state: 2024-03-24T23:16:24Z

tests: True
test-show-details: direct
81 changes: 37 additions & 44 deletions gibberish.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ data-files:

common common-options
build-depends:
base >=4.14 && <5,
containers,
mtl,
text,
text-show,
transformers >= 0.6
base >=4.16 && <4.20,
containers ^>=0.6,
mtl ^>=2.3,
text >=1.2 && <2.2,
text-show ^>=3.10,
transformers ^>=0.6.1
ghc-options:
-Wall
-Wcompat
Expand Down Expand Up @@ -57,37 +57,31 @@ common common-options
common common-exe
import: common-options
build-depends:
base,
gibberish,
aeson,
aeson-pretty,
bytestring,
optparse-applicative,
random
aeson ^>=2.2,
aeson-pretty ^>=0.8.10,
bytestring >=0.11 && <0.13,
optparse-applicative ^>=0.18.1,
random ^>=1.2
hs-source-dirs: app

common common-test
import: common-options
build-depends:
base,
gibberish:{gibberish,testlib},
MonadRandom,
QuickCheck,
aeson,
aeson-pretty,
bytestring,
filepath,
hedgehog,
hedgehog,
hspec,
hspec-hedgehog,
proctest,
random,
tasty,
tasty-golden,
tasty-hedgehog,
tasty-quickcheck,
tasty-th >= 0.1.7,
gibberish:{gibberish, testlib},
MonadRandom ^>=0.6,
aeson ^>=2.2,
aeson-pretty ^>=0.8.10,
bytestring >=0.11 && <0.13,
filepath ^>=1.4,
hedgehog ^>=1.4,
hspec ^>=2.11,
hspec-hedgehog ^>=0.1.1,
random ^>=1.2,
tasty ^>=1.5,
tasty-golden ^>=2.3.5,
tasty-hedgehog ^>=1.4.0,
tasty-th ^>=0.1.7
hs-source-dirs: test

library
Expand All @@ -105,12 +99,12 @@ library
other-modules:
Paths_gibberish
build-depends:
MonadRandom,
aeson,
deepseq,
directory,
filepath,
random
MonadRandom ^>=0.6,
aeson ^>=2.2,
deepseq >=1.4 && <1.6,
directory ^>=1.3,
filepath ^>=1.4,
random ^>=1.2
hs-source-dirs: src

executable gibber
Expand All @@ -132,10 +126,9 @@ library testlib
exposed-modules:
Test.Gibberish.Gen
build-depends:
base >= 4.14 && < 5,
gibberish,
MonadRandom,
hedgehog
MonadRandom ^>=0.6,
hedgehog ^>=1.4
hs-source-dirs:
testlib

Expand Down Expand Up @@ -171,10 +164,10 @@ benchmark main
import: common-options
build-depends:
gibberish,
aeson,
criterion,
deepseq,
filepath
aeson ^>=2.2,
criterion ^>=1.6,
deepseq >=1.4 && <1.6,
filepath ^>=1.4

type: exitcode-stdio-1.0
main-is: Main.hs
Expand Down

0 comments on commit 73e791d

Please sign in to comment.