name:                simple-prompt
version:             0.2.0
synopsis:            Simple commandline text prompt functions
description:
        The library provides prompt functions for reading user input:
        prompt returns the input given, prompt_ ignores the input,
        and yesno asks for confirmation.
license:             BSD3
license-file:        LICENSE
author:              Jens Petersen <juhpetersen@gmail.com>
maintainer:          Jens Petersen <juhpetersen@gmail.com>
copyright:           2023  Jens Petersen <juhpetersen@gmail.com>
category:            System
homepage:            https://github.com/juhp/simple-prompt
bug-reports:         https://github.com/juhp/simple-prompt/issues
build-type:          Simple
extra-doc-files:     README.md
                     ChangeLog.md
cabal-version:       2.0
tested-with:         GHC == 8.6.5
                     || == 8.8.4
                     || == 8.10.7
                     || == 9.0.2
                     || == 9.2.7
                     || == 9.4.5

source-repository head
  type:                git
  location:            https://github.com/juhp/simple-prompt.git

library
  build-depends:       base < 5,
                       exceptions,
                       extra,
                       haskeline,
                       time

  default-language:    Haskell2010
  exposed-modules:     SimplePrompt
                       SimplePrompt.Internal
  hs-source-dirs:      src

  ghc-options:         -Wall
  if impl(ghc >= 8.0)
    ghc-options:       -Wcompat
                       -Widentities
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wredundant-constraints
  if impl(ghc >= 8.2)
    ghc-options:       -fhide-source-paths
  if impl(ghc >= 8.4)
    ghc-options:       -Wmissing-export-lists
                       -Wpartial-fields
  if impl(ghc >= 8.10)
    ghc-options:       -Wunused-packages