mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-12-12 12:23:21 +03:00
6330a59ff5
When processing lines, only reference computations which are needed
in the given context. In particular, don’t build up thunks for columns
and lines which cannot be shown.
While «renderFinal» forces unused computations to be garbage-collected,
as of 8e1d7f4
, not building up thunks here will save the GC some work.
275 lines
8.1 KiB
Plaintext
275 lines
8.1 KiB
Plaintext
name: brick
|
|
version: 0.1
|
|
synopsis: A declarative terminal user interface library
|
|
description:
|
|
Write terminal applications painlessly with 'brick'! You write an
|
|
event handler and a drawing function and the library does the rest.
|
|
.
|
|
.
|
|
> module Main where
|
|
>
|
|
> import Brick
|
|
>
|
|
> ui :: Widget
|
|
> ui = str "Hello, world!"
|
|
>
|
|
> main :: IO ()
|
|
> main = simpleMain ui
|
|
.
|
|
.
|
|
To get started, see:
|
|
.
|
|
* <https://github.com/jtdaugherty/brick/blob/master/README.md The README>
|
|
.
|
|
* The <https://github.com/jtdaugherty/brick/blob/master/docs/guide.rst Brick user guide>
|
|
.
|
|
* The demonstration programs in the 'programs' directory
|
|
.
|
|
.
|
|
This package deprecates <http://hackage.haskell.org/package/vty-ui vty-ui>.
|
|
license: BSD3
|
|
license-file: LICENSE
|
|
author: Jonathan Daugherty <cygnus@foobox.com>
|
|
maintainer: Jonathan Daugherty <cygnus@foobox.com>
|
|
copyright: (c) Jonathan Daugherty 2015
|
|
category: Graphics
|
|
build-type: Simple
|
|
cabal-version: >=1.10
|
|
Homepage: https://github.com/jtdaugherty/brick/
|
|
Bug-reports: https://github.com/jtdaugherty/brick/issues
|
|
|
|
data-files: README.md,
|
|
docs/guide.rst,
|
|
CHANGELOG.md
|
|
|
|
Source-Repository head
|
|
type: git
|
|
location: git://github.com/jtdaugherty/brick.git
|
|
|
|
Flag demos
|
|
Description: Build demonstration programs
|
|
Default: False
|
|
|
|
library
|
|
default-language: Haskell2010
|
|
ghc-options: -Wall -fno-warn-unused-do-bind -O3
|
|
hs-source-dirs: src
|
|
exposed-modules:
|
|
Brick
|
|
Brick.AttrMap
|
|
Brick.Focus
|
|
Brick.Main
|
|
Brick.Markup
|
|
Brick.Types
|
|
Brick.Util
|
|
Brick.Widgets.Border
|
|
Brick.Widgets.Border.Style
|
|
Brick.Widgets.Center
|
|
Brick.Widgets.Core
|
|
Brick.Widgets.Dialog
|
|
Brick.Widgets.Edit
|
|
Brick.Widgets.List
|
|
Brick.Widgets.ProgressBar
|
|
Data.Text.Markup
|
|
other-modules:
|
|
Brick.Types.TH
|
|
Brick.Types.Internal
|
|
Brick.Widgets.Internal
|
|
|
|
build-depends: base <= 5,
|
|
vty >= 5.3.1,
|
|
transformers,
|
|
data-default,
|
|
Diff,
|
|
containers,
|
|
lens,
|
|
vector,
|
|
contravariant,
|
|
text,
|
|
text-zipper >= 0.2.1,
|
|
template-haskell,
|
|
deepseq >= 1.4 && < 1.5
|
|
|
|
executable brick-visibility-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: VisibilityDemo.hs
|
|
build-depends: base,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-viewport-scroll-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: ViewportScrollDemo.hs
|
|
build-depends: base,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-dialog-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: DialogDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-layer-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: LayerDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-suspend-resume-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: SuspendAndResumeDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-padding-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: PaddingDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-attr-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: AttrDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-markup-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: MarkupDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-list-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: ListDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens,
|
|
vector
|
|
|
|
executable brick-custom-event-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: CustomEventDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-hello-world-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: HelloWorldDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-edit-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: EditDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|
|
|
|
executable brick-border-demo
|
|
if !flag(demos)
|
|
Buildable: False
|
|
hs-source-dirs: programs
|
|
ghc-options: -threaded -Wall -fno-warn-unused-do-bind -O3
|
|
default-language: Haskell2010
|
|
main-is: BorderDemo.hs
|
|
build-depends: base <= 5,
|
|
brick,
|
|
vty >= 5.3.1,
|
|
data-default,
|
|
text,
|
|
lens
|