packages feed

redact-0.4.0.0: redact.cabal

name:           redact
version:        0.4.0.0
category:       Utils
synopsis:       hide secret text on the terminal
description:
  This package provides a utility for redacting secret text on the terminal.
  Please see the README on GitHub at
  <https://github.com/ExtremaIS/redact-haskell#readme>.

homepage:       https://github.com/ExtremaIS/redact-haskell#readme
bug-reports:    https://github.com/ExtremaIS/redact-haskell/issues
author:         Travis Cardwell <travis.cardwell@extrema.is>
maintainer:     Travis Cardwell <travis.cardwell@extrema.is>
copyright:      Copyright (c) 2020-2022 Travis Cardwell
license:        MIT
license-file:   LICENSE

cabal-version:  1.24
build-type:     Simple
tested-with:
  GHC ==8.2.2
   || ==8.4.4
   || ==8.6.5
   || ==8.8.4
   || ==8.10.7
   || ==9.0.2
   || ==9.2.1

extra-source-files:
  CHANGELOG.md
  README.md

source-repository head
  type: git
  location: https://github.com/ExtremaIS/redact-haskell.git

flag write-hie
  description: write .hie files
  default: False

library
  hs-source-dirs: src
  exposed-modules:
      Redact
    , Redact.Internal
    , Redact.Markdown
    , Redact.Monad.Handle
    , Redact.Monad.Terminal
    , Redact.Types
  other-modules:
      Paths_redact
  build-depends:
      ansi-terminal >=0.8 && <0.12
    , base >=4.7 && <5
    , text >=1.2.3 && <2.1
  default-language: Haskell2010
  default-extensions:
      OverloadedStrings
  if flag(write-hie)
    ghc-options: -Wall -fwrite-ide-info -hiedir=.hie
  else
    ghc-options: -Wall

executable redact
  hs-source-dirs: app
  main-is: Main.hs
  other-modules:
      LibOA
  build-depends:
      ansi-terminal
    , ansi-wl-pprint >=0.6 && <0.7
    , base
    , directory >=1.3 && <1.4
    , optparse-applicative >=0.14 && <0.18
    , redact
  default-language: Haskell2010
  if flag(write-hie)
    ghc-options: -Wall -fwrite-ide-info -hiedir=.hie
  else
    ghc-options: -Wall

test-suite redact-test
  type: exitcode-stdio-1.0
  hs-source-dirs: test
  main-is: Spec.hs
  other-modules:
      Redact.Markdown.Test
  build-depends:
      base
    , redact
    , tasty >=1.0 && <1.5
    , tasty-hunit >=0.10 && <0.11
  if impl(ghc >= 8.8.1)
    other-modules:
        Redact.Markdown.Mock
      , Redact.Monad.Terminal.Mock
      , TestLib
    build-depends:
        ansi-terminal
      , explainable-predicates >=0.1.2.1 && <0.2
      , HMock >=0.5.1 && <0.6
  default-language: Haskell2010
  ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N