packages feed

hidden-char-0.1.0.2: hidden-char.cabal

name:                               hidden-char
version:                            0.1.0.2
synopsis:                           Provides getHiddenChar function
description:                        Provides a @getHiddenChar@ function that works on Windows, Linux and macOS
homepage:                           https://github.com/rcook/hidden-char#readme
license:                            MIT
license-file:                       LICENSE
author:                             Richard Cook
maintainer:                         rcook@rcook.org
copyright:                          2017 Richard Cook
category:                           Command Line Tool
build-type:                         Simple
cabal-version:                      >= 1.10
extra-source-files:                 README.md

library
  default-language:                 Haskell2010
  ghc-options:                      -W -Wall
  hs-source-dirs:                   src
  build-depends:                    base >= 4.7 && < 5
  exposed-modules:                  System.IO.HiddenChar
  if os(linux)
    cpp-options:                    -DOS_LINUX
    other-modules:                  System.IO.HiddenChar.Posix
  if os(windows)
    cpp-options:                    -DOS_WINDOWS
    other-modules:                  System.IO.HiddenChar.Windows
  if os(darwin)
    cpp-options:                    -DOS_MACOS
    other-modules:                  System.IO.HiddenChar.Posix

test-suite hidden-char-test
  type:                             exitcode-stdio-1.0
  default-language:                 Haskell2010
  ghc-options:                      -W -Wall -threaded
  hs-source-dirs:                   test
  main-is:                          Main.hs
  build-depends:                    base >= 4.7 && < 5
                                  , hidden-char
                                  , hspec
  if os(linux)
    cpp-options:                    -DOS_LINUX
  if os(windows)
    cpp-options:                    -DOS_WINDOWS
  if os(darwin)
    cpp-options:                    -DOS_MACOS
  other-modules:                    HiddenCharSpec