packages feed

vty-5.39: vty.cabal

name:                vty
version:             5.39
license:             BSD3
license-file:        LICENSE
author:              AUTHORS
maintainer:          Jonathan Daugherty (cygnus@foobox.com)
homepage:            https://github.com/jtdaugherty/vty
category:            User Interfaces
synopsis:            A simple terminal UI library
description:
  vty is terminal GUI library in the niche of ncurses. It is intended to
  be easy to use and to provide good support for common terminal types.
  .
  See the @vty-examples@ package as well as the program
  @examples/interactive_terminal_test.hs@ included in the @vty@
  repository for examples on how to use the library.
  .
  Import the @Graphics.Vty@ convenience module to get access to the core
  parts of the library.
  .
  © 2006-2007 Stefan O'Rear; BSD3 license.
  .
  © Corey O'Connor; BSD3 license.
  .
  © Jonathan Daugherty; BSD3 license.
cabal-version:       1.18
build-type:          Simple
extra-doc-files:     README.md,
                     AUTHORS,
                     CHANGELOG.md,
                     LICENSE
tested-with:         GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.3, GHC==8.6.5

source-repository head
  type: git
  location: https://github.com/jtdaugherty/vty.git

library
  default-language:    Haskell2010
  include-dirs:        cbits
  hs-source-dirs:      src
  ghc-options:         -O2 -funbox-strict-fields -Wall -fspec-constr -fspec-constr-count=10
  ghc-prof-options:    -O2 -funbox-strict-fields -caf-all -Wall -fspec-constr -fspec-constr-count=10
  build-depends:       base >= 4.8 && < 5,
                       blaze-builder >= 0.3.3.2 && < 0.5,
                       bytestring,
                       containers,
                       deepseq >= 1.1 && < 1.5,
                       directory,
                       filepath >= 1.0 && < 2.0,
                       microlens < 0.4.14,
                       microlens-mtl,
                       microlens-th,
                       mtl >= 1.1.1.0 && < 2.4,
                       parsec >= 2 && < 4,
                       stm,
                       terminfo >= 0.3 && < 0.5,
                       transformers >= 0.3.0.0,
                       text >= 0.11.3,
                       unix,
                       utf8-string >= 0.3 && < 1.1,
                       vector >= 0.7,
                       binary,
                       ansi-terminal >= 0.10.3

  if !impl(ghc >= 8.0)
    build-depends:     semigroups >= 0.16,
                       fail

  exposed-modules:     Graphics.Vty
                       Graphics.Vty.Attributes
                       Graphics.Vty.Attributes.Color
                       Graphics.Vty.Attributes.Color240
                       Graphics.Vty.Config
                       Graphics.Vty.Error
                       Graphics.Vty.Image
                       Graphics.Vty.Inline
                       Graphics.Vty.Inline.Unsafe
                       Graphics.Vty.Input
                       Graphics.Vty.Input.Events
                       Graphics.Vty.Picture
                       Graphics.Vty.Output
                       Graphics.Text.Width
                       Data.Terminfo.Parse
                       Data.Terminfo.Eval
                       Graphics.Vty.Debug
                       Graphics.Vty.DisplayAttributes
                       Graphics.Vty.Image.Internal
                       Graphics.Vty.Input.Classify
                       Graphics.Vty.Input.Classify.Types
                       Graphics.Vty.Input.Classify.Parse
                       Graphics.Vty.Input.Loop
                       Graphics.Vty.Input.Mouse
                       Graphics.Vty.Input.Focus
                       Graphics.Vty.Input.Paste
                       Graphics.Vty.Input.Terminfo
                       Graphics.Vty.PictureToSpans
                       Graphics.Vty.Span
                       Graphics.Vty.Output.Mock
                       Graphics.Vty.Output.Interface
                       Graphics.Vty.Output.XTermColor
                       Graphics.Vty.Output.TerminfoBased
                       Graphics.Vty.UnicodeWidthTable.Types
                       Graphics.Vty.UnicodeWidthTable.IO
                       Graphics.Vty.UnicodeWidthTable.Query
                       Graphics.Vty.UnicodeWidthTable.Install
  other-modules:       Graphics.Vty.Input.Terminfo.ANSIVT
  c-sources:           cbits/gwinsz.c
                       cbits/set_term_timing.c
                       cbits/get_tty_erase.c
                       cbits/mk_wcwidth.c

executable vty-crash-test
  main-is:             CrashTest.hs
  hs-source-dirs:      tools
  default-language:    Haskell2010
  ghc-options:         -threaded -Wall

  if !impl(ghc >= 8.0)
    build-depends:     semigroups >= 0.16

  build-depends:       base,
                       vty,
                       directory,
                       filepath

executable vty-crash-fix
  main-is:             CrashFix.hs
  hs-source-dirs:      tools
  default-language:    Haskell2010
  ghc-options:         -threaded -Wall

  if !impl(ghc >= 8.0)
    build-depends:     semigroups >= 0.16

  build-depends:       base,
                       vty

executable vty-build-width-table
  main-is:             BuildWidthTable.hs
  hs-source-dirs:      tools
  default-language:    Haskell2010
  ghc-options:         -threaded -Wall

  if !impl(ghc >= 8.0)
    build-depends:     semigroups >= 0.16

  build-depends:       base,
                       vty,
                       directory,
                       filepath

executable vty-mode-demo
  main-is:             ModeDemo.hs
  hs-source-dirs:      demos
  default-language:    Haskell2010
  ghc-options:         -threaded
  build-depends:       base,
                       vty,
                       containers,
                       microlens,
                       microlens-mtl,
                       mtl

executable vty-demo
  main-is:             Demo.hs
  hs-source-dirs:      demos
  default-language:    Haskell2010
  ghc-options:         -threaded
  build-depends:       base,
                       vty,
                       containers,
                       microlens,
                       microlens-mtl,
                       mtl