on master help sign in
hpack-ify
commitfa585182d9d58cdf9ceb4b77f78037b4ba216a98 authorMichael Snoyman <michael@snoyman.com> dateMon 9 Jul 2018, 08:49 (8 years ago) parent2735b09
14 files changed+149−173
.gitignore+4 ChangeLog.md+7 package.yaml+138 Data/Yaml.hs → src/Data/Yaml.hs Data/Yaml/Aeson.hs → src/Data/Yaml/Aeson.hs Data/Yaml/Builder.hs → src/Data/Yaml/Builder.hs Data/Yaml/Config.hs → src/Data/Yaml/Config.hs Data/Yaml/Include.hs → src/Data/Yaml/Include.hs Data/Yaml/Internal.hs → src/Data/Yaml/Internal.hs Data/Yaml/Parser.hs → src/Data/Yaml/Parser.hs Data/Yaml/Pretty.hs → src/Data/Yaml/Pretty.hs Data/Yaml/TH.hs → src/Data/Yaml/TH.hs Text/Libyaml.hs → src/Text/Libyaml.hs yaml.cabal−173
.gitignore+4
@@ -5,3 +5,7 @@ cabal-dev/
55cabal.sandbox.config
66.stack-work/
77*~
8+yaml.cabal
9+/tarballs/
10+.dir-locals.el
11+*#
ChangeLog.md+7
@@ -1,3 +1,10 @@
1+# ChangeLog for yaml
2+
3+## Unreleased changes
4+
5+* hpackify
6+* src subdir
7+
18## 0.8.31.1
29
310* Add a workaround for a cabal bug [haskell-infra/hackage-trustees#165](https://github.com/haskell-infra/hackage-trustees/issues/165)
package.yamlnew file+138
@@ -0,0 +1,138 @@
1+name: yaml
2+version: 0.8.31.1
3+synopsis: Support for parsing and rendering YAML documents.
4+description: README and API documentation are available at <https://www.stackage.org/package/yaml>
5+category: Data
6+author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
7+maintainer: Michael Snoyman <michael@snoyman.com>
8+license: BSD3
9+github: snoyberg/yaml
10+stability: stable
11+
12+extra-source-files:
13+- c/helper.h
14+- libyaml/yaml_private.h
15+- libyaml/yaml.h
16+- libyaml/LICENSE
17+- test/largest-string.yaml
18+- test/json.yaml
19+- test/resources/foo.yaml
20+- test/resources/bar.yaml
21+- test/resources/baz.yaml
22+- test/resources/accent/foo.yaml
23+- test/resources/loop/foo.yaml
24+- test/resources/loop/bar.yaml
25+- test/resources/empty.yaml
26+- test/resources/empty2.yaml
27+- README.md
28+- ChangeLog.md
29+
30+flags:
31+ no-exe:
32+ description: don't install the yaml2json or json2yaml executables
33+ manual: false
34+ default: true
35+ no-examples:
36+ description: don't build the examples
37+ manual: false
38+ default: true
39+ system-libyaml:
40+ description: Use the system-wide libyaml instead of the bundled copy
41+ manual: false
42+ default: false
43+ no-unicode:
44+ description: Don't enable unicode output. Instead, unicode characters will be escaped.
45+ manual: false
46+ default: false
47+
48+dependencies:
49+- base >=4.9.1 && <5
50+- bytestring >=0.9.1.4
51+- transformers >=0.1
52+- conduit >=1.2.8 && <1.4
53+- resourcet >=0.3 && <1.3
54+- aeson >=0.11
55+- containers
56+- unordered-containers
57+- vector
58+- text
59+- attoparsec >=0.11.3.0
60+- scientific
61+- filepath
62+- directory
63+- semigroups
64+- template-haskell
65+
66+library:
67+ c-sources: c/helper.c
68+ other-extensions:
69+ - LambdaCase
70+ ghc-options: -Wall
71+ include-dirs:
72+ - c
73+ source-dirs: src
74+ when:
75+ - condition: impl(ghc <8.0.2)
76+ dependencies:
77+ - unsupported-ghc-version >1 && <1
78+ - condition: flag(no-unicode)
79+ cpp-options: -D__NO_UNICODE__
80+ - condition: ! '!(flag(system-libyaml))'
81+ c-sources:
82+ - libyaml/api.c
83+ - libyaml/dumper.c
84+ - libyaml/emitter.c
85+ - libyaml/loader.c
86+ - libyaml/parser.c
87+ - libyaml/reader.c
88+ - libyaml/scanner.c
89+ - libyaml/writer.c
90+ include-dirs:
91+ - libyaml
92+ - condition: os(windows)
93+ cpp-options: -DWINDOWS
94+
95+executables:
96+ json2yaml:
97+ main: json2yaml.hs
98+ source-dirs: exe
99+ dependencies:
100+ - yaml
101+ when:
102+ - condition: flag(no-exe)
103+ buildable: false
104+ yaml2json:
105+ main: yaml2json.hs
106+ source-dirs: exe
107+ dependencies:
108+ - yaml
109+ when:
110+ - condition: flag(no-exe)
111+ buildable: false
112+ examples:
113+ main: Main.hs
114+ source-dirs: examples
115+ ghc-options: -Wall
116+ when:
117+ - condition: flag(no-examples)
118+ then:
119+ buildable: false
120+ else:
121+ dependencies:
122+ - raw-strings-qq
123+ - yaml
124+
125+tests:
126+ spec:
127+ main: Spec.hs
128+ source-dirs: test
129+ ghc-options: -Wall
130+ cpp-options: -DTEST
131+ dependencies:
132+ - hspec >=1.3
133+ - HUnit
134+ - yaml
135+ - directory
136+ - mockery
137+ - base-compat
138+ - temporary
Data/Yaml.hs → src/Data/Yaml.hsrenamed

The content is the same.

Data/Yaml/Aeson.hs → src/Data/Yaml/Aeson.hsrenamed

The content is the same.

Data/Yaml/Builder.hs → src/Data/Yaml/Builder.hsrenamed

The content is the same.

Data/Yaml/Config.hs → src/Data/Yaml/Config.hsrenamed

The content is the same.

Data/Yaml/Include.hs → src/Data/Yaml/Include.hsrenamed

The content is the same.

Data/Yaml/Internal.hs → src/Data/Yaml/Internal.hsrenamed

The content is the same.

Data/Yaml/Parser.hs → src/Data/Yaml/Parser.hsrenamed

The content is the same.

Data/Yaml/Pretty.hs → src/Data/Yaml/Pretty.hsrenamed

The content is the same.

Data/Yaml/TH.hs → src/Data/Yaml/TH.hsrenamed

The content is the same.

Text/Libyaml.hs → src/Text/Libyaml.hsrenamed

The content is the same.

yaml.cabaldeleted−173
@@ -1,173 +0,0 @@
1−name: yaml
2−version: 0.8.31.1
3−license: BSD3
4−license-file: LICENSE
5−author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
6−maintainer: Michael Snoyman <michael@snoyman.com>
7−synopsis: Support for parsing and rendering YAML documents.
8−description: README and API documentation are available at <https://www.stackage.org/package/yaml>
9−category: Web
10−stability: stable
11−cabal-version: >= 1.8
12−build-type: Simple
13−homepage: http://github.com/snoyberg/yaml/
14−extra-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
30−
31−flag no-exe
32− description: don't install the yaml2json or json2yaml executables
33− default: True
34−
35−flag no-examples
36− description: don't build the examples
37− default: True
38−
39−flag system-libyaml
40− description: Use the system-wide libyaml instead of the bundled copy
41− default: False
42−
43−flag no-unicode
44− description: Don't enable unicode output. Instead, unicode characters will be escaped.
45− default: False
46−
47−library
48− other-extensions: LambdaCase
49− if impl(ghc < 8.0.2)
50− -- Disable building with GHC before 8.0.2.
51− -- Due to a cabal bug, do not use buildable: False,
52− -- but instead give it an impossible constraint.
53− -- See: https://github.com/haskell-infra/hackage-trustees/issues/165
54− build-depends: unsupported-ghc-version > 1 && < 1
55− build-depends: base >= 4.9.1 && < 5
56− , transformers >= 0.1
57− , bytestring >= 0.9.1.4
58− , conduit >= 1.2.8 && < 1.4
59− , resourcet >= 0.3 && < 1.3
60− , aeson >= 0.11
61− , containers
62− , unordered-containers
63− , vector
64− , text
65− , attoparsec >= 0.11.3.0
66− , scientific
67− , filepath
68− , directory
69− , semigroups
70− , template-haskell
71− exposed-modules: Text.Libyaml
72− Data.Yaml
73− Data.Yaml.Aeson
74− Data.Yaml.Builder
75− Data.Yaml.Config
76− Data.Yaml.Include
77− Data.Yaml.Parser
78− Data.Yaml.Pretty
79− Data.Yaml.TH
80− other-modules:
81− Data.Yaml.Internal
82− ghc-options: -Wall
83− c-sources: c/helper.c
84− include-dirs: c
85− if flag(no-unicode)
86− cpp-options: -D__NO_UNICODE__
87− if flag(system-libyaml)
88− pkgconfig-depends: yaml-0.1
89− else
90− c-sources: libyaml/api.c,
91− libyaml/dumper.c,
92− libyaml/emitter.c,
93− libyaml/loader.c,
94− libyaml/parser.c,
95− libyaml/reader.c,
96− libyaml/scanner.c,
97− libyaml/writer.c
98− include-dirs: libyaml
99− if os(windows)
100− cpp-options: -DWINDOWS
101−
102−executable yaml2json
103− if flag(no-exe)
104− Buildable: False
105− else
106− Buildable: True
107−
108− hs-source-dirs: exe
109− main-is: yaml2json.hs
110− build-depends: base >= 4 && < 5
111− , yaml
112− , bytestring >= 0.9.1.4
113− , aeson >= 0.7
114−
115−executable json2yaml
116− if flag(no-exe)
117− Buildable: False
118− else
119− Buildable: True
120−
121− hs-source-dirs: exe
122− main-is: json2yaml.hs
123− build-depends: base >= 4 && < 5
124− , yaml
125− , bytestring >= 0.9.1.4
126− , aeson >= 0.7
127−
128−
129−test-suite spec
130− type: exitcode-stdio-1.0
131− hs-source-dirs: test
132− main-is: Spec.hs
133− other-modules: Data.YamlSpec
134− Data.Yaml.IncludeSpec
135− Data.Yaml.THSpec
136− cpp-options: -DTEST
137− build-depends: hspec >= 1.3
138− , HUnit
139− , base >= 4 && < 5
140− , transformers >= 0.1
141− , bytestring >= 0.9.1.4
142− , conduit
143− , yaml
144− , text
145− , aeson >= 0.7
146− , unordered-containers
147− , directory
148− , vector
149− , resourcet
150− , mockery
151− , base-compat
152− , temporary
153− ghc-options: -Wall
154−
155−executable examples
156− if flag(no-examples)
157− Buildable: False
158− else
159− Buildable: True
160− build-depends: base
161− , bytestring
162− , raw-strings-qq
163− , text
164− , yaml
165− hs-source-dirs: examples
166− main-is: Main.hs
167− other-modules: Config
168− Simple
169− ghc-options: -Wall
170−
171−source-repository head
172− type: git
173− location: https://github.com/snoyberg/yaml