Skip to content

Commit

Permalink
Merge pull request #8 from bellroy/refactor-cabal
Browse files Browse the repository at this point in the history
refactor(cabal): reuse deps stanza in test
  • Loading branch information
lrworth authored Oct 20, 2023
2 parents f91830d + 72324c7 commit 67b0770
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions timeline.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,12 @@ source-repository head

common deps
build-depends:
, base >=4.14.3 && <4.19
, containers >=0.6.5 && <0.7
, hedgehog >=1.1 && <1.5
, indexed-traversable >=0.1.2 && <0.2
, semigroupoids >=5.3.7 && <6.1
, template-haskell >=2.16.0 && <2.21
, text ^>= 1.2.4.1 || ^>=2.0 && <2.2
, th-compat >=0.1.4 && <0.2
, time >=1.9.3 && <1.13
, base >=4.14.3 && <4.19
, containers >=0.6.5 && <0.7
, hedgehog >=1.1 && <1.5
, indexed-traversable >=0.1.2 && <0.2
, text ^>=1.2.4.1 || ^>=2.0
, time >=1.9.3 && <1.13

library
import: deps
Expand All @@ -46,26 +43,25 @@ library

default-language: Haskell2010
ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-unused-imports
build-depends:
, semigroupoids >=5.3.7 && <6.1
, template-haskell >=2.16.0 && <2.21
, th-compat >=0.1.4 && <0.2

test-suite tests
import: deps
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
other-modules: Data.TimelineTest
default-language: Haskell2010
build-tool-depends: tasty-discover:tasty-discover >=4.2 && <5.1
build-depends:
, base >=4.14.3 && <4.19
, bytestring >=0.10 && <0.13
, containers >=0.6.5 && <0.7
, hashable ^>=1.4.2.0
, hedgehog >=1.1 && <1.5
, indexed-traversable ^>=0.1.2
, tasty ^>=1.4.3
, tasty-golden ^>=2.3.5
, tasty-hedgehog >=1.2.0.0
, tasty-hunit ^>=0.10.0.3
, text ^>= 1.2.4.1 || ^>=2.0 && <2.2
, time >=1.9.3 && <1.13
, bytestring >=0.10 && <0.13
, hashable ^>=1.4.2.0
, tasty ^>=1.4.3
, tasty-golden ^>=2.3.5
, tasty-hedgehog >=1.2.0.0
, tasty-hunit ^>=0.10.0.3
, timeline
, transformers >=0.5.6.2 && <0.6.2.0
, transformers >=0.5.6.2 && <0.6.2.0

0 comments on commit 67b0770

Please sign in to comment.