-- |A non empty string that has atleast one printable character
newtype PrintableText = PrintableText { unPrintableText :: T.Text }
-- |Create a PrintableText from a single Char
Nothing
| otherwise = Just . PrintableText . T.singleton $ x
-- |Attempt to create a PrintableText from a Text, returns Nothing if no printable characters detected
Nothing
| otherwise = Just $ PrintableText x