on master help sign in
separate examples to separate package. add build_examples script for quick testing
commitd9cf8b9252c274c88c42ea63c822c1a70da79177 authorCorey O'Connor <corey@ooyala.com> dateTue 12 Nov 2013, 22:22 (13 years ago) parent4eb85ed
4 files changed+135−132
CHANGELOG+7−7 build_examples+3 test/vty-examples.cabal+108 vty.cabal+17−125
CHANGELOG+7−7
@@ -26,22 +26,22 @@
2626 * the default amount of time between ESC and a subsequent character that causes VTY to
2727 interpret the input as "ESC" then the character, versus some special key, has been
2828 increased to 4000 microseconds; 4 milliseconds.
29− * examples optionally installed, using the --with-examples, with library:
29+ * examples moved to vty-examples package. See test directory for cabal file.
3030 * vty-interactive-terminal-test
3131 * interactive test. Useful for building a bug report for vty's author.
32− * tests/interactive_terminal_test.hs
32+ * test/interactive_terminal_test.hs
3333 * vty-event-echo
34− * view a input event log for vty. Small example of interacting with user.
35− * tests/EventEcho.hs
34+ * view a input event log for vty. Example of interacting with user.
35+ * test/EventEcho.hs
3636 * vty-rouge
37− * A bad rouge-like game. Go from the entrance to exit. Ooooh. Small example of layers
37+ * A bad rouge-like game. Go from the entrance to exit. Example of layers
3838 and image build operations.
39− * tests/Rouge.hs
39+ * test/Rouge.hs
4040 * vty-benchmark
4141 * benchmarks vty. A series of tests that push random pictures to the terminal. The
4242 random pictures are generated using QuickCheck. The same generators used in the
4343 automated tests.
44− * tests/benchmark.hs
44+ * test/benchmark.hs
4545
46464.7.0.0
4747 * API changes:
build_examplesnew file+3
@@ -0,0 +1,3 @@
1+#!/bin/bash
2+cabal install
3+(cd test && cabal install)
test/vty-examples.cabalnew file+108
@@ -0,0 +1,108 @@
1+name: vty-examples
2+version: 5.0.0
3+license: BSD3
4+license-file: ../LICENSE
5+author: AUTHORS
6+maintainer: Corey O'Connor (coreyoconnor@gmail.com)
7+homepage: https://github.com/coreyoconnor/vty
8+category: User Interfaces
9+synopsis: Examples programs using the vty library.
10+description:
11+ vty is terminal GUI library in the niche of ncurses. It is intended to be easy to use, have no
12+ confusing corner cases, and good support for common terminal types.
13+ .
14+ vty-interactive-terminal-test - interactive test. Useful for building a bug report for vtys author.
15+ vty-event-echo - view a input event log for vty. Example of interacting with user.
16+ vty-rouge - A bad rouge-like game. Go from the entrance to exit. Example of layers
17+ vty-benchmark - benchmarks vty. A series of tests that push random pictures to the terminal.
18+ .
19+ &#169; Corey O'Connor; BSD3 license.
20+cabal-version: >= 1.18.0
21+build-type: Simple
22+
23+executable vty-interactive-terminal-test
24+ main-is: interactive_terminal_test.hs
25+
26+ default-language: Haskell2010
27+ default-extensions: ScopedTypeVariables
28+
29+ build-depends: vty,
30+ base >= 4 && < 5,
31+ bytestring,
32+ containers,
33+ deepseq >= 1.1 && < 1.4,
34+ ghc-prim,
35+ lens,
36+ mtl >= 1.1.1.0 && < 2.2,
37+ parallel >= 2.2 && < 3.3,
38+ parsec >= 2 && < 4,
39+ string-qq,
40+ terminfo >= 0.3 && < 0.4,
41+ text >= 0.11.3,
42+ unix,
43+ utf8-string >= 0.3 && < 0.4,
44+ vector >= 0.7
45+
46+executable vty-event-echo
47+ main-is: EventEcho.hs
48+
49+ default-language: Haskell2010
50+ default-extensions: ScopedTypeVariables
51+
52+ build-depends: vty,
53+ base >= 4 && < 5,
54+ array >= 0.4 && < 2.0,
55+ bytestring,
56+ containers,
57+ lens,
58+ mtl >= 1.1.1.0 && < 2.2,
59+ parallel >= 2.2 && < 3.3,
60+ text >= 0.11.3,
61+ utf8-string >= 0.3 && < 0.4,
62+ vector >= 0.7
63+
64+executable vty-rouge
65+ main-is: Rouge.hs
66+
67+ default-language: Haskell2010
68+ default-extensions: ScopedTypeVariables
69+
70+ build-depends: vty,
71+ base >= 4 && < 5,
72+ array >= 0.4 && < 2.0,
73+ bytestring,
74+ containers,
75+ lens,
76+ mtl >= 1.1.1.0 && < 2.2,
77+ parallel >= 2.2 && < 3.3,
78+ random >= 1.0 && < 2.0,
79+ text >= 0.11.3,
80+ utf8-string >= 0.3 && < 0.4,
81+ vector >= 0.7
82+
83+executable vty-benchmark
84+ main-is: benchmark.hs
85+
86+ default-language: Haskell2010
87+ default-extensions: ScopedTypeVariables
88+
89+ build-depends: vty,
90+ base >= 4 && < 5,
91+ bytestring,
92+ Cabal == 1.18.*,
93+ containers,
94+ deepseq >= 1.1 && < 1.4,
95+ ghc-prim,
96+ lens,
97+ mtl >= 1.1.1.0 && < 2.2,
98+ parallel >= 2.2 && < 3.3,
99+ parsec >= 2 && < 4,
100+ QuickCheck >= 2.4,
101+ random == 1.0.*,
102+ string-qq,
103+ terminfo >= 0.3 && < 0.4,
104+ text >= 0.11.3,
105+ unix,
106+ utf8-string >= 0.3 && < 0.4,
107+ vector >= 0.7
108+
vty.cabal+17−125
@@ -27,8 +27,8 @@ description:
2727 &#169; 2006-2007 Stefan O'Rear; BSD3 license.
2828 .
2929 &#169; Corey O'Connor; BSD3 license.
30−cabal-version: >= 1.18.0
31−build-type: Simple
30+cabal-version: >= 1.18.0
31+build-type: Simple
3232data-files: README.md,
3333 TODO,
3434 AUTHORS,
@@ -37,7 +37,6 @@ data-files: README.md,
3737
3838library
3939 default-language: Haskell2010
40− default-extensions: ScopedTypeVariables
4140 build-depends: base >= 4 && < 5,
4241 bytestring,
4342 containers,
@@ -96,7 +95,7 @@ library
9695
9796 hs-source-dirs: src
9897
99− default-extensions: ScopedTypeVariables
98+ default-extensions: ScopedTypeVariables
10099 ForeignFunctionInterface
101100
102101 ghc-options: -O2 -funbox-strict-fields -threaded -Wall -fspec-constr -fspec-constr-count=10
@@ -107,7 +106,7 @@ library
107106
108107test-suite verify-attribute-ops
109108 default-language: Haskell2010
110− default-extensions: ScopedTypeVariables
109+ default-extensions: ScopedTypeVariables
111110 type: detailed-0.9
112111 hs-source-dirs: test
113112 test-module: VerifyAttributeOps
@@ -127,7 +126,7 @@ test-suite verify-attribute-ops
127126
128127test-suite verify-using-mock-terminal
129128 default-language: Haskell2010
130− default-extensions: ScopedTypeVariables
129+ default-extensions: ScopedTypeVariables
131130
132131 type: detailed-0.9
133132
@@ -160,7 +159,7 @@ test-suite verify-using-mock-terminal
160159
161160test-suite verify-terminal
162161 default-language: Haskell2010
163− default-extensions: ScopedTypeVariables
162+ default-extensions: ScopedTypeVariables
164163
165164 type: detailed-0.9
166165
@@ -193,7 +192,7 @@ test-suite verify-terminal
193192
194193test-suite verify-display-attributes
195194 default-language: Haskell2010
196− default-extensions: ScopedTypeVariables
195+ default-extensions: ScopedTypeVariables
197196
198197 type: detailed-0.9
199198
@@ -224,7 +223,7 @@ test-suite verify-display-attributes
224223
225224test-suite verify-empty-image-props
226225 default-language: Haskell2010
227− default-extensions: ScopedTypeVariables
226+ default-extensions: ScopedTypeVariables
228227
229228 type: detailed-0.9
230229
@@ -250,7 +249,7 @@ test-suite verify-empty-image-props
250249
251250test-suite verify-eval-terminfo-caps
252251 default-language: Haskell2010
253− default-extensions: ScopedTypeVariables
252+ default-extensions: ScopedTypeVariables
254253
255254 type: detailed-0.9
256255
@@ -278,7 +277,7 @@ test-suite verify-eval-terminfo-caps
278277
279278test-suite verify-image-ops
280279 default-language: Haskell2010
281− default-extensions: ScopedTypeVariables
280+ default-extensions: ScopedTypeVariables
282281
283282 type: detailed-0.9
284283
@@ -306,7 +305,7 @@ test-suite verify-image-ops
306305
307306test-suite verify-image-trans
308307 default-language: Haskell2010
309− default-extensions: ScopedTypeVariables
308+ default-extensions: ScopedTypeVariables
310309
311310 type: detailed-0.9
312311
@@ -334,7 +333,7 @@ test-suite verify-image-trans
334333
335334test-suite verify-inline
336335 default-language: Haskell2010
337− default-extensions: ScopedTypeVariables
336+ default-extensions: ScopedTypeVariables
338337
339338 type: detailed-0.9
340339
@@ -361,7 +360,7 @@ test-suite verify-inline
361360
362361test-suite verify-parse-terminfo-caps
363362 default-language: Haskell2010
364− default-extensions: ScopedTypeVariables
363+ default-extensions: ScopedTypeVariables
365364
366365 type: detailed-0.9
367366
@@ -390,7 +389,7 @@ test-suite verify-parse-terminfo-caps
390389
391390test-suite verify-simple-span-generation
392391 default-language: Haskell2010
393− default-extensions: ScopedTypeVariables
392+ default-extensions: ScopedTypeVariables
394393
395394 type: detailed-0.9
396395
@@ -422,7 +421,7 @@ test-suite verify-simple-span-generation
422421
423422test-suite verify-crop-span-generation
424423 default-language: Haskell2010
425− default-extensions: ScopedTypeVariables
424+ default-extensions: ScopedTypeVariables
426425
427426 type: detailed-0.9
428427
@@ -454,7 +453,7 @@ test-suite verify-crop-span-generation
454453
455454test-suite verify-layers-span-generation
456455 default-language: Haskell2010
457− default-extensions: ScopedTypeVariables
456+ default-extensions: ScopedTypeVariables
458457
459458 type: detailed-0.9
460459
@@ -485,7 +484,7 @@ test-suite verify-layers-span-generation
485484
486485test-suite verify-utf8-width
487486 default-language: Haskell2010
488− default-extensions: ScopedTypeVariables
487+ default-extensions: ScopedTypeVariables
489488
490489 type: detailed-0.9
491490
@@ -540,110 +539,3 @@ test-suite verify-using-mock-input
540539
541540 ghc-options: -threaded -Wall
542541
543−executable vty-interactive-terminal-test
544− main-is: interactive_terminal_test.hs
545−
546− default-language: Haskell2010
547− default-extensions: ScopedTypeVariables
548−
549− hs-source-dirs: test
550−
551− build-depends: vty,
552− base >= 4 && < 5,
553− bytestring,
554− containers,
555− deepseq >= 1.1 && < 1.4,
556− ghc-prim,
557− lens,
558− mtl >= 1.1.1.0 && < 2.2,
559− parallel >= 2.2 && < 3.3,
560− parsec >= 2 && < 4,
561− string-qq,
562− terminfo >= 0.3 && < 0.4,
563− text >= 0.11.3,
564− unix,
565− utf8-string >= 0.3 && < 0.4,
566− vector >= 0.7
567−
568−executable vty-event-echo
569− main-is: EventEcho.hs
570− hs-source-dirs: test
571−
572− default-language: Haskell2010
573− default-extensions: ScopedTypeVariables
574−
575− build-depends: vty,
576− base >= 4 && < 5,
577− array >= 0.4 && < 2.0,
578− bytestring,
579− containers,
580− lens,
581− mtl >= 1.1.1.0 && < 2.2,
582− parallel >= 2.2 && < 3.3,
583− text >= 0.11.3,
584− utf8-string >= 0.3 && < 0.4,
585− vector >= 0.7
586−
587−executable vty-rouge
588− main-is: Rouge.hs
589− hs-source-dirs: test
590−
591− default-language: Haskell2010
592− default-extensions: ScopedTypeVariables
593−
594− build-depends: vty,
595− base >= 4 && < 5,
596− array >= 0.4 && < 2.0,
597− bytestring,
598− containers,
599− lens,
600− mtl >= 1.1.1.0 && < 2.2,
601− parallel >= 2.2 && < 3.3,
602− random >= 1.0 && < 2.0,
603− text >= 0.11.3,
604− utf8-string >= 0.3 && < 0.4,
605− vector >= 0.7
606−
607−executable vty-benchmark
608− main-is: benchmark.hs
609−
610− default-language: Haskell2010
611− default-extensions: ScopedTypeVariables
612−
613− hs-source-dirs: test
614−
615− build-depends: vty,
616− base >= 4 && < 5,
617− bytestring,
618− Cabal == 1.18.*,
619− containers,
620− deepseq >= 1.1 && < 1.4,
621− ghc-prim,
622− lens,
623− mtl >= 1.1.1.0 && < 2.2,
624− parallel >= 2.2 && < 3.3,
625− parsec >= 2 && < 4,
626− QuickCheck >= 2.4,
627− random == 1.0.*,
628− string-qq,
629− terminfo >= 0.3 && < 0.4,
630− text >= 0.11.3,
631− unix,
632− utf8-string >= 0.3 && < 0.4,
633− vector >= 0.7
634−
635−-- ControlTable.hs
636−-- HereDoc.hs
637−-- Test.hs
638−-- Test2.hs
639−-- Verify.hs
640−-- Verify/Data/Terminfo/Parse.hs
641−-- Verify/Graphics/Vty/Attributes.hs
642−-- Verify/Graphics/Vty/DisplayRegion.hs
643−-- Verify/Graphics/Vty/Image.hs
644−-- Verify/Graphics/Vty/Picture.hs
645−-- Verify/Graphics/Vty/Span.hs
646−-- vty_inline_example.hs
647−-- vty_issue_18.hs
648−-- yi_issue_264.hs
649−