packages feed

escoger-0.1.0.0: escoger.cabal

name:                escoger
version:             0.1.0.0
license:             MIT
license-file:        LICENSE
author:              Travis Staton
maintainer:          hello@travisstaton.com
bug-reports:         https://github.com/tstat/escoger/issues
synopsis:            Terminal fuzzy selector
description:         Interactive fuzzy selector for the terminal. Escoger accepts
                     a newline separated input on stdin, and provides an interactive
                     prompt to select one of these lines to output to stdout.
category:            Tools
build-type:          Simple
cabal-version:       2.0

Source-Repository head
    Type: git
    Location: https://github.com/tstat/escoger

library escoger-lib
  exposed-modules:     Escoger.Interactive
                       Escoger.Internal
                       Escoger.Matches
                       Escoger.Utils

  build-depends:         base >= 4.6 && < 5.0
                       , vty  >= 5.19 && <= 5.20
                       , unix >= 2.7 && <= 2.8
                       , bytestring
                       , vector
                       , vector-algorithms
                       , mtl

  hs-source-dirs:      Lib
  default-language:    Haskell2010
  ghc-options:         -Wall
                       -O2

executable escoger
  main-is:             Main.hs
  hs-source-dirs:      Exec

  build-depends:       base >=4.6 && <= 5.0
                       , escoger-lib
                       , vty
                       , unix
                       , bytestring
                       , vector
                       , mtl

  default-language:    Haskell2010
  ghc-options:         -Wall
                       -threaded
                       -rtsopts
                       -with-rtsopts=-N

benchmark bench
  type:                exitcode-stdio-1.0
  hs-source-dirs:      Exec, Benchmarks
  main-is:             Bench.hs
  build-depends:       base
                       , escoger-lib
                       , vty
                       , unix
                       , bytestring
                       , vector

  build-depends:       criterion

  default-language:    Haskell2010
  ghc-options:         -Wall
                       -threaded
                       -rtsopts
                       -with-rtsopts=-N

test-suite tests
  type:                exitcode-stdio-1.0
  hs-source-dirs:      Exec, Tests
  main-is:             Test.hs
  other-modules:       Unit.Matches
  build-depends:         base
                       , escoger-lib
                       , vector
                       , HUnit
                       , test-framework
                       , test-framework-hunit

  default-language:    Haskell2010