redact: hide secret text on the terminal

[ library, mit, program, utils ] [ Propose Tags ]

This package provides a utility for redacting secret text on the terminal. Please see the README on GitHub at

[Skip to Readme]


Automatic Flags

write .hie files


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS]
Change log
Dependencies ansi-terminal (>=0.8 && <0.12), ansi-wl-pprint (>=0.6 && <0.7), base (>=4.7 && <5), directory (>=1.3 && <1.4), optparse-applicative (>=0.14 && <0.18), redact, text (>=1.2.3 && <2.1) [details]
License MIT
Copyright Copyright (c) 2020-2022 Travis Cardwell
Author Travis Cardwell <>
Maintainer Travis Cardwell <>
Category Utils
Home page
Bug tracker
Source repo head: git clone
Uploaded by TravisCardwell at 2022-03-02T06:20:57Z
Distributions LTSHaskell:, NixOS:, Stackage:
Executables redact
Downloads 45 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-03-02 [all 1 reports]

Readme for redact-

[back to package description]


Project Status: Active – The project has reached a stable, usable state and is being actively developed. GitHub CI Hackage Stackage LTS Stackage Nightly


Redact is a utility for hiding secret text on the terminal.

It is designed to work with Markdown syntax. Inline code (text enclosed in backticks) and code blocks that are fenced with backticks are hidden. Note that inline code that spans multiple lines is not supported, and other types of code blocks are not hidden.

Text is hidden by displaying it using the same color for the foreground and background. When selecting hidden text, it remains hidden in some terminals and becomes visible in other terminals.

Be sure to test it in your terminal before relying on it.



Redact has only been tested on Linux. Testing on Windows 10 and macOS will be added in a future release.


.deb Package Installation

Check the Releases page for .deb packages.

.rpm Package Installation

Check the Releases page for .rpm packages.

Installation From Hackage

Install PhatSort from Hackage using Cabal as follows:

$ cabal v2-install redact

Installation From Stackage

Install PhatSort from Stackage using Stack as follows:

$ stack install redact


See the redact man page for usage information.



All releases are tagged in the main branch. Release tags are signed using the GPG key.


Issues and feature requests are tracked on GitHub:

Issues may also be submitted via email to


This project is released under the MIT License as specified in the LICENSE file.