yasi-0.2.0.0: Yet another string interpolator
Safe HaskellNone
LanguageHaskell2010

Yasi.Util

Description

Utilities for working with (multi-line) literals.

Synopsis

Documentation

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