Yasi.Util
Description
Utilities for working with (multi-line) literals.
unindent :: Text -> Text Source #
Unindent a string.
Also removes leading and trailing blank lines.
>>> :{ txt = unindent [iT| foo bar baz |] :}
>>>
:{
>>> T.putStr txt foo bar baz
T.putStr txt