-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdiagrams-builder.cabal
206 lines (183 loc) · 7.6 KB
/
diagrams-builder.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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
name: diagrams-builder
version: 0.8.0.6
synopsis: hint-based build service for the diagrams graphics EDSL.
description: @diagrams-builder@ provides backend-agnostic tools for
dynamically turning code into rendered diagrams,
using the @hint@ wrapper to the GHC API. It
supports conditional recompilation using hashing
of diagrams source code, to avoid recompiling
code that has not changed. It is useful for
creating tools which compile diagrams code
embedded in other documents. For example, it is
used by the @BlogLiterately-diagrams@ package (a
plugin for @BlogLiterately@) to compile diagrams
embedded in Markdown-formatted blog posts.
.
Executables specific to the cairo, SVG, postscript,
and rasterific
backends are included (more executables specific
to other backends may be included in the future).
All take an input file and an expression to
render, and output an image file. If you want
these executables you must explicitly enable the
@-fcairo@, @-fsvg@, @-fpostscript@, or @-frasterific@ flags.
.
A LaTeX package, @diagrams-latex.sty@, is also
provided in the @latex/@ directory of the source
distribution, which renders diagrams code found
within @diagram@ environments. Note that
@diagrams-latex.sty@ is licensed under the GPL.
homepage: https://diagrams.github.io
license: BSD3
license-file: LICENSE
extra-source-files: CHANGES.markdown, README.markdown, latex/diagrams-latex.sty
author: Brent Yorgey
maintainer: [email protected]
category: Graphics
build-type: Simple
cabal-version: >=1.10
tested-with: GHC ==8.10.7 || ==9.0.2 || ==9.2.8 || ==9.4.8 || ==9.6.5 || ==9.8.2 || ==9.10.1 || ==9.12.1
bug-reports: https://github.com/diagrams/diagrams-builder/issues
Source-repository head
type: git
location: https://github.com/diagrams/diagrams-builder
library
exposed-modules: Diagrams.Builder
Diagrams.Builder.Opts
Diagrams.Builder.Modules
Diagrams.Builder.CmdLine
build-depends: base >= 4.10 && < 4.22,
base-orphans >= 0.3 && < 0.10,
mtl >= 2.1 && < 2.4,
diagrams-lib >= 1.4 && < 1.6,
hint >= 0.4 && < 0.10,
directory >= 1.3 && < 1.4,
filepath >= 1.4 && < 1.6,
transformers >= 0.3 && < 0.7,
split >= 0.2 && < 0.3,
haskell-src-exts >= 1.18 && < 1.24,
haskell-src-exts-simple >= 1.18 && < 1.24,
cmdargs >= 0.6 && < 0.11,
lens >= 4.0 && < 5.4,
hashable >= 1.1 && < 1.6,
exceptions >= 0.3 && < 0.11
hs-source-dirs: src
default-language: Haskell2010
other-extensions: StandaloneDeriving,
DeriveDataTypeable,
ScopedTypeVariables,
FlexibleContexts
flag cairo
description: install cairo-specific builder tool
default: False
manual: True
flag svg
description: install svg-specific builder tool
default: False
manual: True
flag ps
description: install postscript-specific builder tool
default: False
manual: True
flag postscript
description: install postscript-specific builder tool
default: False
manual: True
flag rasterific
description: install rasterific-specific builder tool
default: False
manual: True
flag pgf
description: install PGF-specific builder tool
default: False
manual: True
executable diagrams-builder-cairo
main-is: diagrams-builder-cairo.hs
hs-source-dirs: src/tools
default-language: Haskell2010
other-extensions: DeriveDataTypeable
RecordWildCards
if !flag(cairo)
buildable: False
if flag(cairo)
build-depends: base >= 4 && < 5,
filepath,
directory,
diagrams-builder,
diagrams-lib >= 1.4 && < 1.6,
diagrams-cairo >= 1.4 && < 1.5,
cmdargs >= 0.6 && < 0.11,
lens >= 4.0 && < 5.4
executable diagrams-builder-svg
main-is: diagrams-builder-svg.hs
hs-source-dirs: src/tools
default-language: Haskell2010
other-extensions: DeriveDataTypeable
RecordWildCards
if !flag(svg)
buildable: False
if flag(svg)
build-depends: base >= 4 && < 5,
filepath,
directory,
diagrams-builder,
diagrams-lib >= 1.4 && < 1.6,
diagrams-svg >= 1.4 && < 1.6,
svg-builder >= 0.1 && < 0.2,
bytestring >= 0.9.2 && < 0.13,
cmdargs >= 0.6 && < 0.11
executable diagrams-builder-ps
main-is: diagrams-builder-ps.hs
hs-source-dirs: src/tools
default-language: Haskell2010
other-extensions: DeriveDataTypeable
RecordWildCards
if !flag(ps) && !flag(postscript)
buildable: False
if flag(ps) || flag(postscript)
build-depends: base >= 4 && < 5,
filepath,
directory,
diagrams-builder,
diagrams-lib >= 1.4 && < 1.6,
diagrams-postscript >= 1.4 && < 1.6,
cmdargs >= 0.6 && < 0.11,
lens >= 3.8 && < 5.4,
bytestring >= 0.9.2 && < 0.13
executable diagrams-builder-rasterific
main-is: diagrams-builder-rasterific.hs
hs-source-dirs: src/tools
default-language: Haskell2010
other-extensions: DeriveDataTypeable
RecordWildCards
if !flag(rasterific)
buildable: False
if flag(rasterific)
build-depends: base >= 4 && < 5,
filepath,
directory,
diagrams-builder,
diagrams-lib >= 1.4 && < 1.6,
diagrams-rasterific >= 1.4 && < 1.6,
cmdargs >= 0.6 && < 0.11,
lens >= 3.8 && < 5.4,
JuicyPixels >= 3.1.5 && < 3.4
executable diagrams-builder-pgf
main-is: diagrams-builder-pgf.hs
hs-source-dirs: src/tools
default-language: Haskell2010
other-extensions: DeriveDataTypeable
RecordWildCards
if !flag(pgf)
buildable: False
if flag(pgf)
build-depends: base >= 4 && < 5,
filepath,
directory,
diagrams-builder,
diagrams-lib >= 1.4 && < 1.6,
diagrams-pgf >= 1.4 && < 1.6,
bytestring >= 0.10.2 && < 0.13,
cmdargs >= 0.6 && < 0.11,
lens >= 3.8 && < 5.4,
texrunner