packages feed

itemfield-1.2.0.0: itemfield.cabal

name:                itemfield
version:             1.2.0.0

synopsis:            A brick Widget for selectable summary of many elements on a terminal
description:         

  This module provides a brick Widget that can be used with the
  brick package to handle situations where there are lots of items
  to represent to the user along with a corresponding state for each
  item.  In addition, the user should be able to use the cursor
  keys and space bar to mark one or more items (presumably so other
  code can get the list of marked elements and perform a
  state-changing operation).
  .
  * 0.1.0.0  -- initial version
  .
  * 0.2.0.0  -- more key events: Shift+Arrow to mark/unmark with move
  .
  * 0.2.0.1  -- more key events: G=toggle group, A=toggle all, !=mrk bad; add helpMsg
  .
  * 0.3.0.0  -- rename from StateFieldSelector to ItemField
  .
  * 0.3.1.0  -- add + key selector to select all successful targets
  .
  * 1.0.0.0  -- update from vty-ui to brick
  .
  * 1.1.0.0  -- add support for 's' and 'f' keys and mouse events
  .
  * 1.2.0.0  -- intermediary state is "Pending"

license:             BSD3
license-file:        LICENSE
author:              Kevin Quick <quick@sparq.org>
maintainer:          quick@sparq.org
copyright:           Kevin Quick, 2013-2016
category:            Graphics, Console
build-type:          Simple
cabal-version:       >=1.8

extra-source-files: brickcompat/015plus/TextUI/ItemField/BrickHelper.hs
                    brickcompat/pre015/TextUI/ItemField/BrickHelper.hs

library
  hs-source-dirs:    src
  exposed-modules:     TextUI.ItemField
  other-modules:       TextUI.ItemField.Types
                     , TextUI.ItemField.Attrs
                     , TextUI.ItemField.Operations
                     , TextUI.ItemField.Layout
                     , TextUI.ItemField.BrickHelper
  build-depends:       base ==4.* , vty, text, microlens
  if flag(brick015plus)
    build-depends:   brick >= 0.15
    hs-source-dirs:  brickcompat/015plus
  else
    build-depends:   brick >= 0.13 && < 0.15
    hs-source-dirs:  brickcompat/pre015
  ghc-options:       -Wall -fno-warn-unused-do-bind -O3


Flag examples
     Description: Build example programs
     Default:     False

Flag brick015plus
     Description: true for Brick version 0.15 or later
     Default: True

executable bookcase
           if !flag(examples)
              Buildable: False
           hs-source-dirs: src, examples
           if flag(brick015plus)
             build-depends:   brick >= 0.15
             hs-source-dirs:  brickcompat/015plus
           else
             build-depends:   brick >= 0.13 && < 0.15
             hs-source-dirs:  brickcompat/pre015
           ghc-options:  -threaded -Wall -fno-warn-unused-do-bind -O3
           -- default-language: Haskell2010
           main-is: bookcase.hs
           build-depends: base==4.*
                        , brick >= 0.13 && < 1.0
                        , vty, text, microlens, microlens-th
                        , itemfield, data-default


executable workreport
           if !flag(examples)
              Buildable: False
           hs-source-dirs: src, examples
           if flag(brick015plus)
             build-depends:   brick >= 0.15
             hs-source-dirs:  brickcompat/015plus
           else
             build-depends:   brick >= 0.13 && < 0.15
             hs-source-dirs:  brickcompat/pre015
           ghc-options:  -threaded -Wall -fno-warn-unused-do-bind -O3
           -- default-language: Haskell2010
           main-is: workreport.hs
           build-depends: base==4.*
                        , brick >= 0.13 && < 1.0
                        , vty, text, microlens, microlens-th
                        , itemfield, data-default, random


test-suite test_itemfield
           type: exitcode-stdio-1.0
           main-is: test_itemfield.hs
           hs-source-dirs: test, src
           if flag(brick015plus)
             build-depends:   brick >= 0.15
             hs-source-dirs:  brickcompat/015plus
           else
             build-depends:   brick >= 0.13 && < 0.15
             hs-source-dirs:  brickcompat/pre015
           ghc-options:  -threaded -O0
           build-depends: base, HUnit, QuickCheck
                        , test-framework, test-framework-hunit
                        , test-framework-quickcheck2
                        , brick >= 0.13 && < 1.0
                        , vty, text, microlens, microlens-th

test-suite test_layout
           type: exitcode-stdio-1.0
           main-is: test_layout.hs
           hs-source-dirs: test, src
           if flag(brick015plus)
             build-depends:   brick >= 0.15
             hs-source-dirs:  brickcompat/015plus
           else
             build-depends:   brick >= 0.13 && < 0.15
             hs-source-dirs:  brickcompat/pre015
           ghc-options:  -threaded -O0
           cpp-options: -DTEST
           build-depends: base, HUnit, QuickCheck
                        , test-framework, test-framework-hunit
                        , test-framework-quickcheck2
                        , brick >= 0.13 && < 1.0
                        , vty, text, microlens, microlens-th
                        , data-default

source-repository head
  type: darcs
  location: http://hub.darcs.net/kquick/itemfield