on 5.20 help sign in
vty/vty.cabal
627 lines 21 kB history raw
1name: vty
2version: 5.20
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.6.2
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,
49 microlens-mtl,
50 microlens-th,
51 -- required for nice installation with yi
52 hashable >= 1.2,
53 mtl >= 1.1.1.0 && < 2.3,
54 parallel >= 2.2 && < 3.3,
55 parsec >= 2 && < 4,
56 stm,
57 terminfo >= 0.3 && < 0.5,
58 transformers >= 0.3.0.0,
59 text >= 0.11.3,
60 unix,
61 utf8-string >= 0.3 && < 1.1,
62 vector >= 0.7
64 if !impl(ghc >= 8.0)
65 build-depends: semigroups >= 0.16
67 exposed-modules: Graphics.Vty
68 Graphics.Vty.Attributes
69 Graphics.Vty.Config
70 Graphics.Vty.Error
71 Graphics.Vty.Image
72 Graphics.Vty.Inline
73 Graphics.Vty.Inline.Unsafe
74 Graphics.Vty.Input
75 Graphics.Vty.Input.Events
76 Graphics.Vty.Picture
77 Graphics.Vty.Output
78 Graphics.Text.Width
79 -- the modules below are only meant to be used by the tests.
80 Codec.Binary.UTF8.Debug
81 Data.Terminfo.Parse
82 Data.Terminfo.Eval
83 Graphics.Vty.Debug
84 Graphics.Vty.DisplayAttributes
85 Graphics.Vty.Image.Internal
86 Graphics.Vty.Input.Classify
87 Graphics.Vty.Input.Classify.Types
88 Graphics.Vty.Input.Classify.Parse
89 Graphics.Vty.Input.Loop
90 Graphics.Vty.Input.Mouse
91 Graphics.Vty.Input.Focus
92 Graphics.Vty.Input.Paste
93 Graphics.Vty.Input.Terminfo
94 Graphics.Vty.PictureToSpans
95 Graphics.Vty.Span
96 Graphics.Vty.Output.Mock
97 Graphics.Vty.Output.Interface
98 Graphics.Vty.Output.XTermColor
99 Graphics.Vty.Output.TerminfoBased
101 other-modules: Graphics.Vty.Attributes.Color
102 Graphics.Vty.Attributes.Color240
103 Graphics.Vty.Debug.Image
104 Graphics.Vty.Input.Terminfo.ANSIVT
106 c-sources: cbits/gwinsz.c
107 cbits/set_term_timing.c
108 cbits/mk_wcwidth.c
110 include-dirs: cbits
112 hs-source-dirs: src
114 default-extensions: ScopedTypeVariables
115 ForeignFunctionInterface
117 ghc-options: -O2 -funbox-strict-fields -Wall -fspec-constr -fspec-constr-count=10
119 ghc-prof-options: -O2 -funbox-strict-fields -caf-all -Wall -fspec-constr -fspec-constr-count=10
121 cc-options: -O2
123executable vty-mode-demo
124 main-is: ModeDemo.hs
125 hs-source-dirs: demos
127 default-language: Haskell2010
128 default-extensions: ScopedTypeVariables
129 ghc-options: -threaded
131 build-depends: vty,
132 base >= 4.8 && < 5,
133 containers,
134 microlens,
135 microlens-mtl,
136 mtl >= 1.1.1.0 && < 2.3
138executable vty-demo
139 main-is: Demo.hs
140 hs-source-dirs: demos
142 default-language: Haskell2010
143 default-extensions: ScopedTypeVariables
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
153test-suite verify-attribute-ops
154 default-language: Haskell2010
155 default-extensions: ScopedTypeVariables
156 type: detailed-0.9
157 hs-source-dirs: test
158 test-module: VerifyAttributeOps
159 build-depends: vty,
160 Cabal >= 1.20,
161 QuickCheck >= 2.7,
162 random >= 1.0 && < 1.2,
163 base >= 4.8 && < 5,
164 bytestring,
165 containers,
166 deepseq >= 1.1 && < 1.5,
167 mtl >= 1.1.1.0 && < 2.3,
168 text >= 0.11.3,
169 unix,
170 utf8-string >= 0.3 && < 1.1,
171 vector >= 0.7
173test-suite verify-using-mock-terminal
174 default-language: Haskell2010
175 default-extensions: ScopedTypeVariables
177 type: detailed-0.9
179 hs-source-dirs: test
181 test-module: VerifyUsingMockTerminal
183 other-modules: Verify
184 Verify.Graphics.Vty.Attributes
185 Verify.Graphics.Vty.Prelude
186 Verify.Graphics.Vty.Picture
187 Verify.Graphics.Vty.Image
188 Verify.Graphics.Vty.Span
189 Verify.Graphics.Vty.Output
191 build-depends: vty,
192 Cabal >= 1.20,
193 QuickCheck >= 2.7,
194 random >= 1.0 && < 1.2,
195 base >= 4.8 && < 5,
196 bytestring,
197 containers,
198 deepseq >= 1.1 && < 1.5,
199 mtl >= 1.1.1.0 && < 2.3,
200 text >= 0.11.3,
201 terminfo >= 0.3 && < 0.5,
202 unix,
203 utf8-string >= 0.3 && < 1.1,
204 vector >= 0.7
206test-suite verify-terminal
207 default-language: Haskell2010
208 default-extensions: ScopedTypeVariables
210 type: detailed-0.9
212 hs-source-dirs: test
214 test-module: VerifyOutput
216 other-modules: Verify
217 Verify.Graphics.Vty.Attributes
218 Verify.Graphics.Vty.Prelude
219 Verify.Graphics.Vty.Picture
220 Verify.Graphics.Vty.Image
221 Verify.Graphics.Vty.Span
222 Verify.Graphics.Vty.Output
224 build-depends: vty,
225 Cabal >= 1.20,
226 QuickCheck >= 2.7,
227 random >= 1.0 && < 1.2,
228 base >= 4.8 && < 5,
229 bytestring,
230 containers,
231 deepseq >= 1.1 && < 1.5,
232 mtl >= 1.1.1.0 && < 2.3,
233 terminfo >= 0.3 && < 0.5,
234 text >= 0.11.3,
235 unix,
236 utf8-string >= 0.3 && < 1.1,
237 vector >= 0.7
239test-suite verify-display-attributes
240 default-language: Haskell2010
241 default-extensions: ScopedTypeVariables
243 type: detailed-0.9
245 hs-source-dirs: test
247 test-module: VerifyDisplayAttributes
249 other-modules: Verify
250 Verify.Graphics.Vty.Attributes
251 Verify.Graphics.Vty.DisplayAttributes
252 Verify.Graphics.Vty.Prelude
253 Verify.Graphics.Vty.Picture
254 Verify.Graphics.Vty.Image
255 Verify.Graphics.Vty.Span
257 build-depends: vty,
258 Cabal >= 1.20,
259 QuickCheck >= 2.7,
260 random >= 1.0 && < 1.2,
261 base >= 4.8 && < 5,
262 bytestring,
263 containers,
264 deepseq >= 1.1 && < 1.5,
265 mtl >= 1.1.1.0 && < 2.3,
266 text >= 0.11.3,
267 unix,
268 utf8-string >= 0.3 && < 1.1,
269 vector >= 0.7
271test-suite verify-empty-image-props
272 default-language: Haskell2010
273 default-extensions: ScopedTypeVariables
275 type: detailed-0.9
277 hs-source-dirs: test
279 test-module: VerifyEmptyImageProps
281 other-modules: Verify
283 build-depends: vty,
284 Cabal >= 1.20,
285 QuickCheck >= 2.7,
286 random >= 1.0 && < 1.2,
287 base >= 4.8 && < 5,
288 bytestring,
289 containers,
290 deepseq >= 1.1 && < 1.5,
291 mtl >= 1.1.1.0 && < 2.3,
292 text >= 0.11.3,
293 unix,
294 utf8-string >= 0.3 && < 1.1,
295 vector >= 0.7
297test-suite verify-eval-terminfo-caps
298 default-language: Haskell2010
299 default-extensions: ScopedTypeVariables
301 type: detailed-0.9
303 hs-source-dirs: test
305 test-module: VerifyEvalTerminfoCaps
307 other-modules: Verify
308 Verify.Graphics.Vty.Output
310 build-depends: vty,
311 Cabal >= 1.20,
312 QuickCheck >= 2.7,
313 random >= 1.0 && < 1.2,
314 base >= 4.8 && < 5,
315 blaze-builder >= 0.3.3.2 && < 0.5,
316 bytestring,
317 containers,
318 deepseq >= 1.1 && < 1.5,
319 mtl >= 1.1.1.0 && < 2.3,
320 terminfo >= 0.3 && < 0.5,
321 text >= 0.11.3,
322 unix,
323 utf8-string >= 0.3 && < 1.1,
324 vector >= 0.7
326test-suite verify-image-ops
327 default-language: Haskell2010
328 default-extensions: ScopedTypeVariables
330 type: detailed-0.9
332 hs-source-dirs: test
334 test-module: VerifyImageOps
336 other-modules: Verify
337 Verify.Graphics.Vty.Attributes
338 Verify.Graphics.Vty.Image
340 build-depends: vty,
341 Cabal >= 1.20,
342 QuickCheck >= 2.7,
343 random >= 1.0 && < 1.2,
344 base >= 4.8 && < 5,
345 bytestring,
346 containers,
347 deepseq >= 1.1 && < 1.5,
348 mtl >= 1.1.1.0 && < 2.3,
349 text >= 0.11.3,
350 unix,
351 utf8-string >= 0.3 && < 1.1,
352 vector >= 0.7
354test-suite verify-image-trans
355 default-language: Haskell2010
356 default-extensions: ScopedTypeVariables
358 type: detailed-0.9
360 hs-source-dirs: test
362 test-module: VerifyImageTrans
364 other-modules: Verify
365 Verify.Graphics.Vty.Attributes
366 Verify.Graphics.Vty.Image
368 build-depends: vty,
369 Cabal >= 1.20,
370 QuickCheck >= 2.7,
371 random >= 1.0 && < 1.2,
372 base >= 4.8 && < 5,
373 bytestring,
374 containers,
375 deepseq >= 1.1 && < 1.5,
376 mtl >= 1.1.1.0 && < 2.3,
377 text >= 0.11.3,
378 unix,
379 utf8-string >= 0.3 && < 1.1,
380 vector >= 0.7
382test-suite verify-inline
383 default-language: Haskell2010
384 default-extensions: ScopedTypeVariables
386 type: detailed-0.9
388 hs-source-dirs: test
390 test-module: VerifyInline
392 other-modules: Verify
393 Verify.Graphics.Vty.Output
395 build-depends: vty,
396 Cabal >= 1.20,
397 QuickCheck >= 2.7,
398 random >= 1.0 && < 1.2,
399 base >= 4.8 && < 5,
400 bytestring,
401 containers,
402 deepseq >= 1.1 && < 1.5,
403 mtl >= 1.1.1.0 && < 2.3,
404 text >= 0.11.3,
405 unix,
406 utf8-string >= 0.3 && < 1.1,
407 vector >= 0.7
409test-suite verify-parse-terminfo-caps
410 default-language: Haskell2010
411 default-extensions: ScopedTypeVariables
413 type: detailed-0.9
415 hs-source-dirs: test
417 test-module: VerifyParseTerminfoCaps
419 other-modules: Verify
420 Verify.Data.Terminfo.Parse
421 Verify.Graphics.Vty.Output
423 build-depends: vty,
424 Cabal >= 1.20,
425 QuickCheck >= 2.7,
426 random >= 1.0 && < 1.2,
427 base >= 4.8 && < 5,
428 bytestring,
429 containers,
430 deepseq >= 1.1 && < 1.5,
431 mtl >= 1.1.1.0 && < 2.3,
432 terminfo >= 0.3 && < 0.5,
433 text >= 0.11.3,
434 unix,
435 utf8-string >= 0.3 && < 1.1,
436 vector >= 0.7
438test-suite verify-simple-span-generation
439 default-language: Haskell2010
440 default-extensions: ScopedTypeVariables
442 type: detailed-0.9
444 hs-source-dirs: test
446 test-module: VerifySimpleSpanGeneration
448 other-modules: Verify
449 Verify.Graphics.Vty.Attributes
450 Verify.Graphics.Vty.Prelude
451 Verify.Graphics.Vty.Picture
452 Verify.Graphics.Vty.Image
453 Verify.Graphics.Vty.Span
455 build-depends: vty,
456 Cabal >= 1.20,
457 QuickCheck >= 2.7,
458 random >= 1.0 && < 1.2,
459 base >= 4.8 && < 5,
460 bytestring,
461 containers,
462 deepseq >= 1.1 && < 1.5,
463 mtl >= 1.1.1.0 && < 2.3,
464 text >= 0.11.3,
465 unix,
466 utf8-string >= 0.3 && < 1.1,
467 vector >= 0.7
470test-suite verify-crop-span-generation
471 default-language: Haskell2010
472 default-extensions: ScopedTypeVariables
474 type: detailed-0.9
476 hs-source-dirs: test
478 test-module: VerifyCropSpanGeneration
480 other-modules: Verify
481 Verify.Graphics.Vty.Attributes
482 Verify.Graphics.Vty.Prelude
483 Verify.Graphics.Vty.Picture
484 Verify.Graphics.Vty.Image
485 Verify.Graphics.Vty.Span
487 build-depends: vty,
488 Cabal >= 1.20,
489 QuickCheck >= 2.7,
490 random >= 1.0 && < 1.2,
491 base >= 4.8 && < 5,
492 bytestring,
493 containers,
494 deepseq >= 1.1 && < 1.5,
495 mtl >= 1.1.1.0 && < 2.3,
496 text >= 0.11.3,
497 unix,
498 utf8-string >= 0.3 && < 1.1,
499 vector >= 0.7
502test-suite verify-layers-span-generation
503 default-language: Haskell2010
504 default-extensions: ScopedTypeVariables
506 type: detailed-0.9
508 hs-source-dirs: test
510 test-module: VerifyLayersSpanGeneration
512 other-modules: Verify
513 Verify.Graphics.Vty.Attributes
514 Verify.Graphics.Vty.Prelude
515 Verify.Graphics.Vty.Picture
516 Verify.Graphics.Vty.Image
517 Verify.Graphics.Vty.Span
519 build-depends: vty,
520 Cabal >= 1.20,
521 QuickCheck >= 2.7,
522 random >= 1.0 && < 1.2,
523 base >= 4.8 && < 5,
524 bytestring,
525 containers,
526 deepseq >= 1.1 && < 1.5,
527 mtl >= 1.1.1.0 && < 2.3,
528 text >= 0.11.3,
529 unix,
530 utf8-string >= 0.3 && < 1.1,
531 vector >= 0.7
533test-suite verify-utf8-width
534 default-language: Haskell2010
535 default-extensions: ScopedTypeVariables
537 type: detailed-0.9
539 hs-source-dirs: test
541 test-module: VerifyUtf8Width
543 other-modules: Verify
545 build-depends: vty,
546 Cabal >= 1.20,
547 QuickCheck >= 2.7,
548 random >= 1.0 && < 1.2,
549 base >= 4.8 && < 5,
550 bytestring,
551 containers,
552 deepseq >= 1.1 && < 1.5,
553 mtl >= 1.1.1.0 && < 2.3,
554 text >= 0.11.3,
555 unix,
556 utf8-string >= 0.3 && < 1.1,
557 vector >= 0.7
559test-suite verify-using-mock-input
560 default-language: Haskell2010
561 default-extensions: ScopedTypeVariables
563 type: exitcode-stdio-1.0
565 hs-source-dirs: test
567 main-is: VerifyUsingMockInput.hs
569 build-depends: vty,
570 Cabal >= 1.20,
571 QuickCheck >= 2.7,
572 smallcheck == 1.*,
573 quickcheck-assertions >= 0.1.1,
574 test-framework == 0.8.*,
575 test-framework-smallcheck == 0.2.*,
576 random >= 1.0 && < 1.2,
577 base >= 4.8 && < 5,
578 bytestring,
579 containers,
580 deepseq >= 1.1 && < 1.5,
581 microlens,
582 microlens-mtl,
583 mtl >= 1.1.1.0 && < 2.3,
584 stm,
585 terminfo >= 0.3 && < 0.5,
586 text >= 0.11.3,
587 unix,
588 utf8-string >= 0.3 && < 1.1,
589 vector >= 0.7
591 ghc-options: -threaded -Wall
593test-suite verify-config
594 default-language: Haskell2010
595 default-extensions: ScopedTypeVariables
597 type: exitcode-stdio-1.0
599 hs-source-dirs: test
601 main-is: VerifyConfig.hs
603 build-depends: vty,
604 Cabal >= 1.20,
605 HUnit,
606 QuickCheck >= 2.7,
607 smallcheck == 1.*,
608 quickcheck-assertions >= 0.1.1,
609 test-framework == 0.8.*,
610 test-framework-smallcheck == 0.2.*,
611 test-framework-hunit,
612 random >= 1.0 && < 1.2,
613 base >= 4.8 && < 5,
614 bytestring,
615 containers,
616 deepseq >= 1.1 && < 1.5,
617 microlens,
618 microlens-mtl,
619 mtl >= 1.1.1.0 && < 2.3,
620 string-qq,
621 terminfo >= 0.3 && < 0.5,
622 text >= 0.11.3,
623 unix,
624 utf8-string >= 0.3 && < 1.1,
625 vector >= 0.7
627 ghc-options: -threaded -Wall