~ubuntu-branches/debian/sid/haskell-cmark-gfm/sid

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
name:                cmark-gfm
version:             0.1.3
synopsis:            Fast, accurate GitHub Flavored Markdown parser and renderer
description:
  This package provides Haskell bindings for
  <https://github.com/github/cmark libcmark-gfm>, the reference
  parser for <https://github.github.com/gfm/ GitHub Flavored Markdown>, a fully
  specified variant of Markdown. It includes sources for
  libcmark-gfm (0.28.0) and does not require prior installation of the
  C library.

homepage:            https://github.com/kivikakk/cmark-gfm-hs
license:             BSD3
license-file:        LICENSE
author:              Yuki Izumi
maintainer:          kivikakk@github.com
copyright:           (C) 2015--17 John MacFarlane, (C) 2017 Yuki Izumi
category:            Text
tested-with:         GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.2, GHC == 7.10.3
build-type:          Simple
extra-source-files:  README.md
                     changelog
                     cbits/chunk.h
                     cbits/cmark_export.h
                     cbits/debug.h
                     cbits/inlines.h
                     cbits/cmark.h
                     cbits/houdini.h
                     cbits/references.h
                     cbits/utf8.h
                     cbits/parser.h
                     cbits/cmark_version.h
                     cbits/html_unescape.h
                     cbits/iterator.h
                     cbits/node.h
                     cbits/buffer.h
                     cbits/render.h
                     cbits/cmark_ctype.h
                     cbits/config.h
                     cbits/scanners.h
                     cbits/case_fold_switch.inc
                     cbits/entities.inc
                     cbits/cmark_extension_api.h
                     cbits/html.h
                     cbits/plugin.h
                     cbits/registry.h
                     cbits/syntax_extension.h
                     cbits/autolink.h
                     cbits/core-extensions.h
                     cbits/ext_scanners.h
                     cbits/strikethrough.h
                     cbits/table.h
                     cbits/tagfilter.h
                     cbits/cmarkextensions_export.h
                     bench/sample.md
                     bench/full-sample.md
cabal-version:       >=1.14

Source-repository head
  type:              git
  location:          git://github.com/kivikakk/cmark-gfm-hs.git

flag pkgconfig
  default:     False
  description: Use system libcmark-gfm via pkgconfig

library
  exposed-modules:     CMarkGFM
  build-depends:       base >=4.5 && < 5.0,
                       text >= 1.0 && < 1.3,
                       bytestring
  if impl(ghc < 7.6)
    build-depends:     ghc-prim >= 0.2
  default-language:    Haskell2010
  ghc-options:         -Wall -fno-warn-unused-do-bind
  if flag(pkgconfig)
    pkgconfig-depends: libcmark-gfm
  else
    cc-options:        -Wall -std=c99
    Include-dirs:      cbits
    Includes:          cmark.h
    c-sources:         cbits/houdini_html_u.c
                       cbits/references.c
                       cbits/utf8.c
                       cbits/inlines.c
                       cbits/blocks.c
                       cbits/cmark.c
                       cbits/iterator.c
                       cbits/node.c
                       cbits/buffer.c
                       cbits/cmark_ctype.c
                       cbits/houdini_html_e.c
                       cbits/houdini_href_e.c
                       cbits/scanners.c
                       cbits/html.c
                       cbits/man.c
                       cbits/commonmark.c
                       cbits/latex.c
                       cbits/xml.c
                       cbits/render.c
                       cbits/arena.c
                       cbits/linked_list.c
                       cbits/plaintext.c
                       cbits/plugin.c
                       cbits/registry.c
                       cbits/syntax_extension.c
                       cbits/autolink.c
                       cbits/core-extensions.c
                       cbits/ext_scanners.c
                       cbits/strikethrough.c
                       cbits/table.c
                       cbits/tagfilter.c

benchmark bench-cmark-gfm
  type:             exitcode-stdio-1.0
  hs-source-dirs:   bench
  main-is:          bench-cmark.hs
  build-depends:    base, text, cmark-gfm, criterion,
                    sundown >= 0.6 && < 0.7,
                    cheapskate >= 0.1 && < 0.2,
                    markdown >= 0.1 && < 0.2,
                    discount >= 0.1 && < 0.2,
                    blaze-html >= 0.7 && < 0.10
  ghc-options:      -O2
  default-language: Haskell2010

Test-Suite test-cmark-gfm
  type:           exitcode-stdio-1.0
  main-is:        test-cmark.hs
  hs-source-dirs: test
  build-depends:  base, cmark-gfm, text, HUnit >= 1.2 && < 1.7
  ghc-options:    -Wall -fno-warn-unused-do-bind -threaded
  default-language: Haskell98