forked from snoyberg/yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close snoyberg#145. Create a separate libyaml package.
- Loading branch information
Alex Franchuk
committed
Oct 10, 2018
1 parent
4c08154
commit baa8da7
Showing
27 changed files
with
96 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "vendor/libyaml"] | ||
path = vendor/libyaml | ||
path = libyaml/vendor/libyaml | ||
url = https://github.com/snoyberg/libyaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.stack-work/ | ||
libyaml.cabal | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Changelog for libyaml | ||
|
||
## 0.1.0.0 | ||
|
||
* Split `libyaml` into a separate package from `yaml`. This split occurred at | ||
`yaml` version 0.10.4.0. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# libyaml | ||
|
||
This package provides a haskell wrapper over the [libyaml C library version 0.2.1 by Kirill Simonov](https://github.com/yaml/libyaml). It contains the C source so you don't need to worry about any non-Haskell dependencies. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import Distribution.Simple | ||
main = defaultMain |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
rm -rf libyaml_src | ||
mkdir -p libyaml_src | ||
cp vendor/libyaml/LICENSE libyaml_src | ||
cp vendor/libyaml/src/*.c libyaml_src | ||
cp vendor/libyaml/src/*.h libyaml_src | ||
cp vendor/libyaml/include/*.h libyaml_src |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: libyaml | ||
version: 0.1.0.0 | ||
synopsis: Low-level, streaming YAML interface. | ||
description: README and API documentation are available at <https://www.stackage.org/package/libyaml> | ||
category: Text | ||
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_src/yaml_private.h | ||
- libyaml_src/yaml.h | ||
- libyaml_src/LICENSE | ||
- README.md | ||
- ChangeLog.md | ||
|
||
flags: | ||
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 | ||
- conduit >=1.2.8 && <1.4 | ||
- filepath | ||
- resourcet >=0.3 && <1.3 | ||
|
||
library: | ||
c-sources: c/helper.c | ||
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_src/api.c | ||
- libyaml_src/dumper.c | ||
- libyaml_src/emitter.c | ||
- libyaml_src/loader.c | ||
- libyaml_src/parser.c | ||
- libyaml_src/reader.c | ||
- libyaml_src/scanner.c | ||
- libyaml_src/writer.c | ||
include-dirs: | ||
- libyaml_src | ||
else: | ||
extra-libraries: yaml | ||
- condition: os(windows) | ||
cpp-options: -DWINDOWS | ||
|
File renamed without changes.
Submodule libyaml
updated
from 000000 to 8efa71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,7 @@ resolver: lts-11.10 | |
flags: | ||
yaml: | ||
no-examples: false | ||
|
||
packages: | ||
- . | ||
- libyaml |