2015-05-09 09:09:40 +03:00
|
|
|
name: brick
|
2021-04-29 22:34:02 +03:00
|
|
|
version: 0.62
|
2015-08-07 05:25:11 +03:00
|
|
|
synopsis: A declarative terminal user interface library
|
2015-08-07 05:10:47 +03:00
|
|
|
description:
|
2020-03-04 19:04:08 +03:00
|
|
|
Write terminal user interfaces (TUIs) painlessly with 'brick'! You
|
|
|
|
write an event handler and a drawing function and the library does the
|
|
|
|
rest.
|
2015-08-07 05:10:47 +03:00
|
|
|
.
|
|
|
|
.
|
|
|
|
> module Main where
|
|
|
|
>
|
2015-08-20 09:13:07 +03:00
|
|
|
> import Brick
|
2015-08-07 05:10:47 +03:00
|
|
|
>
|
2017-02-13 00:48:58 +03:00
|
|
|
> ui :: Widget ()
|
2015-08-07 05:10:47 +03:00
|
|
|
> ui = str "Hello, world!"
|
|
|
|
>
|
|
|
|
> main :: IO ()
|
|
|
|
> main = simpleMain ui
|
|
|
|
.
|
|
|
|
.
|
|
|
|
To get started, see:
|
|
|
|
.
|
2015-08-07 05:25:11 +03:00
|
|
|
* <https://github.com/jtdaugherty/brick/blob/master/README.md The README>
|
|
|
|
.
|
2015-08-07 05:10:47 +03:00
|
|
|
* The <https://github.com/jtdaugherty/brick/blob/master/docs/guide.rst Brick user guide>
|
|
|
|
.
|
|
|
|
* The demonstration programs in the 'programs' directory
|
2015-08-09 07:19:38 +03:00
|
|
|
.
|
|
|
|
.
|
|
|
|
This package deprecates <http://hackage.haskell.org/package/vty-ui vty-ui>.
|
2015-05-09 09:09:40 +03:00
|
|
|
license: BSD3
|
|
|
|
license-file: LICENSE
|
2015-05-19 05:37:11 +03:00
|
|
|
author: Jonathan Daugherty <cygnus@foobox.com>
|
|
|
|
maintainer: Jonathan Daugherty <cygnus@foobox.com>
|
2020-10-12 20:56:43 +03:00
|
|
|
copyright: (c) Jonathan Daugherty 2015-2020
|
2015-05-09 09:09:40 +03:00
|
|
|
category: Graphics
|
|
|
|
build-type: Simple
|
2018-03-26 03:27:25 +03:00
|
|
|
cabal-version: 1.18
|
2015-08-07 05:25:11 +03:00
|
|
|
Homepage: https://github.com/jtdaugherty/brick/
|
|
|
|
Bug-reports: https://github.com/jtdaugherty/brick/issues
|
2020-08-10 19:52:02 +03:00
|
|
|
tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.2
|
2015-08-09 22:57:05 +03:00
|
|
|
|
2017-02-06 20:31:01 +03:00
|
|
|
extra-doc-files: README.md,
|
2015-08-09 22:57:05 +03:00
|
|
|
docs/guide.rst,
|
2017-08-21 04:46:45 +03:00
|
|
|
docs/samtay-tutorial.md,
|
|
|
|
docs/snake-demo.gif,
|
2020-02-01 19:23:25 +03:00
|
|
|
CHANGELOG.md,
|
|
|
|
docs/programs-screenshots.md,
|
|
|
|
docs/programs-screenshots/brick-attr-demo.png,
|
|
|
|
docs/programs-screenshots/brick-border-demo.png,
|
|
|
|
docs/programs-screenshots/brick-cache-demo.png,
|
|
|
|
docs/programs-screenshots/brick-custom-event-demo.png,
|
|
|
|
docs/programs-screenshots/brick-dialog-demo.png,
|
|
|
|
docs/programs-screenshots/brick-dynamic-border-demo.png,
|
|
|
|
docs/programs-screenshots/brick-edit-demo.png,
|
|
|
|
docs/programs-screenshots/brick-file-browser-demo.png,
|
|
|
|
docs/programs-screenshots/brick-fill-demo.png,
|
|
|
|
docs/programs-screenshots/brick-form-demo.png,
|
|
|
|
docs/programs-screenshots/brick-hello-world-demo.png,
|
|
|
|
docs/programs-screenshots/brick-layer-demo.png,
|
|
|
|
docs/programs-screenshots/brick-list-demo.png,
|
|
|
|
docs/programs-screenshots/brick-list-vi-demo.png,
|
|
|
|
docs/programs-screenshots/brick-markup-demo.png,
|
|
|
|
docs/programs-screenshots/brick-mouse-demo.png,
|
|
|
|
docs/programs-screenshots/brick-padding-demo.png,
|
|
|
|
docs/programs-screenshots/brick-progressbar-demo.png,
|
|
|
|
docs/programs-screenshots/brick-readme-demo.png,
|
|
|
|
docs/programs-screenshots/brick-suspend-resume-demo.png,
|
|
|
|
docs/programs-screenshots/brick-text-wrap-demo.png,
|
|
|
|
docs/programs-screenshots/brick-theme-demo.png,
|
|
|
|
docs/programs-screenshots/brick-viewport-scroll-demo.png,
|
|
|
|
docs/programs-screenshots/brick-visibility-demo.png
|
2015-07-08 08:28:51 +03:00
|
|
|
|
|
|
|
Source-Repository head
|
|
|
|
type: git
|
|
|
|
location: git://github.com/jtdaugherty/brick.git
|
2015-05-09 09:09:40 +03:00
|
|
|
|
2015-07-13 08:34:09 +03:00
|
|
|
Flag demos
|
|
|
|
Description: Build demonstration programs
|
|
|
|
Default: False
|
|
|
|
|
2015-05-09 09:09:40 +03:00
|
|
|
library
|
|
|
|
default-language: Haskell2010
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -Wall -Wcompat -O2
|
2016-05-27 21:47:16 +03:00
|
|
|
default-extensions: CPP
|
2015-05-09 09:09:40 +03:00
|
|
|
hs-source-dirs: src
|
2015-05-18 04:04:36 +03:00
|
|
|
exposed-modules:
|
2015-08-20 09:13:07 +03:00
|
|
|
Brick
|
2015-07-08 05:44:07 +03:00
|
|
|
Brick.AttrMap
|
2017-01-07 11:42:59 +03:00
|
|
|
Brick.BChan
|
2018-03-21 19:07:59 +03:00
|
|
|
Brick.BorderMap
|
2015-07-08 05:44:07 +03:00
|
|
|
Brick.Focus
|
2017-12-27 03:29:05 +03:00
|
|
|
Brick.Forms
|
2015-07-08 05:44:07 +03:00
|
|
|
Brick.Main
|
|
|
|
Brick.Markup
|
2017-10-30 05:24:09 +03:00
|
|
|
Brick.Themes
|
2015-07-08 05:44:07 +03:00
|
|
|
Brick.Types
|
|
|
|
Brick.Util
|
2015-06-25 06:58:34 +03:00
|
|
|
Brick.Widgets.Border
|
|
|
|
Brick.Widgets.Border.Style
|
|
|
|
Brick.Widgets.Center
|
|
|
|
Brick.Widgets.Core
|
2015-07-09 00:47:39 +03:00
|
|
|
Brick.Widgets.Dialog
|
2015-06-25 06:58:34 +03:00
|
|
|
Brick.Widgets.Edit
|
2018-11-30 03:21:15 +03:00
|
|
|
Brick.Widgets.FileBrowser
|
2015-06-25 06:58:34 +03:00
|
|
|
Brick.Widgets.List
|
2015-07-13 03:47:24 +03:00
|
|
|
Brick.Widgets.ProgressBar
|
2021-02-01 05:56:26 +03:00
|
|
|
Brick.Widgets.Table
|
2018-03-18 18:24:52 +03:00
|
|
|
Data.IMap
|
2015-06-14 23:23:58 +03:00
|
|
|
Data.Text.Markup
|
2015-05-18 05:37:43 +03:00
|
|
|
other-modules:
|
2018-03-21 19:07:59 +03:00
|
|
|
Brick.Types.Common
|
2015-07-19 22:08:00 +03:00
|
|
|
Brick.Types.TH
|
2015-08-20 05:40:06 +03:00
|
|
|
Brick.Types.Internal
|
2015-06-25 06:54:32 +03:00
|
|
|
Brick.Widgets.Internal
|
2015-05-18 04:04:36 +03:00
|
|
|
|
2021-04-05 19:24:53 +03:00
|
|
|
build-depends: base < 4.16.0.0,
|
2020-10-01 19:07:57 +03:00
|
|
|
vty >= 5.31,
|
2015-05-09 19:43:40 +03:00
|
|
|
transformers,
|
2017-06-11 22:24:13 +03:00
|
|
|
data-clist >= 0.1,
|
2018-12-06 14:46:30 +03:00
|
|
|
directory >= 1.2.5.0,
|
2016-12-31 02:44:34 +03:00
|
|
|
dlist,
|
2020-02-06 03:59:56 +03:00
|
|
|
exceptions >= 0.10.0,
|
2018-11-30 03:21:15 +03:00
|
|
|
filepath,
|
2018-12-08 03:02:29 +03:00
|
|
|
containers >= 0.5.7,
|
2016-05-16 10:55:15 +03:00
|
|
|
microlens >= 0.3.0.0,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens-th,
|
2016-05-27 21:17:43 +03:00
|
|
|
microlens-mtl,
|
2017-10-30 06:27:19 +03:00
|
|
|
config-ini,
|
2015-06-14 23:23:58 +03:00
|
|
|
vector,
|
2015-06-15 02:14:35 +03:00
|
|
|
contravariant,
|
2019-09-13 20:20:12 +03:00
|
|
|
stm >= 2.4.3,
|
2015-06-28 21:57:38 +03:00
|
|
|
text,
|
2016-09-09 06:31:11 +03:00
|
|
|
text-zipper >= 0.7.1,
|
2015-08-24 15:59:39 +03:00
|
|
|
template-haskell,
|
2017-07-08 22:12:12 +03:00
|
|
|
deepseq >= 1.3 && < 1.5,
|
2018-11-30 03:21:15 +03:00
|
|
|
unix,
|
2019-08-30 22:37:37 +03:00
|
|
|
bytestring,
|
2017-08-04 07:06:45 +03:00
|
|
|
word-wrap >= 0.2
|
2018-03-24 04:25:57 +03:00
|
|
|
if impl(ghc < 8.0)
|
|
|
|
build-depends: semigroups
|
2015-05-09 09:09:40 +03:00
|
|
|
|
2021-02-01 05:56:26 +03:00
|
|
|
executable brick-table-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: CPP
|
|
|
|
main-is: TableDemo.hs
|
|
|
|
build-depends: base,
|
|
|
|
brick,
|
|
|
|
text,
|
|
|
|
vty
|
|
|
|
|
2020-08-23 02:06:40 +03:00
|
|
|
executable brick-tail-demo
|
2020-08-23 02:21:06 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2020-08-23 02:06:40 +03:00
|
|
|
hs-source-dirs: programs
|
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: CPP
|
|
|
|
main-is: TailDemo.hs
|
|
|
|
build-depends: base,
|
|
|
|
brick,
|
|
|
|
text,
|
|
|
|
vty,
|
|
|
|
random
|
|
|
|
|
2017-03-12 07:31:55 +03:00
|
|
|
executable brick-readme-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2017-03-12 07:31:55 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: CPP
|
|
|
|
main-is: ReadmeDemo.hs
|
|
|
|
build-depends: base,
|
|
|
|
brick,
|
|
|
|
text
|
|
|
|
|
2018-11-30 03:21:15 +03:00
|
|
|
executable brick-file-browser-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2018-11-30 03:21:15 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: CPP
|
|
|
|
main-is: FileBrowserDemo.hs
|
|
|
|
build-depends: base,
|
|
|
|
vty,
|
|
|
|
brick,
|
|
|
|
text
|
|
|
|
|
2017-12-27 03:29:05 +03:00
|
|
|
executable brick-form-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2017-12-27 03:29:05 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: CPP
|
|
|
|
main-is: FormDemo.hs
|
|
|
|
build-depends: base,
|
|
|
|
brick,
|
|
|
|
text,
|
|
|
|
microlens,
|
|
|
|
microlens-th,
|
|
|
|
vty
|
|
|
|
|
2017-07-07 07:47:41 +03:00
|
|
|
executable brick-text-wrap-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2017-07-07 07:47:41 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: CPP
|
|
|
|
main-is: TextWrapDemo.hs
|
|
|
|
build-depends: base,
|
|
|
|
brick,
|
2017-08-05 19:20:07 +03:00
|
|
|
text,
|
|
|
|
word-wrap
|
2017-07-07 07:47:41 +03:00
|
|
|
|
2016-09-21 07:15:25 +03:00
|
|
|
executable brick-cache-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2016-09-21 07:15:25 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: CPP
|
|
|
|
main-is: CacheDemo.hs
|
|
|
|
build-depends: base,
|
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2016-09-21 07:15:25 +03:00
|
|
|
text,
|
|
|
|
microlens >= 0.3.0.0,
|
|
|
|
microlens-th
|
|
|
|
|
2015-07-18 05:30:42 +03:00
|
|
|
executable brick-visibility-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-07-18 05:30:42 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: VisibilityDemo.hs
|
|
|
|
build-depends: base,
|
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-07-18 05:30:42 +03:00
|
|
|
text,
|
2016-05-16 10:55:15 +03:00
|
|
|
microlens >= 0.3.0.0,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens-th
|
2015-07-18 05:30:42 +03:00
|
|
|
|
2015-07-09 21:03:48 +03:00
|
|
|
executable brick-viewport-scroll-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-07-09 21:03:48 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-07-09 21:03:48 +03:00
|
|
|
default-language: Haskell2010
|
2016-05-27 21:47:16 +03:00
|
|
|
default-extensions: CPP
|
2015-07-09 21:03:48 +03:00
|
|
|
main-is: ViewportScrollDemo.hs
|
|
|
|
build-depends: base,
|
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-07-09 21:03:48 +03:00
|
|
|
text,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens
|
2015-07-09 21:03:48 +03:00
|
|
|
|
2015-07-09 00:47:39 +03:00
|
|
|
executable brick-dialog-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-07-09 00:47:39 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-07-09 00:47:39 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: DialogDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-07-09 00:47:39 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-07-09 00:47:39 +03:00
|
|
|
text,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens
|
2015-07-09 00:47:39 +03:00
|
|
|
|
2016-07-01 05:10:44 +03:00
|
|
|
executable brick-mouse-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2016-07-01 05:10:44 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: MouseDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2016-07-01 05:10:44 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2016-07-01 05:10:44 +03:00
|
|
|
text,
|
|
|
|
microlens >= 0.3.0.0,
|
2016-12-04 07:26:19 +03:00
|
|
|
microlens-th,
|
|
|
|
text-zipper
|
2016-07-01 05:10:44 +03:00
|
|
|
|
2015-07-04 01:49:33 +03:00
|
|
|
executable brick-layer-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-07-04 01:49:33 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-07-04 01:49:33 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: LayerDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-07-04 01:49:33 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-07-04 01:49:33 +03:00
|
|
|
text,
|
2016-05-16 10:55:15 +03:00
|
|
|
microlens >= 0.3.0.0,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens-th
|
2015-07-04 01:49:33 +03:00
|
|
|
|
2015-06-29 09:45:04 +03:00
|
|
|
executable brick-suspend-resume-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-06-29 09:45:04 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-06-29 09:45:04 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: SuspendAndResumeDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-06-29 09:45:04 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-06-29 09:45:04 +03:00
|
|
|
text,
|
2016-05-16 10:55:15 +03:00
|
|
|
microlens >= 0.3.0.0,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens-th
|
2015-06-29 09:45:04 +03:00
|
|
|
|
2021-04-29 22:11:29 +03:00
|
|
|
executable brick-cropping-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: CroppingDemo.hs
|
|
|
|
build-depends: base,
|
|
|
|
brick,
|
|
|
|
vty,
|
|
|
|
text,
|
|
|
|
microlens
|
|
|
|
|
2015-06-29 09:04:27 +03:00
|
|
|
executable brick-padding-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-06-29 09:04:27 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-06-29 09:04:27 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: PaddingDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-06-29 09:04:27 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-06-29 09:04:27 +03:00
|
|
|
text,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens
|
2015-06-29 09:04:27 +03:00
|
|
|
|
2017-11-05 22:19:42 +03:00
|
|
|
executable brick-theme-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2017-11-05 22:19:42 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: ThemeDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2017-11-05 22:19:42 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2017-11-05 22:19:42 +03:00
|
|
|
text,
|
|
|
|
microlens
|
|
|
|
|
2015-06-29 08:40:25 +03:00
|
|
|
executable brick-attr-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-06-29 08:40:25 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-06-29 08:40:25 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: AttrDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-06-29 08:40:25 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-06-29 08:40:25 +03:00
|
|
|
text,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens
|
2015-06-29 08:40:25 +03:00
|
|
|
|
2015-06-29 06:16:51 +03:00
|
|
|
executable brick-markup-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-06-29 06:16:51 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-06-29 06:16:51 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: MarkupDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-06-29 06:16:51 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-06-29 06:16:51 +03:00
|
|
|
text,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens
|
2015-06-29 06:16:51 +03:00
|
|
|
|
2015-06-28 23:06:22 +03:00
|
|
|
executable brick-list-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-06-28 23:06:22 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-06-28 23:06:22 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: ListDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-06-28 23:06:22 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-06-28 23:06:22 +03:00
|
|
|
text,
|
2016-05-16 10:55:15 +03:00
|
|
|
microlens >= 0.3.0.0,
|
2015-08-18 09:33:47 +03:00
|
|
|
vector
|
2015-06-28 23:06:22 +03:00
|
|
|
|
2017-10-03 14:42:52 +03:00
|
|
|
executable brick-list-vi-demo
|
2017-10-01 23:25:55 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2017-10-01 23:25:55 +03:00
|
|
|
default-language: Haskell2010
|
2017-10-03 14:42:52 +03:00
|
|
|
main-is: ListViDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2017-10-01 23:25:55 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2017-10-01 23:25:55 +03:00
|
|
|
text,
|
|
|
|
microlens >= 0.3.0.0,
|
|
|
|
vector
|
|
|
|
|
2015-06-29 08:43:52 +03:00
|
|
|
executable brick-custom-event-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-06-26 09:34:20 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-06-26 09:34:20 +03:00
|
|
|
default-language: Haskell2010
|
2015-06-29 08:43:52 +03:00
|
|
|
main-is: CustomEventDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-06-26 09:34:20 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-06-26 09:34:20 +03:00
|
|
|
text,
|
2016-05-16 10:55:15 +03:00
|
|
|
microlens >= 0.3.0.0,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens-th
|
2015-06-26 09:34:20 +03:00
|
|
|
|
2017-08-03 01:55:09 +03:00
|
|
|
executable brick-fill-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2017-08-03 01:55:09 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: FillDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2017-08-03 01:55:09 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2017-08-03 01:55:09 +03:00
|
|
|
text,
|
|
|
|
microlens
|
|
|
|
|
2015-06-28 22:37:24 +03:00
|
|
|
executable brick-hello-world-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-05-19 20:23:58 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-05-19 20:23:58 +03:00
|
|
|
default-language: Haskell2010
|
2015-06-28 22:37:24 +03:00
|
|
|
main-is: HelloWorldDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-05-19 20:23:58 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-06-14 23:23:58 +03:00
|
|
|
text,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens
|
2015-05-19 20:23:58 +03:00
|
|
|
|
2015-06-28 22:45:26 +03:00
|
|
|
executable brick-edit-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-06-28 22:45:26 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2015-06-28 22:45:26 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: EditDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-06-28 22:45:26 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-06-28 22:45:26 +03:00
|
|
|
text,
|
2016-03-05 02:50:10 +03:00
|
|
|
vector,
|
2016-05-16 10:55:15 +03:00
|
|
|
microlens >= 0.3.0.0,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens-th
|
2015-06-28 22:45:26 +03:00
|
|
|
|
2015-06-28 22:15:55 +03:00
|
|
|
executable brick-border-demo
|
2015-07-13 08:34:09 +03:00
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
2015-06-28 22:15:55 +03:00
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2016-05-27 21:47:16 +03:00
|
|
|
default-extensions: CPP
|
2015-06-28 22:15:55 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: BorderDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2015-06-28 22:15:55 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2015-06-28 22:15:55 +03:00
|
|
|
text,
|
2016-05-09 04:05:30 +03:00
|
|
|
microlens
|
2016-10-27 08:43:48 +03:00
|
|
|
|
2018-03-18 18:24:52 +03:00
|
|
|
executable brick-dynamic-border-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2018-03-18 18:24:52 +03:00
|
|
|
default-extensions: CPP
|
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: DynamicBorderDemo.hs
|
|
|
|
build-depends: base <= 5,
|
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2018-03-18 18:24:52 +03:00
|
|
|
text,
|
|
|
|
microlens
|
|
|
|
|
2016-10-27 08:43:48 +03:00
|
|
|
executable brick-progressbar-demo
|
|
|
|
if !flag(demos)
|
|
|
|
Buildable: False
|
|
|
|
hs-source-dirs: programs
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -threaded -Wall -Wcompat -O2
|
2016-10-27 08:43:48 +03:00
|
|
|
default-extensions: CPP
|
|
|
|
default-language: Haskell2010
|
|
|
|
main-is: ProgressBarDemo.hs
|
2018-03-16 19:18:37 +03:00
|
|
|
build-depends: base,
|
2016-10-27 08:43:48 +03:00
|
|
|
brick,
|
2018-07-30 19:38:15 +03:00
|
|
|
vty,
|
2016-10-27 08:43:48 +03:00
|
|
|
text,
|
|
|
|
microlens
|
2018-03-18 18:24:52 +03:00
|
|
|
|
|
|
|
test-suite brick-tests
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
hs-source-dirs: tests
|
2020-02-29 02:05:48 +03:00
|
|
|
ghc-options: -Wall -Wcompat -O2
|
2018-03-26 03:27:25 +03:00
|
|
|
if impl(ghc >= 8)
|
|
|
|
ghc-options: -Wno-orphans
|
|
|
|
default-language: Haskell2010
|
2018-03-18 18:24:52 +03:00
|
|
|
main-is: Main.hs
|
2018-12-06 13:38:26 +03:00
|
|
|
other-modules: List
|
2018-03-18 18:24:52 +03:00
|
|
|
build-depends: base <=5,
|
|
|
|
brick,
|
|
|
|
containers,
|
2018-12-06 13:38:26 +03:00
|
|
|
microlens,
|
|
|
|
vector,
|
2018-03-18 18:24:52 +03:00
|
|
|
QuickCheck
|
2018-12-03 12:09:42 +03:00
|
|
|
if impl(ghc < 8.0)
|
|
|
|
build-depends: semigroups
|