/
package.yaml
143 lines (137 loc) · 3.04 KB
/
package.yaml
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
name: yaml
version: 0.10.2.0
synopsis: Support for parsing and rendering YAML documents.
description: README and API documentation are available at <https://www.stackage.org/package/yaml>
category: Data
author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
maintainer: Michael Snoyman <michael@snoyman.com>
license: BSD3
github: snoyberg/yaml
stability: stable
extra-source-files:
- c/helper.h
- libyaml/yaml_private.h
- libyaml/yaml.h
- libyaml/LICENSE
- test/largest-string.yaml
- test/json.yaml
- test/resources/foo.yaml
- test/resources/bar.yaml
- test/resources/baz.yaml
- test/resources/accent/foo.yaml
- test/resources/loop/foo.yaml
- test/resources/loop/bar.yaml
- test/resources/empty.yaml
- test/resources/empty2.yaml
- README.md
- ChangeLog.md
flags:
no-exe:
description: don't install the yaml2json or json2yaml executables
manual: false
default: true
no-examples:
description: don't build the examples
manual: false
default: true
system-libyaml:
description: Use the system-wide libyaml instead of the bundled copy
manual: false
default: false
no-unicode:
description: Don't enable unicode output. Instead, unicode characters will be escaped.
manual: false
default: false
dependencies:
- base >=4.9.1 && <5 # GHC 8.0.2 and later
- bytestring >=0.9.1.4
- transformers >=0.1
- mtl
- conduit >=1.2.8 && <1.4
- resourcet >=0.3 && <1.3
- aeson >=0.11
- containers
- unordered-containers
- vector
- text
- attoparsec >=0.11.3.0
- scientific
- filepath
- directory
- template-haskell
when:
condition: "!impl(ghc >= 8.0)"
dependencies:
- semigroups
library:
c-sources: c/helper.c
other-extensions:
- LambdaCase
ghc-options: -Wall
include-dirs:
- c
source-dirs: src
when:
- condition: flag(no-unicode)
cpp-options: -D__NO_UNICODE__
- condition: ! '!(flag(system-libyaml))'
then:
c-sources:
- libyaml/api.c
- libyaml/dumper.c
- libyaml/emitter.c
- libyaml/loader.c
- libyaml/parser.c
- libyaml/reader.c
- libyaml/scanner.c
- libyaml/writer.c
include-dirs:
- libyaml
else:
extra-libraries: yaml
- condition: os(windows)
cpp-options: -DWINDOWS
executables:
json2yaml:
main: json2yaml.hs
source-dirs: exe
dependencies:
- yaml
when:
- condition: flag(no-exe)
buildable: false
yaml2json:
main: yaml2json.hs
source-dirs: exe
dependencies:
- yaml
when:
- condition: flag(no-exe)
buildable: false
examples:
main: Main.hs
source-dirs: examples
ghc-options: -Wall
when:
- condition: flag(no-examples)
then:
buildable: false
else:
dependencies:
- raw-strings-qq
- yaml
tests:
spec:
main: Spec.hs
source-dirs: test
ghc-options: -Wall "-with-rtsopts=-K1K"
cpp-options: -DTEST
dependencies:
- hspec >=1.3
- HUnit
- yaml
- directory
- mockery
- base-compat
- temporary
- raw-strings-qq