@hackage nowdoc0.1.0.2
Here document without variable expansion like PHP Nowdoc
Categories
License
BSD-3-Clause
Maintainer
PAF01143@nifty.ne.jp
Links
Versions
Installation
Dependencies (2)
- base >=4.7 && <5
- template-haskell Show all…
Dependents (4)
@hackage/acme-everything, @hackage/shaderc, @hackage/gpu-vulkan-core, @hackage/language-spir-v
nowdoc
Simplest here document. Only two transformation.
- remove head newline if exist
- remove one space from '|', space, space, ..., ']'
hello = [nowdoc|
abc
def
ghi
|]
is
hello = "abc\ndef\nghi\n"
,
hello = [nowdoc|hello|]
is
hello = "hello"
and
hello = [nowdoc|
hello | ]
world | ]
! | ]
|]
is
hello = "hello |]\nworld| ]\n! | ]"