-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdjot.cabal
84 lines (78 loc) · 2.5 KB
/
djot.cabal
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: 3.0
name: djot
version: 0.1.2.2
synopsis: Parser and renderer for djot light markup syntax.
description: Djot (<https://djot.net>) is a light markup language.
This package provides a data structure to represent
djot documents, a very fast parser, and functions
to render a parsed document as HTML and as djot.
license: MIT
license-file: LICENSE
author: John MacFarlane
maintainer: [email protected]
copyright: Copyright (C) 2024 John MacFarlane
category: Text
build-type: Simple
extra-doc-files: CHANGELOG.md
extra-source-files: test/*.test
benchmark/m.dj
common deps
build-depends:
base >= 4.12 && < 5,
bytestring >= 0.11.3,
doclayout
Library
import: deps
build-depends: mtl,
containers >= 0.6.6,
text,
template-haskell
hs-source-dirs: src
default-language: Haskell2010
exposed-modules: Djot
Djot.AST
Djot.Parse
Djot.Options
Djot.Attributes
Djot.Inlines
Djot.Blocks
Djot.Html
Djot.Djot
ghc-options: -Wall -O2
executable djoths
import: deps
main-is: Main.hs
build-depends: djot,
text
hs-source-dirs: app
default-language: Haskell2010
ghc-options: -Wall -O2 -rtsopts -threaded
test-suite test-djot
import: deps
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-K40K -with-rtsopts=-kc40K
if impl(ghc >= 8.10)
ghc-options: -Wunused-packages
build-depends: djot,
directory,
filepath,
tasty,
tasty-hunit,
tasty-quickcheck,
text
default-language: Haskell2010
benchmark benchmark-djot
import: deps
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: benchmark
build-depends: djot,
directory,
filepath,
tasty-bench
ghc-options: -O2 -threaded -rtsopts -with-rtsopts=-K10K -with-rtsopts=-kc10K
if impl(ghc >= 8.10)
ghc-options: -Wunused-packages
default-language: Haskell2010