summaryrefslogtreecommitdiff
path: root/libyaml.cabal
blob: 383cb6a0063064b030d42bff4be27222605fd6ea (plain)
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
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.31.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: 93d917f62be86415287d10db638b1d5422a21b7a4c5b229fbe16b62c47717555

name:           libyaml
version:        0.1.2
x-revision: 1
synopsis:       Low-level, streaming YAML interface.
description:    README and API documentation are available at <https://www.stackage.org/package/libyaml>
category:       Text
stability:      stable
homepage:       https://github.com/snoyberg/yaml#readme
bug-reports:    https://github.com/snoyberg/yaml/issues
author:         Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
maintainer:     Michael Snoyman <michael@snoyman.com>
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    c/helper.h
    libyaml_src/yaml_private.h
    libyaml_src/yaml.h
    libyaml_src/LICENSE
    README.md
    ChangeLog.md

source-repository head
  type: git
  location: https://github.com/snoyberg/yaml

flag no-unicode
  description: Don't enable unicode output. Instead, unicode characters will be escaped.
  manual: False
  default: False

flag system-libyaml
  description: Use the system-wide libyaml instead of the bundled copy
  manual: False
  default: False

library
  exposed-modules:
      Text.Libyaml
  other-modules:
      Paths_libyaml
  hs-source-dirs:
      src
  ghc-options: -Wall
  include-dirs:
      c
  c-sources:
      c/helper.c
  build-depends:
      base >=4.9.1 && <5
    , bytestring >=0.9.1.4
    , conduit >=1.2.8 && <1.4
    , resourcet >=0.3 && <1.4
  if flag(no-unicode)
    cpp-options: -D__NO_UNICODE__
  if !(flag(system-libyaml))
    include-dirs:
        libyaml_src
    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
  else
    extra-libraries:
        yaml
  if os(windows)
    cpp-options: -DWINDOWS
    build-depends:
        directory
  default-language: Haskell2010