/
terminal-progress-bar.cabal
74 lines (67 loc) · 2.65 KB
/
terminal-progress-bar.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: terminal-progress-bar
version: 0.0.1.2
cabal-version: >=1.8
build-type: Simple
stability: provisional
author: Roel van Dijk <vandijk.roel@gmail.com>
maintainer: Roel van Dijk <vandijk.roel@gmail.com>
copyright: 2012 Roel van Dijk <vandijk.roel@gmail.com>
license: BSD3
license-file: LICENSE
category: System, User Interfaces
homepage: https://github.com/roelvandijk/terminal-progress-bar
bug-reports: https://github.com/roelvandijk/terminal-progress-bar/issues
synopsis: A simple progress bar in the terminal
description:
A progress bar is used to convey the progress of a task. This
package implements a very simple textual progress bar.
.
See the module 'System.ProgressBar' on how to use the progress bar
or build the package with the -fexample flag for a small example
program.
.
The animated progress bar depends entirely on the interpretation of
the carriage return character (\'\r\'). If your terminal interprets
it as something else then "move cursor to beginning of line", the
animation won't work.
.
Note: Due to a bug in \"cabal haddock\" you will have to manually
uncomment the example section in the cabal file. But uncommenting
that section will result in \"cabal haddock\" failing.
extra-source-files: LICENSE, README.markdown
source-repository head
type: git
location: git://github.com/roelvandijk/terminal-progress-bar.git
flag example
description: Build a small example program.
default: False
library
hs-source-dirs: src
build-depends: base >= 3.0.3.1 && < 4.7
, base-unicode-symbols >= 0.2.2.3 && < 0.3
, base-unicode-symbols >= 0.2.2.3 && < 0.3
, stm >= 2.4 && < 3.0
, stm-chans >= 3.0.0 && < 4.0
exposed-modules: System.ProgressBar
ghc-options: -Wall
test-suite test-terminal-progress-bar
type: exitcode-stdio-1.0
main-is: test.hs
hs-source-dirs: test
ghc-options: -Wall
build-depends: base >= 3.0.3.1 && < 4.7
, base-unicode-symbols >= 0.2.2.3 && < 0.3
, HUnit >= 1.2.4.2 && < 1.3
, terminal-progress-bar
, test-framework >= 0.3.3 && < 0.9
, test-framework-hunit >= 0.2.6 && < 0.4
-- executable example
-- main-is: example.hs
-- hs-source-dirs: .
-- if flag(example)
-- build-depends: base >= 3.0.3.1 && < 4.6
-- , base-unicode-symbols >= 0.2.2.3 && < 0.3
-- , terminal-progress-bar == 0.0.1
-- buildable: True
-- else
-- buildable: False