on 5.13 help sign in
vty/vty.cabal
639 lines 21 kB history raw
1name: vty
2version: 5.13
3license: BSD3
4license-file: LICENSE
5author: AUTHORS
6maintainer: Jonathan Daugherty (cygnus@foobox.com)
7homepage: https://github.com/coreyoconnor/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 Included in the source distribution is a program
16 test/interactive_terminal_test.hs that demonstrates the various
17 features.
18 .
19 Developers: See the "Graphics.Vty" module.
20 .
21 Users: See the "Graphics.Vty.Config" module.
22 .
23 If your terminal is not behaving as expected the results of the
24 vty-interactive-terminal-test executable should be sent to the Vty
25 maintainter to aid in debugging the issue.
26 .
27 Notable infelicities: Assumes UTF-8 character encoding support by the
28 terminal; Poor signal handling; Requires terminfo.
29 .
30 This project is hosted on github.com: <https://github.com/coreyoconnor/vty>
31 .
32 > git clone git://github.com/coreyoconnor/vty.git
33 .
34 &#169; 2006-2007 Stefan O'Rear; BSD3 license.
35 .
36 &#169; Corey O'Connor; BSD3 license.
37cabal-version: >= 1.18
38build-type: Simple
39data-files: README.md,
40 TODO,
41 AUTHORS,
42 CHANGELOG,
43 LICENSE
44tested-with: GHC >= 7.6.2
46source-repository head
47 type: git
48 location: https://github.com/coreyoconnor/vty.git
50library
51 default-language: Haskell2010
52 build-depends: base >= 4 && < 5,
53 blaze-builder >= 0.3.3.2 && < 0.5,
54 bytestring,
55 containers,
56 data-default >= 0.5.3,
57 deepseq >= 1.1 && < 1.5,
58 directory,
59 filepath >= 1.0 && < 2.0,
60 microlens,
61 microlens-mtl,
62 microlens-th,
63 -- required for nice installation with yi
64 hashable >= 1.2,
65 mtl >= 1.1.1.0 && < 2.3,
66 parallel >= 2.2 && < 3.3,
67 parsec >= 2 && < 4,
68 stm,
69 terminfo >= 0.3 && < 0.5,
70 transformers >= 0.3.0.0,
71 text >= 0.11.3,
72 unix,
73 utf8-string >= 0.3 && < 1.1,
74 vector >= 0.7
76 exposed-modules: Graphics.Vty
77 Graphics.Vty.Attributes
78 Graphics.Vty.Config
79 Graphics.Vty.Error
80 Graphics.Vty.Image
81 Graphics.Vty.Inline
82 Graphics.Vty.Inline.Unsafe
83 Graphics.Vty.Input
84 Graphics.Vty.Input.Events
85 Graphics.Vty.Picture
86 Graphics.Vty.Prelude
87 Graphics.Vty.Output
88 Graphics.Text.Width
89 -- the modules below are only meant to be used by the tests.
90 Codec.Binary.UTF8.Debug
91 Data.Terminfo.Parse
92 Data.Terminfo.Eval
93 Graphics.Vty.Debug
94 Graphics.Vty.DisplayAttributes
95 Graphics.Vty.Image.Internal
96 Graphics.Vty.Input.Classify
97 Graphics.Vty.Input.Classify.Types
98 Graphics.Vty.Input.Classify.Parse
99 Graphics.Vty.Input.Loop
100 Graphics.Vty.Input.Mouse
101 Graphics.Vty.Input.Paste
102 Graphics.Vty.Input.Terminfo
103 Graphics.Vty.PictureToSpans
104 Graphics.Vty.Span
105 Graphics.Vty.Output.Mock
106 Graphics.Vty.Output.Interface
107 Graphics.Vty.Output.XTermColor
108 Graphics.Vty.Output.TerminfoBased
110 other-modules: Graphics.Vty.Attributes.Color
111 Graphics.Vty.Attributes.Color240
112 Graphics.Vty.Debug.Image
113 Graphics.Vty.Input.Terminfo.ANSIVT
115 c-sources: cbits/gwinsz.c
116 cbits/set_term_timing.c
117 cbits/mk_wcwidth.c
119 include-dirs: cbits
121 hs-source-dirs: src
123 default-extensions: ScopedTypeVariables
124 ForeignFunctionInterface
126 ghc-options: -O2 -funbox-strict-fields -Wall -fspec-constr -fspec-constr-count=10
128 ghc-prof-options: -O2 -funbox-strict-fields -caf-all -Wall -fspec-constr -fspec-constr-count=10
130 cc-options: -O2
132executable vty-mode-demo
133 main-is: ModeDemo.hs
135 default-language: Haskell2010
136 default-extensions: ScopedTypeVariables
137 ghc-options: -threaded
139 build-depends: vty,
140 base >= 4 && < 5,
141 containers,
142 data-default >= 0.5.3,
143 microlens,
144 microlens-mtl,
145 mtl >= 1.1.1.0 && < 2.3
147executable vty-demo
148 main-is: Demo.hs
150 default-language: Haskell2010
151 default-extensions: ScopedTypeVariables
152 ghc-options: -threaded
154 build-depends: vty,
155 base >= 4 && < 5,
156 containers,
157 data-default >= 0.5.3,
158 microlens,
159 microlens-mtl,
160 mtl >= 1.1.1.0 && < 2.3
162test-suite verify-attribute-ops
163 default-language: Haskell2010
164 default-extensions: ScopedTypeVariables
165 type: detailed-0.9
166 hs-source-dirs: test
167 test-module: VerifyAttributeOps
168 build-depends: vty,
169 Cabal >= 1.20,
170 QuickCheck >= 2.7,
171 random >= 1.0 && < 1.2,
172 base >= 4 && < 5,
173 bytestring,
174 containers,
175 deepseq >= 1.1 && < 1.5,
176 mtl >= 1.1.1.0 && < 2.3,
177 text >= 0.11.3,
178 unix,
179 utf8-string >= 0.3 && < 1.1,
180 vector >= 0.7
182test-suite verify-using-mock-terminal
183 default-language: Haskell2010
184 default-extensions: ScopedTypeVariables
186 type: detailed-0.9
188 hs-source-dirs: test
190 test-module: VerifyUsingMockTerminal
192 other-modules: Verify
193 Verify.Graphics.Vty.Attributes
194 Verify.Graphics.Vty.Prelude
195 Verify.Graphics.Vty.Picture
196 Verify.Graphics.Vty.Image
197 Verify.Graphics.Vty.Span
198 Verify.Graphics.Vty.Output
200 build-depends: vty,
201 Cabal >= 1.20,
202 QuickCheck >= 2.7,
203 random >= 1.0 && < 1.2,
204 base >= 4 && < 5,
205 bytestring,
206 containers,
207 deepseq >= 1.1 && < 1.5,
208 mtl >= 1.1.1.0 && < 2.3,
209 text >= 0.11.3,
210 terminfo >= 0.3 && < 0.5,
211 unix,
212 utf8-string >= 0.3 && < 1.1,
213 vector >= 0.7
215test-suite verify-terminal
216 default-language: Haskell2010
217 default-extensions: ScopedTypeVariables
219 type: detailed-0.9
221 hs-source-dirs: test
223 test-module: VerifyOutput
225 other-modules: Verify
226 Verify.Graphics.Vty.Attributes
227 Verify.Graphics.Vty.Prelude
228 Verify.Graphics.Vty.Picture
229 Verify.Graphics.Vty.Image
230 Verify.Graphics.Vty.Span
231 Verify.Graphics.Vty.Output
233 build-depends: vty,
234 Cabal >= 1.20,
235 QuickCheck >= 2.7,
236 random >= 1.0 && < 1.2,
237 base >= 4 && < 5,
238 bytestring,
239 containers,
240 data-default >= 0.5.3,
241 deepseq >= 1.1 && < 1.5,
242 mtl >= 1.1.1.0 && < 2.3,
243 terminfo >= 0.3 && < 0.5,
244 text >= 0.11.3,
245 unix,
246 utf8-string >= 0.3 && < 1.1,
247 vector >= 0.7
249test-suite verify-display-attributes
250 default-language: Haskell2010
251 default-extensions: ScopedTypeVariables
253 type: detailed-0.9
255 hs-source-dirs: test
257 test-module: VerifyDisplayAttributes
259 other-modules: Verify
260 Verify.Graphics.Vty.Attributes
261 Verify.Graphics.Vty.DisplayAttributes
262 Verify.Graphics.Vty.Prelude
263 Verify.Graphics.Vty.Picture
264 Verify.Graphics.Vty.Image
265 Verify.Graphics.Vty.Span
267 build-depends: vty,
268 Cabal >= 1.20,
269 QuickCheck >= 2.7,
270 random >= 1.0 && < 1.2,
271 base >= 4 && < 5,
272 bytestring,
273 containers,
274 deepseq >= 1.1 && < 1.5,
275 mtl >= 1.1.1.0 && < 2.3,
276 text >= 0.11.3,
277 unix,
278 utf8-string >= 0.3 && < 1.1,
279 vector >= 0.7
281test-suite verify-empty-image-props
282 default-language: Haskell2010
283 default-extensions: ScopedTypeVariables
285 type: detailed-0.9
287 hs-source-dirs: test
289 test-module: VerifyEmptyImageProps
291 other-modules: Verify
293 build-depends: vty,
294 Cabal >= 1.20,
295 QuickCheck >= 2.7,
296 random >= 1.0 && < 1.2,
297 base >= 4 && < 5,
298 bytestring,
299 containers,
300 deepseq >= 1.1 && < 1.5,
301 mtl >= 1.1.1.0 && < 2.3,
302 text >= 0.11.3,
303 unix,
304 utf8-string >= 0.3 && < 1.1,
305 vector >= 0.7
307test-suite verify-eval-terminfo-caps
308 default-language: Haskell2010
309 default-extensions: ScopedTypeVariables
311 type: detailed-0.9
313 hs-source-dirs: test
315 test-module: VerifyEvalTerminfoCaps
317 other-modules: Verify
318 Verify.Graphics.Vty.Output
320 build-depends: vty,
321 Cabal >= 1.20,
322 QuickCheck >= 2.7,
323 random >= 1.0 && < 1.2,
324 base >= 4 && < 5,
325 blaze-builder >= 0.3.3.2 && < 0.5,
326 bytestring,
327 containers,
328 deepseq >= 1.1 && < 1.5,
329 mtl >= 1.1.1.0 && < 2.3,
330 terminfo >= 0.3 && < 0.5,
331 text >= 0.11.3,
332 unix,
333 utf8-string >= 0.3 && < 1.1,
334 vector >= 0.7
336test-suite verify-image-ops
337 default-language: Haskell2010
338 default-extensions: ScopedTypeVariables
340 type: detailed-0.9
342 hs-source-dirs: test
344 test-module: VerifyImageOps
346 other-modules: Verify
347 Verify.Graphics.Vty.Attributes
348 Verify.Graphics.Vty.Image
350 build-depends: vty,
351 Cabal >= 1.20,
352 QuickCheck >= 2.7,
353 random >= 1.0 && < 1.2,
354 base >= 4 && < 5,
355 bytestring,
356 containers,
357 deepseq >= 1.1 && < 1.5,
358 mtl >= 1.1.1.0 && < 2.3,
359 text >= 0.11.3,
360 unix,
361 utf8-string >= 0.3 && < 1.1,
362 vector >= 0.7
364test-suite verify-image-trans
365 default-language: Haskell2010
366 default-extensions: ScopedTypeVariables
368 type: detailed-0.9
370 hs-source-dirs: test
372 test-module: VerifyImageTrans
374 other-modules: Verify
375 Verify.Graphics.Vty.Attributes
376 Verify.Graphics.Vty.Image
378 build-depends: vty,
379 Cabal >= 1.20,
380 QuickCheck >= 2.7,
381 random >= 1.0 && < 1.2,
382 base >= 4 && < 5,
383 bytestring,
384 containers,
385 deepseq >= 1.1 && < 1.5,
386 mtl >= 1.1.1.0 && < 2.3,
387 text >= 0.11.3,
388 unix,
389 utf8-string >= 0.3 && < 1.1,
390 vector >= 0.7
392test-suite verify-inline
393 default-language: Haskell2010
394 default-extensions: ScopedTypeVariables
396 type: detailed-0.9
398 hs-source-dirs: test
400 test-module: VerifyInline
402 other-modules: Verify
403 Verify.Graphics.Vty.Output
405 build-depends: vty,
406 Cabal >= 1.20,
407 QuickCheck >= 2.7,
408 random >= 1.0 && < 1.2,
409 base >= 4 && < 5,
410 bytestring,
411 containers,
412 deepseq >= 1.1 && < 1.5,
413 mtl >= 1.1.1.0 && < 2.3,
414 text >= 0.11.3,
415 unix,
416 utf8-string >= 0.3 && < 1.1,
417 vector >= 0.7
419test-suite verify-parse-terminfo-caps
420 default-language: Haskell2010
421 default-extensions: ScopedTypeVariables
423 type: detailed-0.9
425 hs-source-dirs: test
427 test-module: VerifyParseTerminfoCaps
429 other-modules: Verify
430 Verify.Data.Terminfo.Parse
431 Verify.Graphics.Vty.Output
433 build-depends: vty,
434 Cabal >= 1.20,
435 QuickCheck >= 2.7,
436 random >= 1.0 && < 1.2,
437 base >= 4 && < 5,
438 bytestring,
439 containers,
440 deepseq >= 1.1 && < 1.5,
441 mtl >= 1.1.1.0 && < 2.3,
442 terminfo >= 0.3 && < 0.5,
443 text >= 0.11.3,
444 unix,
445 utf8-string >= 0.3 && < 1.1,
446 vector >= 0.7
448test-suite verify-simple-span-generation
449 default-language: Haskell2010
450 default-extensions: ScopedTypeVariables
452 type: detailed-0.9
454 hs-source-dirs: test
456 test-module: VerifySimpleSpanGeneration
458 other-modules: Verify
459 Verify.Graphics.Vty.Attributes
460 Verify.Graphics.Vty.Prelude
461 Verify.Graphics.Vty.Picture
462 Verify.Graphics.Vty.Image
463 Verify.Graphics.Vty.Span
465 build-depends: vty,
466 Cabal >= 1.20,
467 QuickCheck >= 2.7,
468 random >= 1.0 && < 1.2,
469 base >= 4 && < 5,
470 bytestring,
471 containers,
472 deepseq >= 1.1 && < 1.5,
473 mtl >= 1.1.1.0 && < 2.3,
474 text >= 0.11.3,
475 unix,
476 utf8-string >= 0.3 && < 1.1,
477 vector >= 0.7
480test-suite verify-crop-span-generation
481 default-language: Haskell2010
482 default-extensions: ScopedTypeVariables
484 type: detailed-0.9
486 hs-source-dirs: test
488 test-module: VerifyCropSpanGeneration
490 other-modules: Verify
491 Verify.Graphics.Vty.Attributes
492 Verify.Graphics.Vty.Prelude
493 Verify.Graphics.Vty.Picture
494 Verify.Graphics.Vty.Image
495 Verify.Graphics.Vty.Span
497 build-depends: vty,
498 Cabal >= 1.20,
499 QuickCheck >= 2.7,
500 random >= 1.0 && < 1.2,
501 base >= 4 && < 5,
502 bytestring,
503 containers,
504 deepseq >= 1.1 && < 1.5,
505 mtl >= 1.1.1.0 && < 2.3,
506 text >= 0.11.3,
507 unix,
508 utf8-string >= 0.3 && < 1.1,
509 vector >= 0.7
512test-suite verify-layers-span-generation
513 default-language: Haskell2010
514 default-extensions: ScopedTypeVariables
516 type: detailed-0.9
518 hs-source-dirs: test
520 test-module: VerifyLayersSpanGeneration
522 other-modules: Verify
523 Verify.Graphics.Vty.Attributes
524 Verify.Graphics.Vty.Prelude
525 Verify.Graphics.Vty.Picture
526 Verify.Graphics.Vty.Image
527 Verify.Graphics.Vty.Span
529 build-depends: vty,
530 Cabal >= 1.20,
531 QuickCheck >= 2.7,
532 random >= 1.0 && < 1.2,
533 base >= 4 && < 5,
534 bytestring,
535 containers,
536 deepseq >= 1.1 && < 1.5,
537 mtl >= 1.1.1.0 && < 2.3,
538 text >= 0.11.3,
539 unix,
540 utf8-string >= 0.3 && < 1.1,
541 vector >= 0.7
543test-suite verify-utf8-width
544 default-language: Haskell2010
545 default-extensions: ScopedTypeVariables
547 type: detailed-0.9
549 hs-source-dirs: test
551 test-module: VerifyUtf8Width
553 other-modules: Verify
555 build-depends: vty,
556 Cabal >= 1.20,
557 QuickCheck >= 2.7,
558 random >= 1.0 && < 1.2,
559 base >= 4 && < 5,
560 bytestring,
561 containers,
562 deepseq >= 1.1 && < 1.5,
563 mtl >= 1.1.1.0 && < 2.3,
564 text >= 0.11.3,
565 unix,
566 utf8-string >= 0.3 && < 1.1,
567 vector >= 0.7
569test-suite verify-using-mock-input
570 default-language: Haskell2010
571 default-extensions: ScopedTypeVariables
573 type: exitcode-stdio-1.0
575 hs-source-dirs: test
577 main-is: VerifyUsingMockInput.hs
579 build-depends: vty,
580 Cabal >= 1.20,
581 data-default >= 0.5.3,
582 QuickCheck >= 2.7,
583 smallcheck == 1.*,
584 quickcheck-assertions >= 0.1.1,
585 test-framework == 0.8.*,
586 test-framework-smallcheck == 0.2.*,
587 random >= 1.0 && < 1.2,
588 base >= 4 && < 5,
589 bytestring,
590 containers,
591 deepseq >= 1.1 && < 1.5,
592 microlens,
593 microlens-mtl,
594 mtl >= 1.1.1.0 && < 2.3,
595 stm,
596 terminfo >= 0.3 && < 0.5,
597 text >= 0.11.3,
598 unix,
599 utf8-string >= 0.3 && < 1.1,
600 vector >= 0.7
602 ghc-options: -threaded -Wall
604test-suite verify-config
605 default-language: Haskell2010
606 default-extensions: ScopedTypeVariables
608 type: exitcode-stdio-1.0
610 hs-source-dirs: test
612 main-is: VerifyConfig.hs
614 build-depends: vty,
615 Cabal >= 1.20,
616 data-default >= 0.5.3,
617 HUnit,
618 QuickCheck >= 2.7,
619 smallcheck == 1.*,
620 quickcheck-assertions >= 0.1.1,
621 test-framework == 0.8.*,
622 test-framework-smallcheck == 0.2.*,
623 test-framework-hunit,
624 random >= 1.0 && < 1.2,
625 base >= 4 && < 5,
626 bytestring,
627 containers,
628 deepseq >= 1.1 && < 1.5,
629 microlens,
630 microlens-mtl,
631 mtl >= 1.1.1.0 && < 2.3,
632 string-qq,
633 terminfo >= 0.3 && < 0.5,
634 text >= 0.11.3,
635 unix,
636 utf8-string >= 0.3 && < 1.1,
637 vector >= 0.7
639 ghc-options: -threaded -Wall