-
Notifications
You must be signed in to change notification settings - Fork 164
/
Copy pathbrick.cabal
613 lines (576 loc) · 17.9 KB
/
brick.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
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
name: brick
version: 2.7
synopsis: A declarative terminal user interface library
description:
Write terminal user interfaces (TUIs) painlessly with 'brick'! You
write an event handler and a drawing function and the library does the
rest.
.
.
> module Main where
>
> import Brick
>
> ui :: Widget ()
> ui = str "Hello, world!"
>
> main :: IO ()
> main = simpleMain ui
.
.
To get started, see:
.
* <https://github.com/jtdaugherty/brick/blob/master/README.md The README>
.
* The <https://github.com/jtdaugherty/brick/blob/master/docs/guide.rst Brick user guide>
.
* The demonstration programs in the 'programs' directory
.
.
This package deprecates <http://hackage.haskell.org/package/vty-ui vty-ui>.
license: BSD3
license-file: LICENSE
author: Jonathan Daugherty <[email protected]>
maintainer: Jonathan Daugherty <[email protected]>
copyright: (c) Jonathan Daugherty 2015-2024
category: Graphics
build-type: Simple
cabal-version: 1.18
Homepage: https://github.com/jtdaugherty/brick/
Bug-reports: https://github.com/jtdaugherty/brick/issues
tested-with: GHC == 8.2.2
|| == 8.4.4
|| == 8.6.5
|| == 8.8.4
|| == 8.10.7
|| == 9.0.2
|| == 9.2.8
|| == 9.4.8
|| == 9.6.6
|| == 9.8.4
|| == 9.10.1
|| == 9.12.1
extra-doc-files: README.md,
docs/guide.rst,
docs/snake-demo.gif,
CHANGELOG.md,
programs/custom_keys.ini
Source-Repository head
type: git
location: git://github.com/jtdaugherty/brick.git
Flag demos
Description: Build demonstration programs
Default: False
library
default-language: Haskell2010
ghc-options: -Wall -Wcompat -O2 -Wunused-packages
default-extensions: CPP
hs-source-dirs: src
exposed-modules:
Brick
Brick.Animation
Brick.AttrMap
Brick.BChan
Brick.BorderMap
Brick.Keybindings
Brick.Keybindings.KeyConfig
Brick.Keybindings.KeyEvents
Brick.Keybindings.KeyDispatcher
Brick.Keybindings.Normalize
Brick.Keybindings.Parse
Brick.Keybindings.Pretty
Brick.Focus
Brick.Forms
Brick.Main
Brick.Themes
Brick.Types
Brick.Util
Brick.Widgets.Border
Brick.Widgets.Border.Style
Brick.Widgets.Center
Brick.Widgets.Core
Brick.Widgets.Dialog
Brick.Widgets.Edit
Brick.Widgets.FileBrowser
Brick.Widgets.List
Brick.Widgets.ProgressBar
Brick.Widgets.Table
Data.IMap
other-modules:
Brick.Animation.Clock
Brick.Types.Common
Brick.Types.TH
Brick.Types.EventM
Brick.Types.Internal
Brick.Widgets.Internal
build-depends: base >= 4.9.0.0 && < 4.22.0.0,
vty >= 6.0,
vty-crossplatform,
bimap >= 0.5 && < 0.6,
data-clist >= 0.1,
directory >= 1.2.5.0,
exceptions >= 0.10.0,
filepath,
containers >= 0.5.7,
microlens >= 0.3.0.0,
microlens-th,
microlens-mtl,
mtl,
config-ini,
vector,
stm >= 2.4.3,
text,
text-zipper >= 0.13,
template-haskell,
deepseq >= 1.3 && < 1.6,
unix-compat,
bytestring,
word-wrap >= 0.2,
unordered-containers,
hashable,
time
executable brick-custom-keybinding-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
default-extensions: CPP
main-is: CustomKeybindingDemo.hs
build-depends: base,
brick,
text,
vty,
containers,
microlens,
microlens-mtl,
microlens-th
executable brick-table-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
default-extensions: CPP
main-is: TableDemo.hs
build-depends: base,
brick,
text,
vty
executable brick-tail-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
default-extensions: CPP
main-is: TailDemo.hs
build-depends: base,
brick,
text,
vty,
vty-crossplatform,
random,
microlens-th,
microlens-mtl
executable brick-readme-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
default-extensions: CPP
main-is: ReadmeDemo.hs
build-depends: base,
brick,
text
executable brick-file-browser-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
default-extensions: CPP
main-is: FileBrowserDemo.hs
build-depends: base,
vty,
brick,
text,
mtl
executable brick-form-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
default-extensions: CPP
main-is: FormDemo.hs
build-depends: base,
brick,
text,
microlens,
microlens-th,
vty-crossplatform,
vty
executable brick-text-wrap-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
default-extensions: CPP
main-is: TextWrapDemo.hs
build-depends: base,
brick,
text,
word-wrap
executable brick-cache-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
default-extensions: CPP
main-is: CacheDemo.hs
build-depends: base,
brick,
vty,
text,
microlens >= 0.3.0.0,
microlens-th,
mtl
executable brick-visibility-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: VisibilityDemo.hs
build-depends: base,
brick,
vty,
text,
microlens >= 0.3.0.0,
microlens-th,
microlens-mtl
executable brick-viewport-scrollbars-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
default-extensions: CPP
main-is: ViewportScrollbarsDemo.hs
build-depends: base,
brick,
vty,
vty-crossplatform,
text,
microlens,
microlens-mtl,
microlens-th
executable brick-viewport-scroll-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
default-extensions: CPP
main-is: ViewportScrollDemo.hs
build-depends: base,
brick,
vty,
text,
microlens
executable brick-dialog-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: DialogDemo.hs
build-depends: base,
brick,
vty,
text,
microlens
executable brick-mouse-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: MouseDemo.hs
build-depends: base,
brick,
vty,
text,
microlens >= 0.3.0.0,
microlens-th,
microlens-mtl,
text-zipper,
mtl
executable brick-layer-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: LayerDemo.hs
build-depends: base,
brick,
vty,
text,
microlens >= 0.3.0.0,
microlens-th,
microlens-mtl
executable brick-suspend-resume-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: SuspendAndResumeDemo.hs
build-depends: base,
brick,
vty,
text,
microlens >= 0.3.0.0,
microlens-th
executable brick-cropping-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: CroppingDemo.hs
build-depends: base,
brick,
vty,
text,
microlens
executable brick-padding-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: PaddingDemo.hs
build-depends: base,
brick,
vty,
text,
microlens
executable brick-theme-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: ThemeDemo.hs
build-depends: base,
brick,
vty,
text,
mtl,
microlens
executable brick-attr-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: AttrDemo.hs
build-depends: base,
brick,
vty,
text,
microlens
executable brick-tabular-list-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: TabularListDemo.hs
build-depends: base,
brick,
vty,
text,
microlens >= 0.3.0.0,
microlens-mtl,
microlens-th,
mtl,
vector
executable brick-list-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: ListDemo.hs
build-depends: base,
brick,
vty,
text,
microlens >= 0.3.0.0,
microlens-mtl,
mtl,
vector
executable brick-list-vi-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: ListViDemo.hs
build-depends: base,
brick,
vty,
text,
microlens >= 0.3.0.0,
microlens-mtl,
mtl,
vector
executable brick-animation-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: AnimationDemo.hs
build-depends: base,
brick,
vty,
vty-crossplatform,
containers,
text,
microlens-platform,
stm,
mtl
executable brick-custom-event-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: CustomEventDemo.hs
build-depends: base,
brick,
vty,
text,
microlens >= 0.3.0.0,
microlens-th,
microlens-mtl
executable brick-fill-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: FillDemo.hs
build-depends: base,
brick,
vty,
text,
microlens
executable brick-hello-world-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: HelloWorldDemo.hs
build-depends: base,
brick,
vty,
text,
microlens
executable brick-edit-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: EditDemo.hs
build-depends: base,
brick,
vty,
text,
vector,
mtl,
microlens >= 0.3.0.0,
microlens-th,
microlens-mtl
executable brick-editor-line-numbers-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-language: Haskell2010
main-is: EditorLineNumbersDemo.hs
build-depends: base,
brick,
vty,
text,
vector,
mtl,
microlens >= 0.3.0.0,
microlens-th,
microlens-mtl
executable brick-border-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-extensions: CPP
default-language: Haskell2010
main-is: BorderDemo.hs
build-depends: base,
brick,
vty,
text,
microlens
executable brick-dynamic-border-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-extensions: CPP
default-language: Haskell2010
main-is: DynamicBorderDemo.hs
build-depends: base <= 5,
brick,
vty,
text,
microlens
executable brick-progressbar-demo
if !flag(demos)
Buildable: False
hs-source-dirs: programs
ghc-options: -threaded -Wall -Wcompat -O2
default-extensions: CPP
default-language: Haskell2010
main-is: ProgressBarDemo.hs
build-depends: base,
brick,
vty,
text,
microlens,
microlens-mtl,
microlens-th
test-suite brick-tests
type: exitcode-stdio-1.0
hs-source-dirs: tests
ghc-options: -Wall -Wcompat -Wno-orphans -O2
default-language: Haskell2010
main-is: Main.hs
other-modules: List Render
build-depends: base <=5,
brick,
containers,
microlens,
vector,
vty,
vty-crossplatform,
QuickCheck