char package:formatting

Output a character.
Filter the formatted string to contain only characters which pass the given predicate:
>>> format (charsKeptIf Data.Char.isUpper text) "Data.Char.isUpper"
"DCU"
Filter the formatted string to not contain characters which pass the given predicate:
>>> format (charsRemovedIf Data.Char.isUpper text) "Data.Char.isUpper"
"ata.har.ispper"