This repository has been archived by the owner on Aug 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhsansible.cabal
187 lines (174 loc) · 6.12 KB
/
hsansible.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
name: hsansible
version: 0.4.0.0
synopsis: Simple framework for building Ansible modules.
description:
Ansible <http://ansible.cc> is a software for deploying, managing, and
orchestrating computer systems over SSH. It has a modular design that allows
users to create modules for various parts of the system. This package
provides a framework that allows building Ansible modules in Haskell.
license: BSD3
license-file: LICENSE
author: Peter Trško
maintainer: [email protected]
copyright: (c) 2013, 2015, Peter Trško
homepage: https://github.com/trskop/hsansible
bug-reports: https://github.com/trskop/hsansible/issues
stability: experimental
category: SystemAdministration
build-type: Simple
cabal-version: >=1.8
data-files:
data/ansible-module-template.py
, data/hsansible-test-module.yaml
extra-source-files:
ChangeLog.md
, README.md
, doc/make-ansible-module.1.md
, doc/test-ansible-module.1.md
, examples/cabal.hs
, examples/playbooks/install-hsansible-on-debian-and-ubuntu.yaml
, tools/generate-man-pages.sh
, tools/sandbox-install.sh
flag pedantic
description:
Pass additional flags, including -Werror, to GHC during compilation.
default: False
flag test-module
description: Build Ansible test module.
default: False
library
hs-source-dirs: src
exposed-modules:
Ansible
, Ansible.Arguments
, Ansible.Failure
-- other-modules:
build-depends:
aeson >= 0.4.0.0
-- ^ Function decode was introduced in version 0.4.0.0.
, attoparsec >= 0.10.0.0
-- ^ Same constraint as aeson has (last checked version of aeson was
-- 0.6.1.0).
, base >= 4.5 && < 5
, bytestring
, case-insensitive == 0.4.* || == 1.*
, text >= 0.11.1.1 && < 1.3
-- ^ Version 0.11.1.0 had a build failure.
, transformers > 0.4.0.0
-- ^ Depending on MonadIO which changed it's module name in 0.2.0.0
ghc-options: -Wall
if impl(ghc >= 6.8)
ghc-options: -fwarn-tabs
if flag(pedantic)
ghc-options: -Werror
executable make-ansible-module
hs-source-dirs: src
main-is: make-ansible-module.hs
other-modules: Paths_hsansible
build-depends:
base >= 4.5 && < 5
, base64-bytestring == 0.1.* || == 1.0.*
-- ^ Used interface of base64-bytestring hadn't changed since the start.
, bytestring
, HStringTemplate == 0.7.* || == 0.8.*
ghc-options: -Wall
if impl(ghc >= 6.8)
ghc-options: -fwarn-tabs
if flag(pedantic)
ghc-options: -Werror
executable test-ansible-module
hs-source-dirs: src
main-is: test-ansible-module.hs
other-modules: Paths_hsansible
build-depends:
base >= 4.5 && < 5
, directory >= 1.1.0.2 && < 2
-- ^ Should work with earlier versions, but those have lower upper bound on
-- filepath and that may be inconsistent with already installed version of
-- filepath.
, filepath >= 1.1 && < 1.5
-- ^ Same boundaries as directory and process packages have.
, process >= 1.1.0.2 && < 1.7
-- ^ Lower bound choosen to allow directory package of version 1.2.
, temporary >= 1.1
-- ^ First version that define withSystemTempDirectory function.
ghc-options: -Wall
if impl(ghc >= 6.8)
ghc-options: -fwarn-tabs
if flag(pedantic)
ghc-options: -Werror
executable hsansible-test-module
if !flag(test-module)
buildable: False
hs-source-dirs: src
main-is: hsansible-test-module.hs
other-modules:
Ansible
, Ansible.Arguments
, Ansible.Failure
build-depends:
aeson >= 0.4.0.0
-- ^ Function decode was introduced in version 0.4.0.0.
, attoparsec >= 0.10.0.0
-- ^ Same constraint as aeson has (last checked version of aeson was
-- 0.6.1.0).
, base >= 4.5 && < 5
, bytestring
, case-insensitive == 0.4.* || == 1.*
, text >= 0.11.1.1 && < 1.3
-- ^ Version 0.11.1.0 had a build failure.
, transformers > 0.4.0.0
-- ^ Depending on MonadIO which changed it's module name in 0.2.0.0
ghc-options: -Wall
if impl(ghc >= 6.8)
ghc-options: -fwarn-tabs
if flag(pedantic)
ghc-options: -Werror
test-suite hsansible-unit-tests
hs-source-dirs: src, test
type: exitcode-stdio-1.0
main-is: unit-tests-main.hs
other-modules:
Ansible
, Ansible.Arguments
, Ansible.Failure
, TestCase
, TestCase.Ansible.Arguments
build-depends:
-- Copy of library dependencies:
aeson >= 0.4.0.0
-- ^ Function decode was introduced in version 0.4.0.0.
, attoparsec >= 0.10.0.0
-- ^ Same constraint as aeson has (last checked version of aeson was
-- 0.6.1.0).
, base >= 4.5 && < 5
, bytestring
, case-insensitive == 0.4.* || == 1.*
, text >= 0.11.1.1 && < 1.3
-- ^ Version 0.11.1.0 had a build failure.
, transformers > 0.4.0.0
-- ^ Depending on MonadIO which changed it's module name in 0.2.0.0
-- Additional dependencies:
, HUnit >= 1.2 && < 2
-- ^ Same constraints as test-framework-hunit
, QuickCheck >= 2.4 && < 3
-- ^ Same constraints as test-framework-quickcheck2
, test-framework >= 0.8 && < 1
-- ^ Same constraint as test-framework-skip, other packages that
-- depend on it have less restrictive bounds.
, test-framework-hunit >= 0.2.6
-- ^ Lower versions have more restrictive bounds on test-framework.
, test-framework-quickcheck2 >= 0.3
-- ^ There were changes in QuickCheck bounds in 0.2 branch and last one
-- on it had a compilation failure on Hackage.
-- Not required right now:
-- , test-framework-skip == 1.*
-- ^ Currently there is only version 1.0.
ghc-options: -Wall
if impl(ghc >= 6.8)
ghc-options: -fwarn-tabs
if flag(pedantic)
ghc-options: -Werror
source-repository head
type: git
location: git://github.com/trskop/hsansible.git