-
Notifications
You must be signed in to change notification settings - Fork 2
/
cabal-add.cabal
87 lines (77 loc) · 2.11 KB
/
cabal-add.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
cabal-version: 3.0
name: cabal-add
version: 0.1
license: BSD-3-Clause
license-file: LICENSE
maintainer: andrew.lelechenko@gmail.com
author: Bodigrim
tested-with: ghc ==9.8.1 ghc ==9.6.3 ghc ==9.4.7 ghc ==9.2.8
synopsis: Extend build-depends from the command line
description:
Extend build-depends from the command line.
Allows to specify Cabal file, target component
and multiple dependencies with version bounds.
It works on any sectioned Cabal file,
supports stanzas and conditional blocks,
and preserves original formatting.
category: Development
build-type: Simple
extra-doc-files:
README.md
CHANGELOG.md
source-repository head
type: git
location: https://github.com/Bodigrim/cabal-add.git
flag cabal-syntax
default: False
library
exposed-modules: Distribution.Client.Add
hs-source-dirs: src
default-language: GHC2021
ghc-options: -Wall
build-depends:
base <5,
bytestring <0.13,
Cabal >=3.6 && <3.13,
containers <0.8,
mtl <2.4
if flag(cabal-syntax)
build-depends:
Cabal-syntax >=3.8 && <3.13,
Cabal >=3.8
else
build-depends:
Cabal-syntax <3.7,
Cabal <3.7
executable cabal-add
main-is: Main.hs
hs-source-dirs: app
default-language: GHC2021
ghc-options: -Wall
build-depends:
base <5,
bytestring <0.13,
cabal-add,
cabal-install-parsers >=0.4.1 && <0.7,
directory <1.4,
optparse-applicative >=0.16 && <0.19,
process <1.7
if flag(cabal-syntax)
build-depends: Cabal-syntax
else
build-depends: Cabal
test-suite cabal-add-tests
type: exitcode-stdio-1.0
main-is: Main.hs
build-tool-depends: cabal-add:cabal-add
hs-source-dirs: tests
default-language: GHC2021
ghc-options: -Wall
build-depends:
base <5,
Diff >=0.4,
directory,
process,
string-qq,
tasty,
temporary