on de41665 help sign in
typeable/yaml/yaml.cabal
168 lines 5.1 kB history raw
1name: yaml
2version: 0.8.21.1
3license: BSD3
4license-file: LICENSE
5author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
6maintainer: Michael Snoyman <michael@snoyman.com>
7synopsis: Support for parsing and rendering YAML documents.
8description: Please see the README.md file.
9category: Web
10stability: stable
11cabal-version: >= 1.8
12build-type: Simple
13homepage: http://github.com/snoyberg/yaml/
14extra-source-files: c/helper.h
15 libyaml/yaml_private.h
16 libyaml/yaml.h
17 libyaml/LICENSE
18 test/largest-string.yaml
19 test/json.yaml
20 test/resources/foo.yaml
21 test/resources/bar.yaml
22 test/resources/baz.yaml
23 test/resources/accent/foo.yaml
24 test/resources/loop/foo.yaml
25 test/resources/loop/bar.yaml
26 test/resources/empty.yaml
27 test/resources/empty2.yaml
28 README.md
29 ChangeLog.md
31flag no-exe
32 description: don't install the yaml2json or json2yaml executables
33 default: False
35flag no-examples
36 description: don't build the examples
37 default: True
39flag system-libyaml
40 description: Use the system-wide libyaml instead of the bundled copy
41 default: False
43flag no-unicode
44 description: Don't enable unicode output. Instead, unicode characters will be escaped.
45 default: False
47library
48 build-depends: base >= 4 && < 5
49 , transformers >= 0.1
50 , bytestring >= 0.9.1.4
51 , conduit >= 1.1.0 && < 1.3
52 , resourcet >= 0.3 && < 1.2
53 , aeson >= 0.7
54 , containers
55 , unordered-containers
56 , vector
57 , text
58 , attoparsec >= 0.11.3.0
59 , scientific
60 , filepath
61 , directory
62 , enclosed-exceptions
63 , semigroups
64 exposed-modules: Text.Libyaml
65 Data.Yaml
66 Data.Yaml.Aeson
67 Data.Yaml.Builder
68 Data.Yaml.Config
69 Data.Yaml.Include
70 Data.Yaml.Parser
71 Data.Yaml.Pretty
72 if impl(ghc >= 7.8.1)
73 build-depends: template-haskell >= 2.8.0.0
74 exposed-modules: Data.Yaml.TH
75 other-modules:
76 Data.Yaml.Internal
77 ghc-options: -Wall
78 c-sources: c/helper.c
79 include-dirs: c
80 if flag(no-unicode)
81 cpp-options: -D__NO_UNICODE__
82 if flag(system-libyaml)
83 pkgconfig-depends: yaml-0.1
84 else
85 c-sources: libyaml/api.c,
86 libyaml/dumper.c,
87 libyaml/emitter.c,
88 libyaml/loader.c,
89 libyaml/parser.c,
90 libyaml/reader.c,
91 libyaml/scanner.c,
92 libyaml/writer.c
93 include-dirs: libyaml
94 if os(windows)
95 cpp-options: -DWINDOWS
97executable yaml2json
98 if flag(no-exe)
99 Buildable: False
100 else
101 Buildable: True
103 hs-source-dirs: exe
104 main-is: yaml2json.hs
105 build-depends: base >= 4 && < 5
106 , yaml
107 , bytestring >= 0.9.1.4
108 , aeson >= 0.7
110executable json2yaml
111 if flag(no-exe)
112 Buildable: False
113 else
114 Buildable: True
116 hs-source-dirs: exe
117 main-is: json2yaml.hs
118 build-depends: base >= 4 && < 5
119 , yaml
120 , bytestring >= 0.9.1.4
121 , aeson >= 0.7
124test-suite spec
125 type: exitcode-stdio-1.0
126 hs-source-dirs: test
127 main-is: Spec.hs
128 other-modules: Data.YamlSpec
129 Data.Yaml.IncludeSpec
130 cpp-options: -DTEST
131 build-depends: hspec >= 1.3
132 , HUnit
133 , base >= 4 && < 5
134 , transformers >= 0.1
135 , bytestring >= 0.9.1.4
136 , conduit
137 , yaml
138 , text
139 , aeson >= 0.7
140 , unordered-containers
141 , directory
142 , vector
143 , resourcet
144 , aeson-qq
145 , mockery
146 , base-compat
147 , temporary
148 ghc-options: -Wall
150executable examples
151 if flag(no-examples)
152 Buildable: False
153 else
154 Buildable: True
155 build-depends: base
156 , bytestring
157 , raw-strings-qq
158 , text
159 , yaml
160 hs-source-dirs: examples
161 main-is: Main.hs
162 other-modules: Config
163 Simple
164 ghc-options: -Wall
166source-repository head
167 type: git
168 location: https://github.com/snoyberg/yaml