packages feed

fortytwo-1.0.5: fortytwo.cabal

name:                fortytwo
version:1.0.5
synopsis:            Interactive terminal prompt
description:         List of Prompt helpers to pimp the UIs of your haskell programs
homepage:            https://github.com/gianlucaguarini/fortytwo#readme
license:             MIT
license-file:        LICENSE
author:              Gianluca Guarini
maintainer:          gianluca.guarini@gmail.com
copyright:           Gianlua Guarini
category:            Prompt
build-type:          Simple
extra-source-files:  README.md
cabal-version:       >=1.10

flag demos
  description: Build with demos
  default: False

library
  hs-source-dirs:      src
  exposed-modules:     FortyTwo,
                       FortyTwo.Types,
                       FortyTwo.Constants,
                       FortyTwo.Utils,
                       FortyTwo.TheAnswerToEverything,
                       FortyTwo.Prompts.Input,
                       FortyTwo.Prompts.Confirm,
                       FortyTwo.Prompts.Password,
                       FortyTwo.Prompts.Select,
                       FortyTwo.Prompts.Multiselect,
                       FortyTwo.Renderers.Question,
                       FortyTwo.Renderers.Password,
                       FortyTwo.Renderers.Confirm,
                       FortyTwo.Renderers.Select
                       FortyTwo.Renderers.Multiselect
  build-depends:       base >= 4.7 && < 5,
                       text <= 1.3,
                       ansi-terminal >= 0.6.0.0 && <= 0.8.2
  default-language:    Haskell2010

executable             demo
  main-is:             Main.hs
  other-modules:       InputExample,
                       ConfirmExample,
                       PasswordExample,
                       SelectExample,
                       MultiselectExample
  hs-source-dirs:      demo
  build-depends:       base >= 4.7 && < 5,
                       fortytwo
  default-language:    Haskell2010
  if flag(demos)
    buildable: True
  else
    buildable: False

Test-Suite spec
  type:              exitcode-stdio-1.0
  default-language:  Haskell2010
  main-is:           Main.hs
  other-modules:     Specs.Core,
                     Specs.Utils
  hs-source-dirs:    test
  build-depends:     fortytwo,
                     base >= 4.7 && < 5,
                     hspec >= 2.6.1

Test-Suite doctest
  type:              exitcode-stdio-1.0
  default-language:  Haskell2010
  main-is:           doctests.hs
  hs-source-dirs:    test
  build-depends:     fortytwo,
                     base >= 4.7 && < 5,
                     doctest >= 0.16.0.1

source-repository head
  type:     git
  location: https://github.com/gianlucaguarini/fortytwo