What about Literate Haskell then? People write a lot of LH blog posts, so it would seem to be quite flexible. <div><div><br></div><div>Best regards,</div><div>Krzysztof Skrzętnicki<br><br><div class="gmail_quote">On Tue, Jun 28, 2011 at 16:13, Dave Bayer <span dir="ltr">&lt;<a href="mailto:bayer@cpw.math.columbia.edu">bayer@cpw.math.columbia.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Part of the dominance of scripting languages is clean support for heredocs. So much of every arena of life comes down to getting &quot;It&#39;s not about me!&quot; I love Haskell but it doesn&#39;t get this. Imagine a document that&#39;s nominally Haskell, but about 80% some other language such as TeX (e.g. code for a self-generating textbook). Anything short of &quot;these lines belong to the other language, with not a single intervening character in the way&quot; simply doesn&#39;t work. So, yes, Haskell supports multi-line strings, but not heredocs, a subtle but crucial syntactic distinction. Restated, one can cut and paste many entire lines of foreign code into a heredoc, with no worries about conversion.<br>


<br>
Heredocs should be part of the base spec of any credible language, with the requirement &quot;Can the language completely disappear behind another language, in the source file?&quot; As I said, the key issue is getting &quot;It&#39;s not about me!&quot;<br>


<div class="im"><br>
On Jun 28, 2011, at 1:57 AM, Jean-Marie Gaillourdet wrote:<br>
<br>
&gt; Hi Audrey,<br>
&gt;<br>
&gt; are you aware that Haskell already supports multi-line strings?<br>
&gt;<br>
&gt; foo = &quot;This is a\<br>
&gt;       \multi-line\<br>
&gt;       \string!&quot;<br>
&gt;<br>
&gt; See Section 2.6 of <a href="http://haskell.org/onlinereport/lexemes.html" target="_blank">http://haskell.org/onlinereport/lexemes.html</a><br>
&gt;<br>
&gt; Regards,<br>
&gt;  Jean<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Haskell mailing list<br>
<a href="mailto:Haskell@haskell.org">Haskell@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell" target="_blank">http://www.haskell.org/mailman/listinfo/haskell</a><br>
</div></div></blockquote></div><br></div></div>