on 5.29 help sign in
vty/vty.cabal
625 lines 21 kB history raw
1name: vty
2version: 5.29
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.12,
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.Config
73 Graphics.Vty.Error
74 Graphics.Vty.Image
75 Graphics.Vty.Inline
76 Graphics.Vty.Inline.Unsafe
77 Graphics.Vty.Input
78 Graphics.Vty.Input.Events
79 Graphics.Vty.Picture
80 Graphics.Vty.Output
81 Graphics.Text.Width
82 Codec.Binary.UTF8.Debug
83 Data.Terminfo.Parse
84 Data.Terminfo.Eval
85 Graphics.Vty.Debug
86 Graphics.Vty.DisplayAttributes
87 Graphics.Vty.Image.Internal
88 Graphics.Vty.Input.Classify
89 Graphics.Vty.Input.Classify.Types
90 Graphics.Vty.Input.Classify.Parse
91 Graphics.Vty.Input.Loop
92 Graphics.Vty.Input.Mouse
93 Graphics.Vty.Input.Focus
94 Graphics.Vty.Input.Paste
95 Graphics.Vty.Input.Terminfo
96 Graphics.Vty.PictureToSpans
97 Graphics.Vty.Span
98 Graphics.Vty.Output.Mock
99 Graphics.Vty.Output.Interface
100 Graphics.Vty.Output.XTermColor
101 Graphics.Vty.Output.TerminfoBased
102 Graphics.Vty.UnicodeWidthTable.Types
103 Graphics.Vty.UnicodeWidthTable.IO
104 Graphics.Vty.UnicodeWidthTable.Query
105 Graphics.Vty.UnicodeWidthTable.Install
107 other-modules: Graphics.Vty.Attributes.Color240
108 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 default-extensions: ScopedTypeVariables
122 ghc-options: -O2 -funbox-strict-fields -Wall -fspec-constr -fspec-constr-count=10
124 ghc-prof-options: -O2 -funbox-strict-fields -caf-all -Wall -fspec-constr -fspec-constr-count=10
126executable vty-build-width-table
127 main-is: BuildWidthTable.hs
128 hs-source-dirs: tools
130 default-language: Haskell2010
131 ghc-options: -threaded -Wall
133 if !impl(ghc >= 8.0)
134 build-depends: semigroups >= 0.16
136 build-depends: vty,
137 directory,
138 filepath,
139 base >= 4.8 && < 5
141executable vty-mode-demo
142 main-is: ModeDemo.hs
143 hs-source-dirs: demos
145 default-language: Haskell2010
146 default-extensions: ScopedTypeVariables
147 ghc-options: -threaded
149 build-depends: vty,
150 base >= 4.8 && < 5,
151 containers,
152 microlens,
153 microlens-mtl,
154 mtl >= 1.1.1.0 && < 2.3
156executable vty-demo
157 main-is: Demo.hs
158 hs-source-dirs: demos
160 default-language: Haskell2010
161 default-extensions: ScopedTypeVariables
162 ghc-options: -threaded
164 build-depends: vty,
165 base >= 4.8 && < 5,
166 containers,
167 microlens,
168 microlens-mtl,
169 mtl >= 1.1.1.0 && < 2.3
171test-suite verify-using-mock-terminal
172 default-language: Haskell2010
173 default-extensions: ScopedTypeVariables
175 type: detailed-0.9
177 hs-source-dirs: test
179 test-module: VerifyUsingMockTerminal
181 other-modules: Verify
182 Verify.Graphics.Vty.Attributes
183 Verify.Graphics.Vty.Prelude
184 Verify.Graphics.Vty.Picture
185 Verify.Graphics.Vty.Image
186 Verify.Graphics.Vty.Span
187 Verify.Graphics.Vty.Output
189 build-depends: vty,
190 Cabal >= 1.20,
191 QuickCheck >= 2.7,
192 random >= 1.0 && < 1.2,
193 base >= 4.8 && < 5,
194 bytestring,
195 containers,
196 deepseq >= 1.1 && < 1.5,
197 mtl >= 1.1.1.0 && < 2.3,
198 text >= 0.11.3,
199 terminfo >= 0.3 && < 0.5,
200 unix,
201 utf8-string >= 0.3 && < 1.1,
202 vector >= 0.7
204test-suite verify-terminal
205 default-language: Haskell2010
206 default-extensions: ScopedTypeVariables
208 type: detailed-0.9
210 hs-source-dirs: test
212 test-module: VerifyOutput
214 other-modules: Verify
215 Verify.Graphics.Vty.Attributes
216 Verify.Graphics.Vty.Prelude
217 Verify.Graphics.Vty.Picture
218 Verify.Graphics.Vty.Image
219 Verify.Graphics.Vty.Span
220 Verify.Graphics.Vty.Output
222 build-depends: vty,
223 Cabal >= 1.20,
224 QuickCheck >= 2.7,
225 random >= 1.0 && < 1.2,
226 base >= 4.8 && < 5,
227 bytestring,
228 containers,
229 deepseq >= 1.1 && < 1.5,
230 mtl >= 1.1.1.0 && < 2.3,
231 terminfo >= 0.3 && < 0.5,
232 text >= 0.11.3,
233 unix,
234 utf8-string >= 0.3 && < 1.1,
235 vector >= 0.7
237test-suite verify-display-attributes
238 default-language: Haskell2010
239 default-extensions: ScopedTypeVariables
241 type: detailed-0.9
243 hs-source-dirs: test
245 test-module: VerifyDisplayAttributes
247 other-modules: Verify
248 Verify.Graphics.Vty.Attributes
249 Verify.Graphics.Vty.DisplayAttributes
250 Verify.Graphics.Vty.Prelude
251 Verify.Graphics.Vty.Picture
252 Verify.Graphics.Vty.Image
253 Verify.Graphics.Vty.Span
255 build-depends: vty,
256 Cabal >= 1.20,
257 QuickCheck >= 2.7,
258 random >= 1.0 && < 1.2,
259 base >= 4.8 && < 5,
260 bytestring,
261 containers,
262 deepseq >= 1.1 && < 1.5,
263 mtl >= 1.1.1.0 && < 2.3,
264 text >= 0.11.3,
265 unix,
266 utf8-string >= 0.3 && < 1.1,
267 vector >= 0.7
269test-suite verify-empty-image-props
270 default-language: Haskell2010
271 default-extensions: ScopedTypeVariables
273 type: detailed-0.9
275 hs-source-dirs: test
277 test-module: VerifyEmptyImageProps
279 other-modules: Verify
281 build-depends: vty,
282 Cabal >= 1.20,
283 QuickCheck >= 2.7,
284 random >= 1.0 && < 1.2,
285 base >= 4.8 && < 5,
286 bytestring,
287 containers,
288 deepseq >= 1.1 && < 1.5,
289 mtl >= 1.1.1.0 && < 2.3,
290 text >= 0.11.3,
291 unix,
292 utf8-string >= 0.3 && < 1.1,
293 vector >= 0.7
295test-suite verify-eval-terminfo-caps
296 default-language: Haskell2010
297 default-extensions: ScopedTypeVariables
299 type: detailed-0.9
301 hs-source-dirs: test
303 test-module: VerifyEvalTerminfoCaps
305 other-modules: Verify
306 Verify.Graphics.Vty.Output
308 build-depends: vty,
309 Cabal >= 1.20,
310 QuickCheck >= 2.7,
311 random >= 1.0 && < 1.2,
312 base >= 4.8 && < 5,
313 blaze-builder >= 0.3.3.2 && < 0.5,
314 bytestring,
315 containers,
316 deepseq >= 1.1 && < 1.5,
317 mtl >= 1.1.1.0 && < 2.3,
318 terminfo >= 0.3 && < 0.5,
319 text >= 0.11.3,
320 unix,
321 utf8-string >= 0.3 && < 1.1,
322 vector >= 0.7
324test-suite verify-image-ops
325 default-language: Haskell2010
326 default-extensions: ScopedTypeVariables
328 type: detailed-0.9
330 hs-source-dirs: test
332 test-module: VerifyImageOps
334 other-modules: Verify
335 Verify.Graphics.Vty.Attributes
336 Verify.Graphics.Vty.Image
338 build-depends: vty,
339 Cabal >= 1.20,
340 QuickCheck >= 2.7,
341 random >= 1.0 && < 1.2,
342 base >= 4.8 && < 5,
343 bytestring,
344 containers,
345 deepseq >= 1.1 && < 1.5,
346 mtl >= 1.1.1.0 && < 2.3,
347 text >= 0.11.3,
348 unix,
349 utf8-string >= 0.3 && < 1.1,
350 vector >= 0.7
352test-suite verify-image-trans
353 default-language: Haskell2010
354 default-extensions: ScopedTypeVariables
356 type: detailed-0.9
358 hs-source-dirs: test
360 test-module: VerifyImageTrans
362 other-modules: Verify
363 Verify.Graphics.Vty.Attributes
364 Verify.Graphics.Vty.Image
366 build-depends: vty,
367 Cabal >= 1.20,
368 QuickCheck >= 2.7,
369 random >= 1.0 && < 1.2,
370 base >= 4.8 && < 5,
371 bytestring,
372 containers,
373 deepseq >= 1.1 && < 1.5,
374 mtl >= 1.1.1.0 && < 2.3,
375 text >= 0.11.3,
376 unix,
377 utf8-string >= 0.3 && < 1.1,
378 vector >= 0.7
380test-suite verify-inline
381 default-language: Haskell2010
382 default-extensions: ScopedTypeVariables
384 type: detailed-0.9
386 hs-source-dirs: test
388 test-module: VerifyInline
390 other-modules: Verify
391 Verify.Graphics.Vty.Output
393 build-depends: vty,
394 Cabal >= 1.20,
395 QuickCheck >= 2.7,
396 random >= 1.0 && < 1.2,
397 base >= 4.8 && < 5,
398 bytestring,
399 containers,
400 deepseq >= 1.1 && < 1.5,
401 mtl >= 1.1.1.0 && < 2.3,
402 text >= 0.11.3,
403 unix,
404 utf8-string >= 0.3 && < 1.1,
405 vector >= 0.7
407test-suite verify-parse-terminfo-caps
408 default-language: Haskell2010
409 default-extensions: ScopedTypeVariables
411 type: detailed-0.9
413 hs-source-dirs: test
415 test-module: VerifyParseTerminfoCaps
417 other-modules: Verify
418 Verify.Data.Terminfo.Parse
419 Verify.Graphics.Vty.Output
421 build-depends: vty,
422 Cabal >= 1.20,
423 QuickCheck >= 2.7,
424 random >= 1.0 && < 1.2,
425 base >= 4.8 && < 5,
426 bytestring,
427 containers,
428 deepseq >= 1.1 && < 1.5,
429 mtl >= 1.1.1.0 && < 2.3,
430 terminfo >= 0.3 && < 0.5,
431 text >= 0.11.3,
432 unix,
433 utf8-string >= 0.3 && < 1.1,
434 vector >= 0.7
436test-suite verify-simple-span-generation
437 default-language: Haskell2010
438 default-extensions: ScopedTypeVariables
440 type: detailed-0.9
442 hs-source-dirs: test
444 test-module: VerifySimpleSpanGeneration
446 other-modules: Verify
447 Verify.Graphics.Vty.Attributes
448 Verify.Graphics.Vty.Prelude
449 Verify.Graphics.Vty.Picture
450 Verify.Graphics.Vty.Image
451 Verify.Graphics.Vty.Span
453 build-depends: vty,
454 Cabal >= 1.20,
455 QuickCheck >= 2.7,
456 random >= 1.0 && < 1.2,
457 base >= 4.8 && < 5,
458 bytestring,
459 containers,
460 deepseq >= 1.1 && < 1.5,
461 mtl >= 1.1.1.0 && < 2.3,
462 text >= 0.11.3,
463 unix,
464 utf8-string >= 0.3 && < 1.1,
465 vector >= 0.7
468test-suite verify-crop-span-generation
469 default-language: Haskell2010
470 default-extensions: ScopedTypeVariables
472 type: detailed-0.9
474 hs-source-dirs: test
476 test-module: VerifyCropSpanGeneration
478 other-modules: Verify
479 Verify.Graphics.Vty.Attributes
480 Verify.Graphics.Vty.Prelude
481 Verify.Graphics.Vty.Picture
482 Verify.Graphics.Vty.Image
483 Verify.Graphics.Vty.Span
485 build-depends: vty,
486 Cabal >= 1.20,
487 QuickCheck >= 2.7,
488 random >= 1.0 && < 1.2,
489 base >= 4.8 && < 5,
490 bytestring,
491 containers,
492 deepseq >= 1.1 && < 1.5,
493 mtl >= 1.1.1.0 && < 2.3,
494 text >= 0.11.3,
495 unix,
496 utf8-string >= 0.3 && < 1.1,
497 vector >= 0.7
500test-suite verify-layers-span-generation
501 default-language: Haskell2010
502 default-extensions: ScopedTypeVariables
504 type: detailed-0.9
506 hs-source-dirs: test
508 test-module: VerifyLayersSpanGeneration
510 other-modules: Verify
511 Verify.Graphics.Vty.Attributes
512 Verify.Graphics.Vty.Prelude
513 Verify.Graphics.Vty.Picture
514 Verify.Graphics.Vty.Image
515 Verify.Graphics.Vty.Span
517 build-depends: vty,
518 Cabal >= 1.20,
519 QuickCheck >= 2.7,
520 random >= 1.0 && < 1.2,
521 base >= 4.8 && < 5,
522 bytestring,
523 containers,
524 deepseq >= 1.1 && < 1.5,
525 mtl >= 1.1.1.0 && < 2.3,
526 text >= 0.11.3,
527 unix,
528 utf8-string >= 0.3 && < 1.1,
529 vector >= 0.7
531test-suite verify-utf8-width
532 default-language: Haskell2010
533 default-extensions: ScopedTypeVariables
535 type: detailed-0.9
537 hs-source-dirs: test
539 test-module: VerifyUtf8Width
541 other-modules: Verify
543 build-depends: vty,
544 Cabal >= 1.20,
545 QuickCheck >= 2.7,
546 random >= 1.0 && < 1.2,
547 base >= 4.8 && < 5,
548 bytestring,
549 containers,
550 deepseq >= 1.1 && < 1.5,
551 mtl >= 1.1.1.0 && < 2.3,
552 text >= 0.11.3,
553 unix,
554 utf8-string >= 0.3 && < 1.1,
555 vector >= 0.7
557test-suite verify-using-mock-input
558 default-language: Haskell2010
559 default-extensions: ScopedTypeVariables
561 type: exitcode-stdio-1.0
563 hs-source-dirs: test
565 main-is: VerifyUsingMockInput.hs
567 build-depends: vty,
568 Cabal >= 1.20,
569 QuickCheck >= 2.7,
570 smallcheck == 1.*,
571 quickcheck-assertions >= 0.1.1,
572 test-framework == 0.8.*,
573 test-framework-smallcheck == 0.2.*,
574 random >= 1.0 && < 1.2,
575 base >= 4.8 && < 5,
576 bytestring,
577 containers,
578 deepseq >= 1.1 && < 1.5,
579 microlens,
580 microlens-mtl,
581 mtl >= 1.1.1.0 && < 2.3,
582 stm,
583 terminfo >= 0.3 && < 0.5,
584 text >= 0.11.3,
585 unix,
586 utf8-string >= 0.3 && < 1.1,
587 vector >= 0.7
589 ghc-options: -threaded -Wall
591test-suite verify-config
592 default-language: Haskell2010
593 default-extensions: ScopedTypeVariables
595 type: exitcode-stdio-1.0
597 hs-source-dirs: test
599 main-is: VerifyConfig.hs
601 build-depends: vty,
602 Cabal >= 1.20,
603 HUnit,
604 QuickCheck >= 2.7,
605 smallcheck == 1.*,
606 quickcheck-assertions >= 0.1.1,
607 test-framework == 0.8.*,
608 test-framework-smallcheck == 0.2.*,
609 test-framework-hunit,
610 random >= 1.0 && < 1.2,
611 base >= 4.8 && < 5,
612 bytestring,
613 containers,
614 deepseq >= 1.1 && < 1.5,
615 microlens,
616 microlens-mtl,
617 mtl >= 1.1.1.0 && < 2.3,
618 string-qq,
619 terminfo >= 0.3 && < 0.5,
620 text >= 0.11.3,
621 unix,
622 utf8-string >= 0.3 && < 1.1,
623 vector >= 0.7
625 ghc-options: -threaded -Wall