on 5.24 help sign in
vty/vty.cabal
605 lines 20 kB history raw
1name: vty
2version: 5.24
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
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
121executable vty-mode-demo
122 main-is: ModeDemo.hs
123 hs-source-dirs: demos
125 default-language: Haskell2010
126 default-extensions: ScopedTypeVariables
127 ghc-options: -threaded
129 build-depends: vty,
130 base >= 4.8 && < 5,
131 containers,
132 microlens,
133 microlens-mtl,
134 mtl >= 1.1.1.0 && < 2.3
136executable vty-demo
137 main-is: Demo.hs
138 hs-source-dirs: demos
140 default-language: Haskell2010
141 default-extensions: ScopedTypeVariables
142 ghc-options: -threaded
144 build-depends: vty,
145 base >= 4.8 && < 5,
146 containers,
147 microlens,
148 microlens-mtl,
149 mtl >= 1.1.1.0 && < 2.3
151test-suite verify-using-mock-terminal
152 default-language: Haskell2010
153 default-extensions: ScopedTypeVariables
155 type: detailed-0.9
157 hs-source-dirs: test
159 test-module: VerifyUsingMockTerminal
161 other-modules: Verify
162 Verify.Graphics.Vty.Attributes
163 Verify.Graphics.Vty.Prelude
164 Verify.Graphics.Vty.Picture
165 Verify.Graphics.Vty.Image
166 Verify.Graphics.Vty.Span
167 Verify.Graphics.Vty.Output
169 build-depends: vty,
170 Cabal >= 1.20,
171 QuickCheck >= 2.7,
172 random >= 1.0 && < 1.2,
173 base >= 4.8 && < 5,
174 bytestring,
175 containers,
176 deepseq >= 1.1 && < 1.5,
177 mtl >= 1.1.1.0 && < 2.3,
178 text >= 0.11.3,
179 terminfo >= 0.3 && < 0.5,
180 unix,
181 utf8-string >= 0.3 && < 1.1,
182 vector >= 0.7
184test-suite verify-terminal
185 default-language: Haskell2010
186 default-extensions: ScopedTypeVariables
188 type: detailed-0.9
190 hs-source-dirs: test
192 test-module: VerifyOutput
194 other-modules: Verify
195 Verify.Graphics.Vty.Attributes
196 Verify.Graphics.Vty.Prelude
197 Verify.Graphics.Vty.Picture
198 Verify.Graphics.Vty.Image
199 Verify.Graphics.Vty.Span
200 Verify.Graphics.Vty.Output
202 build-depends: vty,
203 Cabal >= 1.20,
204 QuickCheck >= 2.7,
205 random >= 1.0 && < 1.2,
206 base >= 4.8 && < 5,
207 bytestring,
208 containers,
209 deepseq >= 1.1 && < 1.5,
210 mtl >= 1.1.1.0 && < 2.3,
211 terminfo >= 0.3 && < 0.5,
212 text >= 0.11.3,
213 unix,
214 utf8-string >= 0.3 && < 1.1,
215 vector >= 0.7
217test-suite verify-display-attributes
218 default-language: Haskell2010
219 default-extensions: ScopedTypeVariables
221 type: detailed-0.9
223 hs-source-dirs: test
225 test-module: VerifyDisplayAttributes
227 other-modules: Verify
228 Verify.Graphics.Vty.Attributes
229 Verify.Graphics.Vty.DisplayAttributes
230 Verify.Graphics.Vty.Prelude
231 Verify.Graphics.Vty.Picture
232 Verify.Graphics.Vty.Image
233 Verify.Graphics.Vty.Span
235 build-depends: vty,
236 Cabal >= 1.20,
237 QuickCheck >= 2.7,
238 random >= 1.0 && < 1.2,
239 base >= 4.8 && < 5,
240 bytestring,
241 containers,
242 deepseq >= 1.1 && < 1.5,
243 mtl >= 1.1.1.0 && < 2.3,
244 text >= 0.11.3,
245 unix,
246 utf8-string >= 0.3 && < 1.1,
247 vector >= 0.7
249test-suite verify-empty-image-props
250 default-language: Haskell2010
251 default-extensions: ScopedTypeVariables
253 type: detailed-0.9
255 hs-source-dirs: test
257 test-module: VerifyEmptyImageProps
259 other-modules: Verify
261 build-depends: vty,
262 Cabal >= 1.20,
263 QuickCheck >= 2.7,
264 random >= 1.0 && < 1.2,
265 base >= 4.8 && < 5,
266 bytestring,
267 containers,
268 deepseq >= 1.1 && < 1.5,
269 mtl >= 1.1.1.0 && < 2.3,
270 text >= 0.11.3,
271 unix,
272 utf8-string >= 0.3 && < 1.1,
273 vector >= 0.7
275test-suite verify-eval-terminfo-caps
276 default-language: Haskell2010
277 default-extensions: ScopedTypeVariables
279 type: detailed-0.9
281 hs-source-dirs: test
283 test-module: VerifyEvalTerminfoCaps
285 other-modules: Verify
286 Verify.Graphics.Vty.Output
288 build-depends: vty,
289 Cabal >= 1.20,
290 QuickCheck >= 2.7,
291 random >= 1.0 && < 1.2,
292 base >= 4.8 && < 5,
293 blaze-builder >= 0.3.3.2 && < 0.5,
294 bytestring,
295 containers,
296 deepseq >= 1.1 && < 1.5,
297 mtl >= 1.1.1.0 && < 2.3,
298 terminfo >= 0.3 && < 0.5,
299 text >= 0.11.3,
300 unix,
301 utf8-string >= 0.3 && < 1.1,
302 vector >= 0.7
304test-suite verify-image-ops
305 default-language: Haskell2010
306 default-extensions: ScopedTypeVariables
308 type: detailed-0.9
310 hs-source-dirs: test
312 test-module: VerifyImageOps
314 other-modules: Verify
315 Verify.Graphics.Vty.Attributes
316 Verify.Graphics.Vty.Image
318 build-depends: vty,
319 Cabal >= 1.20,
320 QuickCheck >= 2.7,
321 random >= 1.0 && < 1.2,
322 base >= 4.8 && < 5,
323 bytestring,
324 containers,
325 deepseq >= 1.1 && < 1.5,
326 mtl >= 1.1.1.0 && < 2.3,
327 text >= 0.11.3,
328 unix,
329 utf8-string >= 0.3 && < 1.1,
330 vector >= 0.7
332test-suite verify-image-trans
333 default-language: Haskell2010
334 default-extensions: ScopedTypeVariables
336 type: detailed-0.9
338 hs-source-dirs: test
340 test-module: VerifyImageTrans
342 other-modules: Verify
343 Verify.Graphics.Vty.Attributes
344 Verify.Graphics.Vty.Image
346 build-depends: vty,
347 Cabal >= 1.20,
348 QuickCheck >= 2.7,
349 random >= 1.0 && < 1.2,
350 base >= 4.8 && < 5,
351 bytestring,
352 containers,
353 deepseq >= 1.1 && < 1.5,
354 mtl >= 1.1.1.0 && < 2.3,
355 text >= 0.11.3,
356 unix,
357 utf8-string >= 0.3 && < 1.1,
358 vector >= 0.7
360test-suite verify-inline
361 default-language: Haskell2010
362 default-extensions: ScopedTypeVariables
364 type: detailed-0.9
366 hs-source-dirs: test
368 test-module: VerifyInline
370 other-modules: Verify
371 Verify.Graphics.Vty.Output
373 build-depends: vty,
374 Cabal >= 1.20,
375 QuickCheck >= 2.7,
376 random >= 1.0 && < 1.2,
377 base >= 4.8 && < 5,
378 bytestring,
379 containers,
380 deepseq >= 1.1 && < 1.5,
381 mtl >= 1.1.1.0 && < 2.3,
382 text >= 0.11.3,
383 unix,
384 utf8-string >= 0.3 && < 1.1,
385 vector >= 0.7
387test-suite verify-parse-terminfo-caps
388 default-language: Haskell2010
389 default-extensions: ScopedTypeVariables
391 type: detailed-0.9
393 hs-source-dirs: test
395 test-module: VerifyParseTerminfoCaps
397 other-modules: Verify
398 Verify.Data.Terminfo.Parse
399 Verify.Graphics.Vty.Output
401 build-depends: vty,
402 Cabal >= 1.20,
403 QuickCheck >= 2.7,
404 random >= 1.0 && < 1.2,
405 base >= 4.8 && < 5,
406 bytestring,
407 containers,
408 deepseq >= 1.1 && < 1.5,
409 mtl >= 1.1.1.0 && < 2.3,
410 terminfo >= 0.3 && < 0.5,
411 text >= 0.11.3,
412 unix,
413 utf8-string >= 0.3 && < 1.1,
414 vector >= 0.7
416test-suite verify-simple-span-generation
417 default-language: Haskell2010
418 default-extensions: ScopedTypeVariables
420 type: detailed-0.9
422 hs-source-dirs: test
424 test-module: VerifySimpleSpanGeneration
426 other-modules: Verify
427 Verify.Graphics.Vty.Attributes
428 Verify.Graphics.Vty.Prelude
429 Verify.Graphics.Vty.Picture
430 Verify.Graphics.Vty.Image
431 Verify.Graphics.Vty.Span
433 build-depends: vty,
434 Cabal >= 1.20,
435 QuickCheck >= 2.7,
436 random >= 1.0 && < 1.2,
437 base >= 4.8 && < 5,
438 bytestring,
439 containers,
440 deepseq >= 1.1 && < 1.5,
441 mtl >= 1.1.1.0 && < 2.3,
442 text >= 0.11.3,
443 unix,
444 utf8-string >= 0.3 && < 1.1,
445 vector >= 0.7
448test-suite verify-crop-span-generation
449 default-language: Haskell2010
450 default-extensions: ScopedTypeVariables
452 type: detailed-0.9
454 hs-source-dirs: test
456 test-module: VerifyCropSpanGeneration
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.8 && < 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-layers-span-generation
481 default-language: Haskell2010
482 default-extensions: ScopedTypeVariables
484 type: detailed-0.9
486 hs-source-dirs: test
488 test-module: VerifyLayersSpanGeneration
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.8 && < 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
511test-suite verify-utf8-width
512 default-language: Haskell2010
513 default-extensions: ScopedTypeVariables
515 type: detailed-0.9
517 hs-source-dirs: test
519 test-module: VerifyUtf8Width
521 other-modules: Verify
523 build-depends: vty,
524 Cabal >= 1.20,
525 QuickCheck >= 2.7,
526 random >= 1.0 && < 1.2,
527 base >= 4.8 && < 5,
528 bytestring,
529 containers,
530 deepseq >= 1.1 && < 1.5,
531 mtl >= 1.1.1.0 && < 2.3,
532 text >= 0.11.3,
533 unix,
534 utf8-string >= 0.3 && < 1.1,
535 vector >= 0.7
537test-suite verify-using-mock-input
538 default-language: Haskell2010
539 default-extensions: ScopedTypeVariables
541 type: exitcode-stdio-1.0
543 hs-source-dirs: test
545 main-is: VerifyUsingMockInput.hs
547 build-depends: vty,
548 Cabal >= 1.20,
549 QuickCheck >= 2.7,
550 smallcheck == 1.*,
551 quickcheck-assertions >= 0.1.1,
552 test-framework == 0.8.*,
553 test-framework-smallcheck == 0.2.*,
554 random >= 1.0 && < 1.2,
555 base >= 4.8 && < 5,
556 bytestring,
557 containers,
558 deepseq >= 1.1 && < 1.5,
559 microlens,
560 microlens-mtl,
561 mtl >= 1.1.1.0 && < 2.3,
562 stm,
563 terminfo >= 0.3 && < 0.5,
564 text >= 0.11.3,
565 unix,
566 utf8-string >= 0.3 && < 1.1,
567 vector >= 0.7
569 ghc-options: -threaded -Wall
571test-suite verify-config
572 default-language: Haskell2010
573 default-extensions: ScopedTypeVariables
575 type: exitcode-stdio-1.0
577 hs-source-dirs: test
579 main-is: VerifyConfig.hs
581 build-depends: vty,
582 Cabal >= 1.20,
583 HUnit,
584 QuickCheck >= 2.7,
585 smallcheck == 1.*,
586 quickcheck-assertions >= 0.1.1,
587 test-framework == 0.8.*,
588 test-framework-smallcheck == 0.2.*,
589 test-framework-hunit,
590 random >= 1.0 && < 1.2,
591 base >= 4.8 && < 5,
592 bytestring,
593 containers,
594 deepseq >= 1.1 && < 1.5,
595 microlens,
596 microlens-mtl,
597 mtl >= 1.1.1.0 && < 2.3,
598 string-qq,
599 terminfo >= 0.3 && < 0.5,
600 text >= 0.11.3,
601 unix,
602 utf8-string >= 0.3 && < 1.1,
603 vector >= 0.7
605 ghc-options: -threaded -Wall