redact-0.5.0.0: hide secret text on the terminal
CopyrightCopyright (c) 2020-2023 Travis Cardwell
LicenseMIT
Safe HaskellSafe-Inferred
LanguageHaskell2010

Redact.Types

Description

 
Synopsis

Line

data Line Source #

Lines of redacted text

Since: 0.4.0.0

Constructors

NormalLine ![Part]

normal line of text

RedactLine !Text

fully-redacted line of text

Instances

Instances details
Show Line Source # 
Instance details

Defined in Redact.Types

Methods

showsPrec :: Int -> Line -> ShowS #

show :: Line -> String #

showList :: [Line] -> ShowS #

Eq Line Source # 
Instance details

Defined in Redact.Types

Methods

(==) :: Line -> Line -> Bool #

(/=) :: Line -> Line -> Bool #

Part

data Part Source #

Parts of a normal line

Since: 0.4.0.0

Constructors

Stet !Text

text intended to be displayed as-is

Redact !Text

text intended to be made unreadable

Instances

Instances details
Show Part Source # 
Instance details

Defined in Redact.Types

Methods

showsPrec :: Int -> Part -> ShowS #

show :: Part -> String #

showList :: [Part] -> ShowS #

Eq Part Source # 
Instance details

Defined in Redact.Types

Methods

(==) :: Part -> Part -> Bool #

(/=) :: Part -> Part -> Bool #

Error

data Error Source #

Error sum type

Since: 0.4.0.0

Constructors

IOError !IOError

I/O error

RedactError !String

redact parsing error

Instances

Instances details
Show Error Source # 
Instance details

Defined in Redact.Types

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Eq Error Source # 
Instance details

Defined in Redact.Types

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #