directory-layout-0.6.1.0: Directory layout DSL

Safe HaskellNone
LanguageHaskell2010

System.Directory.Layout.QQ

Description

Convenience quasiquoter to ease the pain working with multiline strings

Synopsis

Documentation

dedent :: QuasiQuoter Source

A handy quasiquoter to work with the multiline file contents

Strips the longest common leading spaces segment. All spacey characters are treated equally. The first line is ignored if it's spaces only.

>>> :set -XQuasiQuotes
>>> :{
putStr [dedent|
  hello
    world
    !
  |]
:}
hello
  world
  !