Skip to content

Commit

Permalink
Updated flag name and adjusted bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdoc committed Nov 6, 2021
1 parent b1a28ee commit c7333a1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
8 changes: 5 additions & 3 deletions example-client/example-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ flag use-network-uri
description: Are we using network-uri?
manual: False

flag use-cabal-syntax
flag Cabal-syntax
description: Are we using Cabal-syntax?
manual: False
default: True

executable example-client
main-is: Main.hs
Expand Down Expand Up @@ -52,7 +53,8 @@ executable example-client
else
build-depends: network >= 2.5 && < 2.6

if flag(use-cabal-syntax)
if flag(Cabal-syntax)
build-depends: Cabal-syntax >= 3.7 && < 3.9
else
build-depends: Cabal >= 1.12 && < 3.7
build-depends: Cabal >= 1.12 && < 3.7,
Cabal-syntax < 3.7
8 changes: 5 additions & 3 deletions hackage-repo-tool/hackage-repo-tool.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ flag use-old-time
description: Are we using @old-time@?
manual: False

flag use-cabal-syntax
flag Cabal-syntax
description: Are we using Cabal-syntax?
manual: False
default: True

executable hackage-repo-tool
hs-source-dirs: src
Expand Down Expand Up @@ -85,12 +86,13 @@ executable hackage-repo-tool
else
build-depends: network >= 2.5 && < 2.6

if flag(use-cabal-syntax)
if flag(Cabal-syntax)
build-depends: Cabal-syntax >= 3.7 && < 3.9
else
build-depends: Cabal >= 1.14 && < 1.26
|| >= 2.0 && < 2.6
|| >= 3.0 && < 3.7
|| >= 3.0 && < 3.7,
Cabal-syntax < 3.7


default-language: Haskell2010
Expand Down
10 changes: 6 additions & 4 deletions hackage-security/hackage-security.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ flag use-network-uri
description: Are we using @network-uri@?
manual: False

flag use-cabal-syntax
flag Cabal-syntax
description: Are we using Cabal-syntax?
manual: False
default: True

flag old-directory
description: Use @directory@ < 1.2 and @old-time@
Expand Down Expand Up @@ -150,12 +151,13 @@ library
else
build-depends: base >= 4.10

if flag(use-cabal-syntax)
if flag(Cabal-syntax)
build-depends: Cabal-syntax >= 3.7 && < 3.9
else
build-depends: Cabal >= 1.14 && < 1.26
|| >= 2.0 && < 2.6
|| >= 3.0 && < 3.7
|| >= 3.0 && < 3.7,
Cabal-syntax < 3.7

hs-source-dirs: src
default-language: Haskell2010
Expand Down Expand Up @@ -269,7 +271,7 @@ test-suite TestSuite
else
build-depends: network

if flag(use-cabal-syntax)
if flag(Cabal-syntax)
build-depends: Cabal-syntax

-- dependencies exclusive to test-suite
Expand Down

0 comments on commit c7333a1

Please sign in to comment.