packages feed

byline-0.4.0.0: byline.cabal

cabal-version: 2.2

--------------------------------------------------------------------------------
name:          byline
version:       0.4.0.0
synopsis:      Library for creating command-line interfaces (colors, menus, etc.)
homepage:      https://github.com/pjones/byline
bug-reports:   https://github.com/pjones/byline/issues
license:       BSD-2-Clause
license-file:  LICENSE
author:        Peter Jones <pjones@devalot.com>
maintainer:    Peter Jones <pjones@devalot.com>
copyright:     Copyright: (c) 2015-2020 Peter J. Jones
category:      System, User Interfaces
build-type:    Simple
stability:     stable
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: https://github.com/pjones/byline.git

--------------------------------------------------------------------------------
flag build-examples
  description: Build examples when building the library.
  manual: True
  default: False

--------------------------------------------------------------------------------
common options
  default-language: Haskell2010
  ghc-options: -Wall
               -Werror=incomplete-record-updates
               -Werror=incomplete-uni-patterns
               -Werror=missing-home-modules
               -Widentities
               -Wmissing-export-lists
               -Wredundant-constraints

--------------------------------------------------------------------------------
common dependencies
  build-depends: base          >= 4.9  && < 5.0
               , ansi-terminal >= 0.6  && < 0.12
               , colour        >= 2.3  && < 2.4
               , containers    >= 0.5  && < 0.7
               , exceptions    >= 0.8  && < 0.11
               , 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

--------------------------------------------------------------------------------
library
  import: options, dependencies
  hs-source-dirs: src

  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

--------------------------------------------------------------------------------
executable simple
  import: options, dependencies
  main-is: examples/simple.hs
  build-depends: byline

  if !flag(build-examples)
    buildable: False

--------------------------------------------------------------------------------
executable menu
  import: options, dependencies
  main-is: examples/menu.hs
  build-depends: byline

  if !flag(build-examples)
    buildable: False