on 5.19 help sign in
vty/vty.cabal
624 lines 21 kB history raw
1name: vty
2version: 5.19
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 exposed-modules: Graphics.Vty
65 Graphics.Vty.Attributes
66 Graphics.Vty.Config
67 Graphics.Vty.Error
68 Graphics.Vty.Image
69 Graphics.Vty.Inline
70 Graphics.Vty.Inline.Unsafe
71 Graphics.Vty.Input
72 Graphics.Vty.Input.Events
73 Graphics.Vty.Picture
74 Graphics.Vty.Output
75 Graphics.Text.Width
76 -- the modules below are only meant to be used by the tests.
77 Codec.Binary.UTF8.Debug
78 Data.Terminfo.Parse
79 Data.Terminfo.Eval
80 Graphics.Vty.Debug
81 Graphics.Vty.DisplayAttributes
82 Graphics.Vty.Image.Internal
83 Graphics.Vty.Input.Classify
84 Graphics.Vty.Input.Classify.Types
85 Graphics.Vty.Input.Classify.Parse
86 Graphics.Vty.Input.Loop
87 Graphics.Vty.Input.Mouse
88 Graphics.Vty.Input.Focus
89 Graphics.Vty.Input.Paste
90 Graphics.Vty.Input.Terminfo
91 Graphics.Vty.PictureToSpans
92 Graphics.Vty.Span
93 Graphics.Vty.Output.Mock
94 Graphics.Vty.Output.Interface
95 Graphics.Vty.Output.XTermColor
96 Graphics.Vty.Output.TerminfoBased
98 other-modules: Graphics.Vty.Attributes.Color
99 Graphics.Vty.Attributes.Color240
100 Graphics.Vty.Debug.Image
101 Graphics.Vty.Input.Terminfo.ANSIVT
103 c-sources: cbits/gwinsz.c
104 cbits/set_term_timing.c
105 cbits/mk_wcwidth.c
107 include-dirs: cbits
109 hs-source-dirs: src
111 default-extensions: ScopedTypeVariables
112 ForeignFunctionInterface
114 ghc-options: -O2 -funbox-strict-fields -Wall -fspec-constr -fspec-constr-count=10
116 ghc-prof-options: -O2 -funbox-strict-fields -caf-all -Wall -fspec-constr -fspec-constr-count=10
118 cc-options: -O2
120executable vty-mode-demo
121 main-is: ModeDemo.hs
122 hs-source-dirs: demos
124 default-language: Haskell2010
125 default-extensions: ScopedTypeVariables
126 ghc-options: -threaded
128 build-depends: vty,
129 base >= 4.8 && < 5,
130 containers,
131 microlens,
132 microlens-mtl,
133 mtl >= 1.1.1.0 && < 2.3
135executable vty-demo
136 main-is: Demo.hs
137 hs-source-dirs: demos
139 default-language: Haskell2010
140 default-extensions: ScopedTypeVariables
141 ghc-options: -threaded
143 build-depends: vty,
144 base >= 4.8 && < 5,
145 containers,
146 microlens,
147 microlens-mtl,
148 mtl >= 1.1.1.0 && < 2.3
150test-suite verify-attribute-ops
151 default-language: Haskell2010
152 default-extensions: ScopedTypeVariables
153 type: detailed-0.9
154 hs-source-dirs: test
155 test-module: VerifyAttributeOps
156 build-depends: vty,
157 Cabal >= 1.20,
158 QuickCheck >= 2.7,
159 random >= 1.0 && < 1.2,
160 base >= 4.8 && < 5,
161 bytestring,
162 containers,
163 deepseq >= 1.1 && < 1.5,
164 mtl >= 1.1.1.0 && < 2.3,
165 text >= 0.11.3,
166 unix,
167 utf8-string >= 0.3 && < 1.1,
168 vector >= 0.7
170test-suite verify-using-mock-terminal
171 default-language: Haskell2010
172 default-extensions: ScopedTypeVariables
174 type: detailed-0.9
176 hs-source-dirs: test
178 test-module: VerifyUsingMockTerminal
180 other-modules: Verify
181 Verify.Graphics.Vty.Attributes
182 Verify.Graphics.Vty.Prelude
183 Verify.Graphics.Vty.Picture
184 Verify.Graphics.Vty.Image
185 Verify.Graphics.Vty.Span
186 Verify.Graphics.Vty.Output
188 build-depends: vty,
189 Cabal >= 1.20,
190 QuickCheck >= 2.7,
191 random >= 1.0 && < 1.2,
192 base >= 4.8 && < 5,
193 bytestring,
194 containers,
195 deepseq >= 1.1 && < 1.5,
196 mtl >= 1.1.1.0 && < 2.3,
197 text >= 0.11.3,
198 terminfo >= 0.3 && < 0.5,
199 unix,
200 utf8-string >= 0.3 && < 1.1,
201 vector >= 0.7
203test-suite verify-terminal
204 default-language: Haskell2010
205 default-extensions: ScopedTypeVariables
207 type: detailed-0.9
209 hs-source-dirs: test
211 test-module: VerifyOutput
213 other-modules: Verify
214 Verify.Graphics.Vty.Attributes
215 Verify.Graphics.Vty.Prelude
216 Verify.Graphics.Vty.Picture
217 Verify.Graphics.Vty.Image
218 Verify.Graphics.Vty.Span
219 Verify.Graphics.Vty.Output
221 build-depends: vty,
222 Cabal >= 1.20,
223 QuickCheck >= 2.7,
224 random >= 1.0 && < 1.2,
225 base >= 4.8 && < 5,
226 bytestring,
227 containers,
228 deepseq >= 1.1 && < 1.5,
229 mtl >= 1.1.1.0 && < 2.3,
230 terminfo >= 0.3 && < 0.5,
231 text >= 0.11.3,
232 unix,
233 utf8-string >= 0.3 && < 1.1,
234 vector >= 0.7
236test-suite verify-display-attributes
237 default-language: Haskell2010
238 default-extensions: ScopedTypeVariables
240 type: detailed-0.9
242 hs-source-dirs: test
244 test-module: VerifyDisplayAttributes
246 other-modules: Verify
247 Verify.Graphics.Vty.Attributes
248 Verify.Graphics.Vty.DisplayAttributes
249 Verify.Graphics.Vty.Prelude
250 Verify.Graphics.Vty.Picture
251 Verify.Graphics.Vty.Image
252 Verify.Graphics.Vty.Span
254 build-depends: vty,
255 Cabal >= 1.20,
256 QuickCheck >= 2.7,
257 random >= 1.0 && < 1.2,
258 base >= 4.8 && < 5,
259 bytestring,
260 containers,
261 deepseq >= 1.1 && < 1.5,
262 mtl >= 1.1.1.0 && < 2.3,
263 text >= 0.11.3,
264 unix,
265 utf8-string >= 0.3 && < 1.1,
266 vector >= 0.7
268test-suite verify-empty-image-props
269 default-language: Haskell2010
270 default-extensions: ScopedTypeVariables
272 type: detailed-0.9
274 hs-source-dirs: test
276 test-module: VerifyEmptyImageProps
278 other-modules: Verify
280 build-depends: vty,
281 Cabal >= 1.20,
282 QuickCheck >= 2.7,
283 random >= 1.0 && < 1.2,
284 base >= 4.8 && < 5,
285 bytestring,
286 containers,
287 deepseq >= 1.1 && < 1.5,
288 mtl >= 1.1.1.0 && < 2.3,
289 text >= 0.11.3,
290 unix,
291 utf8-string >= 0.3 && < 1.1,
292 vector >= 0.7
294test-suite verify-eval-terminfo-caps
295 default-language: Haskell2010
296 default-extensions: ScopedTypeVariables
298 type: detailed-0.9
300 hs-source-dirs: test
302 test-module: VerifyEvalTerminfoCaps
304 other-modules: Verify
305 Verify.Graphics.Vty.Output
307 build-depends: vty,
308 Cabal >= 1.20,
309 QuickCheck >= 2.7,
310 random >= 1.0 && < 1.2,
311 base >= 4.8 && < 5,
312 blaze-builder >= 0.3.3.2 && < 0.5,
313 bytestring,
314 containers,
315 deepseq >= 1.1 && < 1.5,
316 mtl >= 1.1.1.0 && < 2.3,
317 terminfo >= 0.3 && < 0.5,
318 text >= 0.11.3,
319 unix,
320 utf8-string >= 0.3 && < 1.1,
321 vector >= 0.7
323test-suite verify-image-ops
324 default-language: Haskell2010
325 default-extensions: ScopedTypeVariables
327 type: detailed-0.9
329 hs-source-dirs: test
331 test-module: VerifyImageOps
333 other-modules: Verify
334 Verify.Graphics.Vty.Attributes
335 Verify.Graphics.Vty.Image
337 build-depends: vty,
338 Cabal >= 1.20,
339 QuickCheck >= 2.7,
340 random >= 1.0 && < 1.2,
341 base >= 4.8 && < 5,
342 bytestring,
343 containers,
344 deepseq >= 1.1 && < 1.5,
345 mtl >= 1.1.1.0 && < 2.3,
346 text >= 0.11.3,
347 unix,
348 utf8-string >= 0.3 && < 1.1,
349 vector >= 0.7
351test-suite verify-image-trans
352 default-language: Haskell2010
353 default-extensions: ScopedTypeVariables
355 type: detailed-0.9
357 hs-source-dirs: test
359 test-module: VerifyImageTrans
361 other-modules: Verify
362 Verify.Graphics.Vty.Attributes
363 Verify.Graphics.Vty.Image
365 build-depends: vty,
366 Cabal >= 1.20,
367 QuickCheck >= 2.7,
368 random >= 1.0 && < 1.2,
369 base >= 4.8 && < 5,
370 bytestring,
371 containers,
372 deepseq >= 1.1 && < 1.5,
373 mtl >= 1.1.1.0 && < 2.3,
374 text >= 0.11.3,
375 unix,
376 utf8-string >= 0.3 && < 1.1,
377 vector >= 0.7
379test-suite verify-inline
380 default-language: Haskell2010
381 default-extensions: ScopedTypeVariables
383 type: detailed-0.9
385 hs-source-dirs: test
387 test-module: VerifyInline
389 other-modules: Verify
390 Verify.Graphics.Vty.Output
392 build-depends: vty,
393 Cabal >= 1.20,
394 QuickCheck >= 2.7,
395 random >= 1.0 && < 1.2,
396 base >= 4.8 && < 5,
397 bytestring,
398 containers,
399 deepseq >= 1.1 && < 1.5,
400 mtl >= 1.1.1.0 && < 2.3,
401 text >= 0.11.3,
402 unix,
403 utf8-string >= 0.3 && < 1.1,
404 vector >= 0.7
406test-suite verify-parse-terminfo-caps
407 default-language: Haskell2010
408 default-extensions: ScopedTypeVariables
410 type: detailed-0.9
412 hs-source-dirs: test
414 test-module: VerifyParseTerminfoCaps
416 other-modules: Verify
417 Verify.Data.Terminfo.Parse
418 Verify.Graphics.Vty.Output
420 build-depends: vty,
421 Cabal >= 1.20,
422 QuickCheck >= 2.7,
423 random >= 1.0 && < 1.2,
424 base >= 4.8 && < 5,
425 bytestring,
426 containers,
427 deepseq >= 1.1 && < 1.5,
428 mtl >= 1.1.1.0 && < 2.3,
429 terminfo >= 0.3 && < 0.5,
430 text >= 0.11.3,
431 unix,
432 utf8-string >= 0.3 && < 1.1,
433 vector >= 0.7
435test-suite verify-simple-span-generation
436 default-language: Haskell2010
437 default-extensions: ScopedTypeVariables
439 type: detailed-0.9
441 hs-source-dirs: test
443 test-module: VerifySimpleSpanGeneration
445 other-modules: Verify
446 Verify.Graphics.Vty.Attributes
447 Verify.Graphics.Vty.Prelude
448 Verify.Graphics.Vty.Picture
449 Verify.Graphics.Vty.Image
450 Verify.Graphics.Vty.Span
452 build-depends: vty,
453 Cabal >= 1.20,
454 QuickCheck >= 2.7,
455 random >= 1.0 && < 1.2,
456 base >= 4.8 && < 5,
457 bytestring,
458 containers,
459 deepseq >= 1.1 && < 1.5,
460 mtl >= 1.1.1.0 && < 2.3,
461 text >= 0.11.3,
462 unix,
463 utf8-string >= 0.3 && < 1.1,
464 vector >= 0.7
467test-suite verify-crop-span-generation
468 default-language: Haskell2010
469 default-extensions: ScopedTypeVariables
471 type: detailed-0.9
473 hs-source-dirs: test
475 test-module: VerifyCropSpanGeneration
477 other-modules: Verify
478 Verify.Graphics.Vty.Attributes
479 Verify.Graphics.Vty.Prelude
480 Verify.Graphics.Vty.Picture
481 Verify.Graphics.Vty.Image
482 Verify.Graphics.Vty.Span
484 build-depends: vty,
485 Cabal >= 1.20,
486 QuickCheck >= 2.7,
487 random >= 1.0 && < 1.2,
488 base >= 4.8 && < 5,
489 bytestring,
490 containers,
491 deepseq >= 1.1 && < 1.5,
492 mtl >= 1.1.1.0 && < 2.3,
493 text >= 0.11.3,
494 unix,
495 utf8-string >= 0.3 && < 1.1,
496 vector >= 0.7
499test-suite verify-layers-span-generation
500 default-language: Haskell2010
501 default-extensions: ScopedTypeVariables
503 type: detailed-0.9
505 hs-source-dirs: test
507 test-module: VerifyLayersSpanGeneration
509 other-modules: Verify
510 Verify.Graphics.Vty.Attributes
511 Verify.Graphics.Vty.Prelude
512 Verify.Graphics.Vty.Picture
513 Verify.Graphics.Vty.Image
514 Verify.Graphics.Vty.Span
516 build-depends: vty,
517 Cabal >= 1.20,
518 QuickCheck >= 2.7,
519 random >= 1.0 && < 1.2,
520 base >= 4.8 && < 5,
521 bytestring,
522 containers,
523 deepseq >= 1.1 && < 1.5,
524 mtl >= 1.1.1.0 && < 2.3,
525 text >= 0.11.3,
526 unix,
527 utf8-string >= 0.3 && < 1.1,
528 vector >= 0.7
530test-suite verify-utf8-width
531 default-language: Haskell2010
532 default-extensions: ScopedTypeVariables
534 type: detailed-0.9
536 hs-source-dirs: test
538 test-module: VerifyUtf8Width
540 other-modules: Verify
542 build-depends: vty,
543 Cabal >= 1.20,
544 QuickCheck >= 2.7,
545 random >= 1.0 && < 1.2,
546 base >= 4.8 && < 5,
547 bytestring,
548 containers,
549 deepseq >= 1.1 && < 1.5,
550 mtl >= 1.1.1.0 && < 2.3,
551 text >= 0.11.3,
552 unix,
553 utf8-string >= 0.3 && < 1.1,
554 vector >= 0.7
556test-suite verify-using-mock-input
557 default-language: Haskell2010
558 default-extensions: ScopedTypeVariables
560 type: exitcode-stdio-1.0
562 hs-source-dirs: test
564 main-is: VerifyUsingMockInput.hs
566 build-depends: vty,
567 Cabal >= 1.20,
568 QuickCheck >= 2.7,
569 smallcheck == 1.*,
570 quickcheck-assertions >= 0.1.1,
571 test-framework == 0.8.*,
572 test-framework-smallcheck == 0.2.*,
573 random >= 1.0 && < 1.2,
574 base >= 4.8 && < 5,
575 bytestring,
576 containers,
577 deepseq >= 1.1 && < 1.5,
578 microlens,
579 microlens-mtl,
580 mtl >= 1.1.1.0 && < 2.3,
581 stm,
582 terminfo >= 0.3 && < 0.5,
583 text >= 0.11.3,
584 unix,
585 utf8-string >= 0.3 && < 1.1,
586 vector >= 0.7
588 ghc-options: -threaded -Wall
590test-suite verify-config
591 default-language: Haskell2010
592 default-extensions: ScopedTypeVariables
594 type: exitcode-stdio-1.0
596 hs-source-dirs: test
598 main-is: VerifyConfig.hs
600 build-depends: vty,
601 Cabal >= 1.20,
602 HUnit,
603 QuickCheck >= 2.7,
604 smallcheck == 1.*,
605 quickcheck-assertions >= 0.1.1,
606 test-framework == 0.8.*,
607 test-framework-smallcheck == 0.2.*,
608 test-framework-hunit,
609 random >= 1.0 && < 1.2,
610 base >= 4.8 && < 5,
611 bytestring,
612 containers,
613 deepseq >= 1.1 && < 1.5,
614 microlens,
615 microlens-mtl,
616 mtl >= 1.1.1.0 && < 2.3,
617 string-qq,
618 terminfo >= 0.3 && < 0.5,
619 text >= 0.11.3,
620 unix,
621 utf8-string >= 0.3 && < 1.1,
622 vector >= 0.7
624 ghc-options: -threaded -Wall