File echo.cabal of Package ghc-echo

name:                echo
version:             0.1.3
x-revision: 1
synopsis:            A cross-platform, cross-console way to handle echoing terminal input
description:         The @base@ library exposes the @hGetEcho@ and @hSetEcho@ functions
                     for querying and setting echo status, but unfortunately, neither
                     function works with MinTTY consoles on Windows. This is a serious
                     issue, since @hGetEcho@ and @hSetEcho@ are often used to disable
                     input echoing when a program prompts for a password, so many
                     programs will reveal your password as you type it on MinTTY!
                     This library provides an alternative interface which works
                     with both MinTTY and other consoles. An example is included
                     which demonstrates how one might prompt for a password using
                     this library. To build it, make sure to configure with the
                     @-fexample@ flag.
license:             BSD3
license-file:        LICENSE
author:              Ryan Scott
maintainer:          Ryan Scott <>
stability:           Provisional
copyright:           (C) 2016-2017 Ryan Scott
category:            System
build-type:          Simple
cabal-version:       >=1.10

source-repository head
  type:                git

flag example
  description:         Build the bundled example program.
  default:             False

  exposed-modules:     System.IO.Echo

  build-depends:       base    >= 4.3     && < 5
                     , process >= && < 1.7
  if os(windows)
    cpp-options:       "-DWINDOWS"
    build-depends:     mintty >= 0.1 && < 0.2
                     , Win32  >= 2   && < 3

  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -Wall

executable password
  if !flag(example)
    buildable:         False

  main-is:             Password.hs
  build-depends:       base >= 4.3 && < 5
                     , echo
  hs-source-dirs:      example
  default-language:    Haskell2010
  ghc-options:         -Wall
openSUSE Build Service is sponsored by