on master help sign in
vty/vty.cabal
633 lines 21 kB history raw
1name: vty
2version: 5.35.1
3license: BSD3
4license-file: LICENSE
5author: AUTHORS
6maintainer: Jonathan Daugherty (cygnus@foobox.com)
7homepage: https://github.com/jtdaugherty/vty
8category: User Interfaces
9synopsis: A simple terminal UI library
10description:
11 vty is terminal GUI library in the niche of ncurses. It is intended to
12 be easy to use, have no confusing corner cases, and good support for
13 common terminal types.
14 .
15 See the @vty-examples@ package as well as the program
16 @test/interactive_terminal_test.hs@ included in the @vty@ package for
17 examples on how to use the library.
18 .
19 Import the "Graphics.Vty" convenience module to get access to the core
20 parts of the library.
21 .
22 © 2006-2007 Stefan O'Rear; BSD3 license.
23 .
24 © Corey O'Connor; BSD3 license.
25 .
26 © Jonathan Daugherty; BSD3 license.
27cabal-version: 1.18
28build-type: Simple
29extra-doc-files: README.md,
30 AUTHORS,
31 CHANGELOG.md,
32 LICENSE
33tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.3, GHC==8.6.5
35source-repository head
36 type: git
37 location: https://github.com/jtdaugherty/vty.git
39library
40 default-language: Haskell2010
41 build-depends: base >= 4.8 && < 5,
42 blaze-builder >= 0.3.3.2 && < 0.5,
43 bytestring,
44 containers,
45 deepseq >= 1.1 && < 1.5,
46 directory,
47 filepath >= 1.0 && < 2.0,
48 microlens < 0.4.13,
49 microlens-mtl,
50 microlens-th,
51 hashable >= 1.2,
52 mtl >= 1.1.1.0 && < 2.3,
53 parallel >= 2.2 && < 3.3,
54 parsec >= 2 && < 4,
55 stm,
56 terminfo >= 0.3 && < 0.5,
57 transformers >= 0.3.0.0,
58 text >= 0.11.3,
59 unix,
60 utf8-string >= 0.3 && < 1.1,
61 vector >= 0.7,
62 binary,
63 ansi-terminal >= 0.10.3
65 if !impl(ghc >= 8.0)
66 build-depends: semigroups >= 0.16,
67 fail
69 exposed-modules: Graphics.Vty
70 Graphics.Vty.Attributes
71 Graphics.Vty.Attributes.Color
72 Graphics.Vty.Attributes.Color240
73 Graphics.Vty.Config
74 Graphics.Vty.Error
75 Graphics.Vty.Image
76 Graphics.Vty.Inline
77 Graphics.Vty.Inline.Unsafe
78 Graphics.Vty.Input
79 Graphics.Vty.Input.Events
80 Graphics.Vty.Picture
81 Graphics.Vty.Output
82 Graphics.Text.Width
83 Codec.Binary.UTF8.Debug
84 Data.Terminfo.Parse
85 Data.Terminfo.Eval
86 Graphics.Vty.Debug
87 Graphics.Vty.DisplayAttributes
88 Graphics.Vty.Image.Internal
89 Graphics.Vty.Input.Classify
90 Graphics.Vty.Input.Classify.Types
91 Graphics.Vty.Input.Classify.Parse
92 Graphics.Vty.Input.Loop
93 Graphics.Vty.Input.Mouse
94 Graphics.Vty.Input.Focus
95 Graphics.Vty.Input.Paste
96 Graphics.Vty.Input.Terminfo
97 Graphics.Vty.PictureToSpans
98 Graphics.Vty.Span
99 Graphics.Vty.Output.Mock
100 Graphics.Vty.Output.Interface
101 Graphics.Vty.Output.XTermColor
102 Graphics.Vty.Output.TerminfoBased
103 Graphics.Vty.UnicodeWidthTable.Types
104 Graphics.Vty.UnicodeWidthTable.IO
105 Graphics.Vty.UnicodeWidthTable.Query
106 Graphics.Vty.UnicodeWidthTable.Install
108 other-modules: Graphics.Vty.Debug.Image
109 Graphics.Vty.Input.Terminfo.ANSIVT
111 c-sources: cbits/gwinsz.c
112 cbits/set_term_timing.c
113 cbits/get_tty_erase.c
114 cbits/mk_wcwidth.c
116 include-dirs: cbits
118 hs-source-dirs: src
120 ghc-options: -O2 -funbox-strict-fields -Wall -fspec-constr -fspec-constr-count=10
122 ghc-prof-options: -O2 -funbox-strict-fields -caf-all -Wall -fspec-constr -fspec-constr-count=10
124executable vty-build-width-table
125 main-is: BuildWidthTable.hs
126 hs-source-dirs: tools
128 default-language: Haskell2010
129 ghc-options: -threaded -Wall
131 if !impl(ghc >= 8.0)
132 build-depends: semigroups >= 0.16
134 build-depends: vty,
135 directory,
136 filepath,
137 base >= 4.8 && < 5
139executable vty-mode-demo
140 main-is: ModeDemo.hs
141 hs-source-dirs: demos
143 default-language: Haskell2010
144 ghc-options: -threaded
146 build-depends: vty,
147 base >= 4.8 && < 5,
148 containers,
149 microlens,
150 microlens-mtl,
151 mtl >= 1.1.1.0 && < 2.3
153executable vty-demo
154 main-is: Demo.hs
155 hs-source-dirs: demos
157 default-language: Haskell2010
158 ghc-options: -threaded
160 build-depends: vty,
161 base >= 4.8 && < 5,
162 containers,
163 microlens,
164 microlens-mtl,
165 mtl >= 1.1.1.0 && < 2.3
167test-suite verify-using-mock-terminal
168 default-language: Haskell2010
170 type: detailed-0.9
172 hs-source-dirs: test
174 test-module: VerifyUsingMockTerminal
176 other-modules: Verify
177 Verify.Graphics.Vty.Attributes
178 Verify.Graphics.Vty.Prelude
179 Verify.Graphics.Vty.Picture
180 Verify.Graphics.Vty.Image
181 Verify.Graphics.Vty.Span
182 Verify.Graphics.Vty.Output
184 build-depends: vty,
185 Cabal >= 1.20,
186 QuickCheck >= 2.7,
187 random >= 1.0 && < 1.3,
188 base >= 4.8 && < 5,
189 bytestring,
190 containers,
191 deepseq >= 1.1 && < 1.5,
192 mtl >= 1.1.1.0 && < 2.3,
193 text >= 0.11.3,
194 terminfo >= 0.3 && < 0.5,
195 unix,
196 utf8-string >= 0.3 && < 1.1,
197 vector >= 0.7
199test-suite verify-terminal
200 default-language: Haskell2010
202 type: detailed-0.9
204 hs-source-dirs: test
206 test-module: VerifyOutput
208 other-modules: Verify
209 Verify.Graphics.Vty.Attributes
210 Verify.Graphics.Vty.Prelude
211 Verify.Graphics.Vty.Picture
212 Verify.Graphics.Vty.Image
213 Verify.Graphics.Vty.Span
214 Verify.Graphics.Vty.Output
216 build-depends: vty,
217 Cabal >= 1.20,
218 QuickCheck >= 2.7,
219 random >= 1.0 && < 1.3,
220 base >= 4.8 && < 5,
221 bytestring,
222 containers,
223 deepseq >= 1.1 && < 1.5,
224 mtl >= 1.1.1.0 && < 2.3,
225 terminfo >= 0.3 && < 0.5,
226 text >= 0.11.3,
227 unix,
228 utf8-string >= 0.3 && < 1.1,
229 vector >= 0.7
231test-suite verify-display-attributes
232 default-language: Haskell2010
234 type: detailed-0.9
236 hs-source-dirs: test
238 test-module: VerifyDisplayAttributes
240 other-modules: Verify
241 Verify.Graphics.Vty.Attributes
242 Verify.Graphics.Vty.DisplayAttributes
243 Verify.Graphics.Vty.Prelude
244 Verify.Graphics.Vty.Picture
245 Verify.Graphics.Vty.Image
246 Verify.Graphics.Vty.Span
248 build-depends: vty,
249 Cabal >= 1.20,
250 QuickCheck >= 2.7,
251 random >= 1.0 && < 1.3,
252 base >= 4.8 && < 5,
253 bytestring,
254 containers,
255 deepseq >= 1.1 && < 1.5,
256 mtl >= 1.1.1.0 && < 2.3,
257 text >= 0.11.3,
258 unix,
259 utf8-string >= 0.3 && < 1.1,
260 vector >= 0.7
262test-suite verify-empty-image-props
263 default-language: Haskell2010
265 type: detailed-0.9
267 hs-source-dirs: test
269 test-module: VerifyEmptyImageProps
271 other-modules: Verify
273 build-depends: vty,
274 Cabal >= 1.20,
275 QuickCheck >= 2.7,
276 random >= 1.0 && < 1.3,
277 base >= 4.8 && < 5,
278 bytestring,
279 containers,
280 deepseq >= 1.1 && < 1.5,
281 mtl >= 1.1.1.0 && < 2.3,
282 text >= 0.11.3,
283 unix,
284 utf8-string >= 0.3 && < 1.1,
285 vector >= 0.7
287test-suite verify-eval-terminfo-caps
288 default-language: Haskell2010
290 type: detailed-0.9
292 hs-source-dirs: test
294 test-module: VerifyEvalTerminfoCaps
296 other-modules: Verify
297 Verify.Graphics.Vty.Output
299 build-depends: vty,
300 Cabal >= 1.20,
301 QuickCheck >= 2.7,
302 random >= 1.0 && < 1.3,
303 base >= 4.8 && < 5,
304 blaze-builder >= 0.3.3.2 && < 0.5,
305 bytestring,
306 containers,
307 deepseq >= 1.1 && < 1.5,
308 mtl >= 1.1.1.0 && < 2.3,
309 terminfo >= 0.3 && < 0.5,
310 text >= 0.11.3,
311 unix,
312 utf8-string >= 0.3 && < 1.1,
313 vector >= 0.7
315test-suite verify-image-ops
316 default-language: Haskell2010
318 type: detailed-0.9
320 hs-source-dirs: test
322 test-module: VerifyImageOps
324 other-modules: Verify
325 Verify.Graphics.Vty.Attributes
326 Verify.Graphics.Vty.Image
328 build-depends: vty,
329 Cabal >= 1.20,
330 QuickCheck >= 2.7,
331 random >= 1.0 && < 1.3,
332 base >= 4.8 && < 5,
333 bytestring,
334 containers,
335 deepseq >= 1.1 && < 1.5,
336 mtl >= 1.1.1.0 && < 2.3,
337 text >= 0.11.3,
338 unix,
339 utf8-string >= 0.3 && < 1.1,
340 vector >= 0.7
342test-suite verify-image-trans
343 default-language: Haskell2010
345 type: detailed-0.9
347 hs-source-dirs: test
349 test-module: VerifyImageTrans
351 other-modules: Verify
352 Verify.Graphics.Vty.Attributes
353 Verify.Graphics.Vty.Image
355 build-depends: vty,
356 Cabal >= 1.20,
357 QuickCheck >= 2.7,
358 random >= 1.0 && < 1.3,
359 base >= 4.8 && < 5,
360 bytestring,
361 containers,
362 deepseq >= 1.1 && < 1.5,
363 mtl >= 1.1.1.0 && < 2.3,
364 text >= 0.11.3,
365 unix,
366 utf8-string >= 0.3 && < 1.1,
367 vector >= 0.7
369test-suite verify-inline
370 default-language: Haskell2010
372 type: detailed-0.9
374 hs-source-dirs: test
376 test-module: VerifyInline
378 other-modules: Verify
379 Verify.Graphics.Vty.Output
381 build-depends: vty,
382 Cabal >= 1.20,
383 QuickCheck >= 2.7,
384 random >= 1.0 && < 1.3,
385 base >= 4.8 && < 5,
386 bytestring,
387 containers,
388 deepseq >= 1.1 && < 1.5,
389 mtl >= 1.1.1.0 && < 2.3,
390 text >= 0.11.3,
391 unix,
392 utf8-string >= 0.3 && < 1.1,
393 vector >= 0.7
395test-suite verify-parse-terminfo-caps
396 default-language: Haskell2010
398 type: detailed-0.9
400 hs-source-dirs: test
402 test-module: VerifyParseTerminfoCaps
404 other-modules: Verify
405 Verify.Data.Terminfo.Parse
406 Verify.Graphics.Vty.Output
408 build-depends: vty,
409 Cabal >= 1.20,
410 QuickCheck >= 2.7,
411 random >= 1.0 && < 1.3,
412 base >= 4.8 && < 5,
413 bytestring,
414 containers,
415 deepseq >= 1.1 && < 1.5,
416 mtl >= 1.1.1.0 && < 2.3,
417 terminfo >= 0.3 && < 0.5,
418 text >= 0.11.3,
419 unix,
420 utf8-string >= 0.3 && < 1.1,
421 vector >= 0.7
423test-suite verify-simple-span-generation
424 default-language: Haskell2010
426 type: detailed-0.9
428 hs-source-dirs: test
430 test-module: VerifySimpleSpanGeneration
432 other-modules: Verify
433 Verify.Graphics.Vty.Attributes
434 Verify.Graphics.Vty.Prelude
435 Verify.Graphics.Vty.Picture
436 Verify.Graphics.Vty.Image
437 Verify.Graphics.Vty.Span
439 build-depends: vty,
440 Cabal >= 1.20,
441 QuickCheck >= 2.7,
442 random >= 1.0 && < 1.3,
443 base >= 4.8 && < 5,
444 bytestring,
445 containers,
446 deepseq >= 1.1 && < 1.5,
447 mtl >= 1.1.1.0 && < 2.3,
448 text >= 0.11.3,
449 unix,
450 utf8-string >= 0.3 && < 1.1,
451 vector >= 0.7
454test-suite verify-crop-span-generation
455 default-language: Haskell2010
457 type: detailed-0.9
459 hs-source-dirs: test
461 test-module: VerifyCropSpanGeneration
463 other-modules: Verify
464 Verify.Graphics.Vty.Attributes
465 Verify.Graphics.Vty.Prelude
466 Verify.Graphics.Vty.Picture
467 Verify.Graphics.Vty.Image
468 Verify.Graphics.Vty.Span
470 build-depends: vty,
471 Cabal >= 1.20,
472 QuickCheck >= 2.7,
473 random >= 1.0 && < 1.3,
474 base >= 4.8 && < 5,
475 bytestring,
476 containers,
477 deepseq >= 1.1 && < 1.5,
478 mtl >= 1.1.1.0 && < 2.3,
479 text >= 0.11.3,
480 unix,
481 utf8-string >= 0.3 && < 1.1,
482 vector >= 0.7
485test-suite verify-layers-span-generation
486 default-language: Haskell2010
488 type: detailed-0.9
490 hs-source-dirs: test
492 test-module: VerifyLayersSpanGeneration
494 other-modules: Verify
495 Verify.Graphics.Vty.Attributes
496 Verify.Graphics.Vty.Prelude
497 Verify.Graphics.Vty.Picture
498 Verify.Graphics.Vty.Image
499 Verify.Graphics.Vty.Span
501 build-depends: vty,
502 Cabal >= 1.20,
503 QuickCheck >= 2.7,
504 random >= 1.0 && < 1.3,
505 base >= 4.8 && < 5,
506 bytestring,
507 containers,
508 deepseq >= 1.1 && < 1.5,
509 mtl >= 1.1.1.0 && < 2.3,
510 text >= 0.11.3,
511 unix,
512 utf8-string >= 0.3 && < 1.1,
513 vector >= 0.7
515test-suite verify-color-mapping
516 default-language: Haskell2010
518 type: detailed-0.9
520 hs-source-dirs: test
522 test-module: VerifyColor240
524 other-modules: Verify
526 build-depends: vty,
527 Cabal >= 1.20,
528 QuickCheck >= 2.7,
529 random >= 1.0 && < 1.3,
530 base >= 4.8 && < 5,
531 bytestring,
532 containers,
533 deepseq >= 1.1 && < 1.5,
534 mtl >= 1.1.1.0 && < 2.3,
535 text >= 0.11.3,
536 unix,
537 utf8-string >= 0.3 && < 1.1,
538 vector >= 0.7
540test-suite verify-utf8-width
541 default-language: Haskell2010
543 type: detailed-0.9
545 hs-source-dirs: test
547 test-module: VerifyUtf8Width
549 other-modules: Verify
551 build-depends: vty,
552 Cabal >= 1.20,
553 QuickCheck >= 2.7,
554 random >= 1.0 && < 1.3,
555 base >= 4.8 && < 5,
556 bytestring,
557 containers,
558 deepseq >= 1.1 && < 1.5,
559 mtl >= 1.1.1.0 && < 2.3,
560 text >= 0.11.3,
561 unix,
562 utf8-string >= 0.3 && < 1.1,
563 vector >= 0.7
565test-suite verify-using-mock-input
566 default-language: Haskell2010
568 type: exitcode-stdio-1.0
570 hs-source-dirs: test
572 main-is: VerifyUsingMockInput.hs
574 other-modules: Verify.Graphics.Vty.Output
576 build-depends: vty,
577 Cabal >= 1.20,
578 QuickCheck >= 2.7,
579 smallcheck == 1.*,
580 quickcheck-assertions >= 0.1.1,
581 test-framework == 0.8.*,
582 test-framework-smallcheck == 0.2.*,
583 random >= 1.0 && < 1.3,
584 base >= 4.8 && < 5,
585 bytestring,
586 containers,
587 deepseq >= 1.1 && < 1.5,
588 microlens,
589 microlens-mtl,
590 mtl >= 1.1.1.0 && < 2.3,
591 stm,
592 terminfo >= 0.3 && < 0.5,
593 text >= 0.11.3,
594 unix,
595 utf8-string >= 0.3 && < 1.1,
596 vector >= 0.7
598 ghc-options: -threaded -Wall
600test-suite verify-config
601 default-language: Haskell2010
603 type: exitcode-stdio-1.0
605 hs-source-dirs: test
607 main-is: VerifyConfig.hs
609 build-depends: vty,
610 Cabal >= 1.20,
611 HUnit,
612 QuickCheck >= 2.7,
613 smallcheck == 1.*,
614 quickcheck-assertions >= 0.1.1,
615 test-framework == 0.8.*,
616 test-framework-smallcheck == 0.2.*,
617 test-framework-hunit,
618 random >= 1.0 && < 1.3,
619 base >= 4.8 && < 5,
620 bytestring,
621 containers,
622 deepseq >= 1.1 && < 1.5,
623 microlens,
624 microlens-mtl,
625 mtl >= 1.1.1.0 && < 2.3,
626 string-qq,
627 terminfo >= 0.3 && < 0.5,
628 text >= 0.11.3,
629 unix,
630 utf8-string >= 0.3 && < 1.1,
631 vector >= 0.7
633 ghc-options: -threaded -Wall