forked from pjones/byline
/
byline.cabal
110 lines (96 loc) · 3.75 KB
/
byline.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
--------------------------------------------------------------------------------
name: byline
version: 0.2.3.0
synopsis: Library for creating command-line interfaces (colors, menus, etc.)
homepage: http://github.com/pjones/byline
bug-reports: http://github.com/pjones/byline/issues
license: BSD2
license-file: LICENSE
author: Peter Jones <pjones@devalot.com>
maintainer: Peter Jones <pjones@devalot.com>
copyright: Copyright: (c) 2015,2016 Peter J. Jones
category: System, User Interfaces
build-type: Simple
stability: experimental
tested-with: GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
cabal-version: >=1.18
description:
Byline simplifies writing interactive terminal applications by
building upon @ansi-terminal@ and @haskeline@. This makes it
possible to print messages and prompts that include terminal escape
sequences such as colors that are automatically disabled when
standard input is a file. It also means that Byline works on both
POSIX-compatible systems and on Windows.
.
The primary features of Byline include printing messages, prompting
for input, and generating custom menus. It was inspired by the
@highline@ Ruby library and the @terminal@ library by Craig Roche.
--------------------------------------------------------------------------------
extra-source-files:
CHANGES.md
README.md
examples/*.hs
--------------------------------------------------------------------------------
source-repository head
type: git
location: git://github.com/pjones/byline.git
--------------------------------------------------------------------------------
flag maintainer
description: Enable settings for the package maintainer.
manual: True
default: False
--------------------------------------------------------------------------------
flag build-examples
description: Build examples when building the library.
manual: True
default: False
--------------------------------------------------------------------------------
library
exposed-modules:
System.Console.Byline
System.Console.Byline.Color
System.Console.Byline.Completion
System.Console.Byline.Internal.Byline
System.Console.Byline.Internal.Color
System.Console.Byline.Internal.Completion
System.Console.Byline.Internal.Render
System.Console.Byline.Internal.Types
System.Console.Byline.Menu
System.Console.Byline.Modifiers
System.Console.Byline.Primitive
System.Console.Byline.Stylized
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -fwarn-incomplete-uni-patterns
if flag(maintainer)
ghc-options: -Werror
build-depends: base >= 4.7 && < 5.0
, ansi-terminal >= 0.6 && < 0.7
, colour >= 2.3 && < 2.4
, containers >= 0.5 && < 0.6
, exceptions >= 0.8 && < 0.9
, haskeline >= 0.7 && < 0.8
, mtl >= 2.1 && < 2.3
, terminfo-hs >= 0.1 && < 0.3
, text >= 0.11 && < 1.3
, transformers >= 0.3 && < 0.6
--------------------------------------------------------------------------------
executable simple
main-is: examples/simple.hs
default-language: Haskell2010
ghc-options: -Wall -fwarn-incomplete-uni-patterns
build-depends: base, byline, text
if flag(maintainer)
ghc-options: -Werror
if !flag(build-examples)
buildable: False
--------------------------------------------------------------------------------
executable menu
main-is: examples/menu.hs
default-language: Haskell2010
ghc-options: -Wall -fwarn-incomplete-uni-patterns
build-depends: base, byline, text
if flag(maintainer)
ghc-options: -Werror
if !flag(build-examples)
buildable: False