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

Redact.Internal

Contents

Description

 
Synopsis

Internal

redact Source #

Arguments

:: forall s. (s -> Text -> Either String (Line, s))

step function

-> (s -> Maybe String)

end function

-> s

initial state

-> Text 
-> Either String [Line] 

Redact text strictly

redact' Source #

Arguments

:: forall s. (s -> Text -> (Line, s))

step function

-> s

initial state

-> Text 
-> [Line] 

Redact text leniently