packages feed

vty-unix-0.3.0.0: vty-unix.cabal

cabal-version:      3.0
name:               vty-unix
version:            0.3.0.0
synopsis:           Unix backend for Vty
description:        This package provides Unix terminal support for Vty.
license:            BSD-3-Clause
license-file:       LICENSE
author:             Jonathan Daugherty
maintainer:         cygnus@foobox.com
category:           User Interfaces
copyright:          (c) 2023 Jonathan Daugherty
build-type:         Simple
extra-doc-files:    CHANGELOG.md
extra-source-files: cbits/gwinsz.h
                    cbits/gwinsz.c
                    cbits/set_term_timing.c

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

common warnings
    ghc-options: -Wall

library
    import:           warnings
    hs-source-dirs:   src
    default-language: Haskell2010
    includes:         cbits/gwinsz.h
    c-sources:        cbits/set_term_timing.c
                      cbits/gwinsz.c
    exposed-modules:  Data.Terminfo.Eval
                      Data.Terminfo.Parse
                      Graphics.Vty.Platform.Unix
                      Graphics.Vty.Platform.Unix.Input
                      Graphics.Vty.Platform.Unix.Input.Classify
                      Graphics.Vty.Platform.Unix.Input.Classify.Parse
                      Graphics.Vty.Platform.Unix.Input.Classify.Types
                      Graphics.Vty.Platform.Unix.Input.Focus
                      Graphics.Vty.Platform.Unix.Input.Loop
                      Graphics.Vty.Platform.Unix.Input.Mouse
                      Graphics.Vty.Platform.Unix.Input.Paste
                      Graphics.Vty.Platform.Unix.Input.Terminfo
                      Graphics.Vty.Platform.Unix.Input.Terminfo.ANSIVT
                      Graphics.Vty.Platform.Unix.Output
                      Graphics.Vty.Platform.Unix.Output.Color
                      Graphics.Vty.Platform.Unix.Output.TerminfoBased
                      Graphics.Vty.Platform.Unix.Output.XTermColor
                      Graphics.Vty.Platform.Unix.Settings
    build-depends:    base >= 4.8 && < 5,
                      blaze-builder,
                      bytestring,
                      mtl,
                      unix,
                      terminfo,
                      vty >= 6.6,
                      deepseq,
                      vector,
                      parsec,
                      containers,
                      utf8-string,
                      transformers,
                      stm,
                      microlens,
                      microlens-mtl,
                      microlens-th

executable vty-unix-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 >= 4.8 && < 5,
                       vty,
                       ansi-terminal