-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathknit-haskell.cabal
368 lines (354 loc) · 9.96 KB
/
knit-haskell.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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
cabal-version: 2.2
name: knit-haskell
version: 0.10.9.1
synopsis: a minimal Rmarkdown sort-of-thing for haskell, by way of Pandoc
description: knit-haskell is a beginning attempt at bringing some of the benefits of Rmarkdown to Haskell. It includes an effects stack (using <https://github.com/isovector/polysemy#readme polysemy> rather than mtl) which includes logging, a simplified interface to Pandoc and various writer-like effects to intersperse document building with regular code. Also included is a cache (in-memory and persisted to disk) to make caching results of long running computations simple. The cache provides tools for basic dependency tracking. Various helper functions are provided to simplify common operations, making it especially straightforward to build an HTML document from bits of markdown, latex and <http://hackage.haskell.org/package/lucid Lucid> or <http://hackage.haskell.org/package/blaze-html Blaze> html. Support is also included for including <http://hackage.haskell.org/package/hvega hvega> visualizations and diagrams from the <https://archives.haskell.org/projects.haskell.org/diagrams/ diagrams> package. More information is available in the <https://github.com/adamConnerSax/knit-haskell/blob/master/Readme.md readme>.
bug-reports: https://github.com/adamConnerSax/knit-haskell/issues
license: BSD-3-Clause
license-file: LICENSE
author: Adam Conner-Sax
maintainer: [email protected]
copyright: 2019 Adam Conner-Sax
category: Text
extra-source-files:
ChangeLog.md
Readme.md
data-dir: data
data-files:
knit-haskell-templates/mindoc-pandoc-KH.html
knit-haskell-templates/pandoc-adaptive-bootstrap-KH.html
knit-haskell-templates/pandoc-bootstrap-KH.html
knit-haskell-css/pandoc-bootstrap.css
pandoc-data/data/templates/default.html4
pandoc-data/data/templates/default.html5
pandoc-data/data/templates/default.latex
pandoc-data/data/templates/default.markdown
pandoc-data/data/templates/default.commonmark
pandoc-data/data/templates/default.haddock
build-type: Simple
homepage: https://github.com/adamConnerSax/knit-haskell#readme
source-repository head
type: git
location: https://github.com/adamConnerSax/knit-haskell
Flag streamly9
Description: require streamly >= 0.9
Manual: True
Default: False
library
ghc-options: -Wall -fno-warn-unused-top-binds -funbox-strict-fields
default-extensions: StrictData
exposed-modules:
Knit.Effect.AtomicCache
Knit.Effect.Serialize
Knit.Effect.Logger
Knit.Effect.Docs
Knit.Effect.PandocMonad
Knit.Effect.Pandoc
Knit.Effect.Timer
Knit.Effect.UnusedId
Knit.Report
Knit.Report.Cache
Knit.Report.Input.Table.Colonnade
Knit.Report.Input.Html
Knit.Report.Input.Html.Lucid
Knit.Report.Input.Html.Blaze
Knit.Report.Input.Latex
Knit.Report.Input.MarkDown.PandocMarkDown
Knit.Report.Input.RST
Knit.Report.Input.Visualization.Hvega
Knit.Report.Input.Visualization.Diagrams
Knit.Report.Output
Knit.Report.Output.Html
Knit.Report.Other.Lucid
Knit.Report.Other.Blaze
Knit.Utilities.Streamly
other-modules:
Knit.Effect.Html
Knit.Effect.Internal.Logger
Knit.Report.EffectStack
Knit.Report.Error
Paths_knit_haskell
build-depends:
Glob >=0.10.0 && <0.11.0
, aeson-pretty >=0.8.7 && <0.9
, async >=2.2 && <2.3
, base >=4.12.0 && <5
, base64-bytestring >=1.0.0.2 && <1.3
, blaze-colonnade >=1.2.2 && <1.3
, blaze-html >=0.9.1 && <0.10
, bytestring >=0.10.8 && <0.13
, bytestring-strict-builder >= 0.4.5 && < 0.5
, case-insensitive >=1.2.0.11 && <1.3
, cereal >=0.5.7 && <0.6
, colonnade >=1.1 && <1.3
, constraints >=0.10 && <0.20
, containers >=0.5.0 && <0.8
, diagrams-lib >=1.4 && <1.5.0.0
, diagrams-svg >=1.4.1 && <1.5.0.0
, directory >=1.3.3.0 && <1.4.0.0
, doctemplates >=0.2 && <0.12
, exceptions >=0.10.0 && <0.11
, foldl >= 1.4.0 && < 1.5
, http-client >=0.6.4 && <0.8
, http-client-tls >=0.3.5.3 && <0.4
, http-types >=0.12.3 && <0.13
, hvega >=0.2.0 && <0.13
, lucid >=2.9.11 && <2.12
, mmorph >= 1.1.0 && < 1.3
, monad-control >=1.0.2 && <1.1
, mtl >=2.2.2 && <2.4
, network >=2.8.0.0 && <3.5
, network-uri >=2.6.1.0 && <2.8
, pandoc >=2.7.2 && <3.2
, polysemy >=1.3.0 && <1.10
, polysemy-plugin >=0.2.0.0 && <0.5
, polysemy-zoo >=0.6.0 && <0.12
, prettyprinter >= 1.7.0 && <1.8
, primitive >=0.7.0 && <0.10
, random >=1.1 && <1.3
, relude >= 1.0.0 && <1.3
, safe-coloured-text >= 0.1 && <0.4
, say >=0.1.0 && <0.2
, stm >=2.4.5.1 && <2.6
, strict >= 0.5 && < 0.6
, svg-builder >=0.1.1 && <0.2
, text >=1.2.3 && <2.2
, time >=1.8.0 && <2.0.0
, transformers-base >=0.4.5 && <0.5
if flag(streamly9)
build-depends: streamly >=0.9 && <0.11, streamly-core >=0.1.0 && <0.3, streamly-bytestring >=0.2.0 && <0.3
else
build-depends: streamly-bytestring >=0.1.0 && <0.1.5, streamly >= 0.8.1 && < 0.9
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
hs-source-dirs:
src
default-language: Haskell2010
test-suite AsyncExample
type: exitcode-stdio-1.0
main-is: AsyncExample.hs
hs-source-dirs:
examples
ghc-options: -fplugin=Polysemy.Plugin -threaded
build-depends:
base
, blaze-html
, containers
, here
, hvega
, knit-haskell
, plots
, polysemy
, polysemy-plugin
, relude
, text
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
default-language: Haskell2010
test-suite CacheExample
type: exitcode-stdio-1.0
main-is: CacheExample.hs
hs-source-dirs:
examples
ghc-options: -fplugin=Polysemy.Plugin -threaded
build-depends:
base
, blaze-html
, containers
, here
, hvega
, knit-haskell
, plots
, polysemy
, polysemy-plugin
, relude
, streamly
, text
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
default-language: Haskell2010
test-suite CacheExample2
type: exitcode-stdio-1.0
main-is: CacheExample2.hs
hs-source-dirs:
examples
ghc-options: -fplugin=Polysemy.Plugin -threaded
build-depends:
base
, blaze-html
, bytestring
, containers
, here
, hvega
, knit-haskell
, plots
, polysemy
, polysemy-plugin
, relude
, store
, streamly
, text
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
default-language: Haskell2010
test-suite CacheExample3
type: exitcode-stdio-1.0
main-is: CacheExample3.hs
hs-source-dirs:
examples
ghc-options: -fplugin=Polysemy.Plugin -threaded
build-depends:
base
, blaze-html
, bytestring
, containers
, here
, hvega
, knit-haskell
, plots
, polysemy
, polysemy-plugin
, relude
, store
, streamly
, text
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
default-language: Haskell2010
test-suite ErrorExample
type: exitcode-stdio-1.0
main-is: ErrorExample.hs
hs-source-dirs:
examples
ghc-options: -fplugin=Polysemy.Plugin
build-depends:
base
, blaze-html
, containers
, here >=1.2.10 && <1.3.0
, hvega
, knit-haskell
, polysemy
, polysemy-plugin
, relude
, text
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
default-language: Haskell2010
test-suite Index
type: exitcode-stdio-1.0
main-is: Index.hs
hs-source-dirs:
examples
ghc-options: -fplugin=Polysemy.Plugin
build-depends:
base
, containers
, here
, knit-haskell
, polysemy
, polysemy-plugin
, relude
, text
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
default-language: Haskell2010
test-suite MtlExample
type: exitcode-stdio-1.0
main-is: MtlExample.hs
hs-source-dirs:
examples
ghc-options: -fplugin=Polysemy.Plugin
build-depends:
base
, blaze-html
, containers
, here
, hvega
, knit-haskell
, mtl
, polysemy
, polysemy-plugin
, relude
, text
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
default-language: Haskell2010
test-suite MultiDocExample
type: exitcode-stdio-1.0
main-is: MultiDocExample.hs
hs-source-dirs:
examples
ghc-options: -fplugin=Polysemy.Plugin
build-depends:
base
, blaze-html
, containers
, here >=1.2.10 && <1.3.0
, hvega
, knit-haskell
, polysemy
, polysemy-plugin
, relude
, text
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
default-language: Haskell2010
test-suite RandomExample
type: exitcode-stdio-1.0
main-is: RandomExample.hs
hs-source-dirs:
examples
ghc-options: -fplugin=Polysemy.Plugin
build-depends:
base
, blaze-html
, colonnade >=1.2.0.2
, containers
, here >=1.2.10 && <1.3.0
, hvega
, knit-haskell
, mtl >=2.2.2
, plots >=0.1.1.0 && <=0.2
, polysemy
, polysemy-RandomFu >=0.4.0 && <0.6
, polysemy-plugin
, random-fu >=0.2.7.3 && <0.4
, random-source >=0.3.0.6
, relude
, text
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
default-language: Haskell2010
test-suite SimpleExample
type: exitcode-stdio-1.0
main-is: SimpleExample.hs
hs-source-dirs:
examples
ghc-options: -fplugin=Polysemy.Plugin
build-depends:
base
, blaze-html
, containers
, here
, hvega
, knit-haskell
, plots
, polysemy
, polysemy-plugin
, relude
, text
mixins: base hiding (Prelude)
, relude (Relude as Prelude
, Relude.Extra)
default-language: Haskell2010